deepline 0.3.501 → 0.3.503
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/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 +20 -2
- 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/deployment/vercel-fly-rollback-alignment.ts +29 -14
- 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/prebuilt-result-quality.ts +264 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -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 +70 -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-gateway-oidc.ts +30 -8
- 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 +1453 -160
- 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/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
- package/dist/cli/auth-ZCMSXZO4.js +43 -0
- package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
- package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
- package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
- package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
- package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
- package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
- package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
- package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
- package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
- package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
- package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
- package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
- package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
- package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
- package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
- package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
- package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
- package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
- package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
- package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
- package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
- package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
- package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
- package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
- package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
- package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
- package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
- package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
- package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
- package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
- package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
- package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
- package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
- package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
- package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
- package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
- package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
- package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
- package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
- package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
- package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
- package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
- package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
- package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
- package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
- package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
- package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
- package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
- package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
- package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
- package/dist/cli/describe-LE7EZCL4.js +49 -0
- 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 -5
- package/dist/cli/describe-core.mjs +3 -4
- package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
- package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
- package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
- package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
- package/dist/cli/git-26AH4XIO.js +25 -0
- package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
- package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
- package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
- package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
- package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
- package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
- package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
- package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
- package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
- package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
- package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
- package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
- package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
- package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
- package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
- package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
- package/dist/cli/search-CTKSEVSO.js +32 -0
- package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
- package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
- package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
- package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
- package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
- package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
- package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
- package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
- package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
- package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
- package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
- package/dist/cli/skills-6RD25MVM.js +36 -0
- package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
- package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
- package/dist/cli/tools-TDZH4XHS.js +56 -0
- package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
- package/dist/cli/update-Y32VT4VL.js +34 -0
- package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
- package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.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.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.mts → 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 +124 -118
- 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 +8 -1
- 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-VP7PMXKQ.js +0 -43
- package/dist/cli/chunk-XK5DMLZE.js +0 -111
- package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
- package/dist/cli/describe-SEXUJLE4.js +0 -50
- package/dist/cli/git-VNS7UQWN.js +0 -25
- package/dist/cli/search-I425FRTK.js +0 -32
- package/dist/cli/skills-6ZNMO2PR.js +0 -36
- package/dist/cli/tools-DPV2JES6.js +0 -57
- package/dist/cli/update-Q5GUDEAW.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAARF4SOWjs = require('./chunk-AARF4SOW.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,19 +18,19 @@ var _chunkQQ3JJYE2js = require('./chunk-QQ3JJYE2.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk3CXHK4TWjs = require('./chunk-3CXHK4TW.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk33JUK73Xjs = require('./chunk-33JUK73X.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk26RSSTCFjs = require('./chunk-26RSSTCF.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');
|
|
@@ -59,10 +59,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkWHP3FJ7Tjs = require('./chunk-WHP3FJ7T.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkTCQYWZFSjs = require('./chunk-TCQYWZFS.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -75,7 +75,7 @@ var _chunkRU5ROUFOjs = require('./chunk-RU5ROUFO.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkC5RQTTLPjs = require('./chunk-C5RQTTLP.js');
|
|
79
79
|
require('./chunk-E4CABWXL.js');
|
|
80
80
|
|
|
81
81
|
|
|
@@ -98,18 +98,18 @@ require('./chunk-WSGXBROE.js');
|
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
var
|
|
101
|
+
var _chunkA2C6ONWAjs = require('./chunk-A2C6ONWA.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
var
|
|
108
|
-
require('./chunk-
|
|
107
|
+
var _chunkYXGPMTAKjs = require('./chunk-YXGPMTAK.js');
|
|
108
|
+
require('./chunk-B3X4YWQ6.js');
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
var
|
|
112
|
+
var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -123,17 +123,17 @@ var _chunkEKZQ5LQOjs = require('./chunk-EKZQ5LQO.js');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
127
|
-
require('./chunk-
|
|
126
|
+
var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
|
|
127
|
+
require('./chunk-HS63YBT5.js');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
|
|
131
131
|
require('./chunk-ALJJRZNJ.js');
|
|
132
132
|
require('./chunk-XNYIZMNQ.js');
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
136
|
-
require('./chunk-
|
|
136
|
+
require('./chunk-IIP46RVC.js');
|
|
137
137
|
require('./chunk-OG64RBAC.js');
|
|
138
138
|
|
|
139
139
|
|
|
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2115
2115
|
function printSettings(result, json, name) {
|
|
2116
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2118
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2119
2119
|
{
|
|
2120
2120
|
...result,
|
|
2121
2121
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2160
|
examples: field.cli.examples
|
|
2161
2161
|
}));
|
|
2162
|
-
|
|
2162
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2163
2163
|
{
|
|
2164
2164
|
fields: descriptions,
|
|
2165
2165
|
render: {
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
async (options, command) => {
|
|
2185
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2186
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2188
|
options.json,
|
|
2189
2189
|
options.name
|
|
2190
2190
|
);
|
|
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2218
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
dryRun: true,
|
|
2221
2221
|
play,
|
|
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2240
|
options.json
|
|
2241
2241
|
);
|
|
2242
2242
|
};
|
|
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2263
|
{ exitCode: 2 }
|
|
2264
2264
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2266
|
root: options.root,
|
|
2267
2267
|
limit,
|
|
2268
2268
|
cursor: options.cursor
|
|
2269
2269
|
});
|
|
2270
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2271
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2272
2272
|
{
|
|
2273
2273
|
...page,
|
|
2274
2274
|
nextCommand,
|
|
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2321
|
};
|
|
2322
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
2323
2323
|
const paths = [];
|
|
2324
2324
|
let cursor;
|
|
2325
2325
|
do {
|
|
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2381
|
moved.push(move.playName);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2385
2385
|
{
|
|
2386
2386
|
dryRun: Boolean(options.dryRun),
|
|
2387
2387
|
from: options.from,
|
|
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2509
2509
|
return lines;
|
|
2510
2510
|
}
|
|
2511
2511
|
function printView(view, json) {
|
|
2512
|
-
|
|
2512
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2513
2513
|
{
|
|
2514
2514
|
...view,
|
|
2515
2515
|
render: {
|
|
@@ -2522,7 +2522,7 @@ function printView(view, json) {
|
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2525
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2526
2526
|
{
|
|
2527
2527
|
...result,
|
|
2528
2528
|
render: {
|
|
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2555
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
2556
2556
|
{
|
|
2557
2557
|
dryRun: true,
|
|
2558
2558
|
play: options.play,
|
|
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2575
|
options.json
|
|
2576
2576
|
);
|
|
2577
2577
|
}
|
|
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2604
|
}).addHelpText("after", help2);
|
|
2605
2605
|
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
2606
|
printView(
|
|
2607
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2608
|
options.json
|
|
2609
2609
|
);
|
|
2610
2610
|
});
|
|
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2648
|
if (options.auth === void 0) {
|
|
2649
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2652
|
options.play
|
|
2653
2653
|
);
|
|
2654
2654
|
return {
|
|
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2726
|
"runtime.event": "Other event."
|
|
2727
2727
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkC5RQTTLPjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2729
|
kind,
|
|
2730
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2731
|
}));
|
|
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2862
|
const args = program.args;
|
|
2863
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2864
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunkF73PD2XDjs.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(error.message), {
|
|
2868
2868
|
exitCode: 2,
|
|
2869
2869
|
retryable: false
|
|
2870
2870
|
})
|
|
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2912
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (flag === "--sum") sums.push(value);
|
|
2916
2916
|
else {
|
|
2917
2917
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2919
2919
|
`${flag} may only be supplied once.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
if (arg.startsWith("-")) {
|
|
2931
2931
|
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,
|
|
2932
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2933
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2934
|
);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2938
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
if (switches.has("--fields")) {
|
|
2944
2944
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2946
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
)
|
|
2956
2956
|
];
|
|
2957
2957
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2959
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2965
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2970
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
if (operation === "count") {
|
|
2975
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
2978
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3009
|
];
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const request =
|
|
3012
|
+
const request = _chunkC5RQTTLPjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3014
|
const backend = values["--runtime-backend"];
|
|
3015
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
3017
3017
|
"--runtime-backend must be daytona or modal."
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkC5RQTTLPjs.RunEventQueryInputError)(
|
|
3022
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3066
|
const record3 = failure;
|
|
3067
3067
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkC5RQTTLPjs.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
3069
|
const diagnostic = Object.assign(failure, {
|
|
3070
3070
|
exitCode,
|
|
3071
3071
|
retryable: exitCode === 5
|
|
3072
3072
|
});
|
|
3073
|
-
if (
|
|
3073
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) _chunkF73PD2XDjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3075
|
return exitCode;
|
|
3076
3076
|
}
|
|
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3085
|
...criteria
|
|
3086
3086
|
} = request;
|
|
3087
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
3089
3089
|
let result;
|
|
3090
3090
|
if (request.operation === "fields") {
|
|
3091
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3154
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
3155
3155
|
{
|
|
3156
3156
|
...result,
|
|
3157
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return 0;
|
|
@@ -4076,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4076
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4077
|
);
|
|
4078
4078
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4079
|
+
const response = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4080
|
keys
|
|
4081
4081
|
});
|
|
4082
4082
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4088
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4089
|
{ flag: "wx", mode: 384 }
|
|
4090
4090
|
);
|
|
4091
|
-
|
|
4091
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
4092
4092
|
{
|
|
4093
4093
|
runId,
|
|
4094
4094
|
out: options.out,
|
|
@@ -4098,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4098
|
{ json: true }
|
|
4099
4099
|
);
|
|
4100
4100
|
} else {
|
|
4101
|
-
|
|
4101
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4102
|
}
|
|
4103
4103
|
if (failed)
|
|
4104
4104
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4137,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4137
|
{ exitCode: 2 }
|
|
4138
4138
|
);
|
|
4139
4139
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4140
|
+
const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4141
|
launchKey: options.launchKey,
|
|
4142
4142
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4143
|
limit
|
|
@@ -4152,7 +4152,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4152
|
"--limit",
|
|
4153
4153
|
String(limit)
|
|
4154
4154
|
].join(" ") : null;
|
|
4155
|
-
|
|
4155
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
4156
4156
|
{
|
|
4157
4157
|
parentRunId,
|
|
4158
4158
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4188,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4188
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4191
|
+
const page = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.history({
|
|
4192
4192
|
cursor: options.cursor,
|
|
4193
4193
|
orgId: options.org,
|
|
4194
4194
|
search: options.search,
|
|
@@ -4204,7 +4204,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
4206
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4207
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
4208
4208
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4209
|
options.json ? { json: true } : {}
|
|
4210
4210
|
);
|
|
@@ -4256,12 +4256,13 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4256
4256
|
return 1;
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
|
|
4259
|
+
if (options.notice) console.error(options.notice);
|
|
4260
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.rerun(runId, {
|
|
4260
4261
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4261
4262
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4262
4263
|
});
|
|
4263
|
-
if (
|
|
4264
|
-
|
|
4264
|
+
if (_chunkF73PD2XDjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4265
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4265
4266
|
} else if (result.rateLimited) {
|
|
4266
4267
|
console.log(`
|
|
4267
4268
|
${result.rateLimited.message}`);
|
|
@@ -4282,6 +4283,26 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4282
4283
|
return 0;
|
|
4283
4284
|
}
|
|
4284
4285
|
|
|
4286
|
+
// src/cli/operations/runs-resume.ts
|
|
4287
|
+
async function runRunsResumeCommand(runId) {
|
|
4288
|
+
try {
|
|
4289
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.resume(runId);
|
|
4290
|
+
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4291
|
+
throw new Error(
|
|
4292
|
+
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
4293
|
+
);
|
|
4294
|
+
console.log(
|
|
4295
|
+
`Resumed run ${result.runId} at epoch ${result.epoch}. Completed calls will be reused; only unfinished work runs.`
|
|
4296
|
+
);
|
|
4297
|
+
console.log(` inspect: deepline runs get ${result.runId}`);
|
|
4298
|
+
return 0;
|
|
4299
|
+
} catch (error) {
|
|
4300
|
+
if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code && !error.message.includes(error.code))
|
|
4301
|
+
error.message = `${error.code}: ${error.message}`;
|
|
4302
|
+
throw error;
|
|
4303
|
+
}
|
|
4304
|
+
}
|
|
4305
|
+
|
|
4285
4306
|
// ../plays/cascade-falloff.ts
|
|
4286
4307
|
function cascadeFalloff(input) {
|
|
4287
4308
|
const order = new Map(input.legs.map((leg, index) => [leg, index]));
|
|
@@ -5055,13 +5076,13 @@ var RunDataset = class _RunDataset {
|
|
|
5055
5076
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5056
5077
|
_fs.writeFileSync.call(void 0,
|
|
5057
5078
|
absolutePath,
|
|
5058
|
-
`${JSON.stringify(
|
|
5079
|
+
`${JSON.stringify(_chunk3CXHK4TWjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5059
5080
|
`,
|
|
5060
5081
|
"utf-8"
|
|
5061
5082
|
);
|
|
5062
5083
|
return absolutePath;
|
|
5063
5084
|
}
|
|
5064
|
-
return
|
|
5085
|
+
return _chunk3CXHK4TWjs.writeRunDatasetCsv.call(void 0, {
|
|
5065
5086
|
rows: this.rows,
|
|
5066
5087
|
columns: this.#info.columns,
|
|
5067
5088
|
outPath
|
|
@@ -6758,7 +6779,7 @@ function renderOutcome(outcome) {
|
|
|
6758
6779
|
function printResult2(input) {
|
|
6759
6780
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6760
6781
|
if (failed) process.exitCode = 1;
|
|
6761
|
-
|
|
6782
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
6762
6783
|
{
|
|
6763
6784
|
deployment: { ...input.deployment, status: input.status },
|
|
6764
6785
|
plays: input.outcomes,
|
|
@@ -6783,7 +6804,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6783
6804
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6784
6805
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6785
6806
|
});
|
|
6786
|
-
const { http, config } =
|
|
6807
|
+
const { http, config } = _chunkF73PD2XDjs.getAuthedHttpClient.call(void 0, );
|
|
6787
6808
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6788
6809
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6789
6810
|
deliveryId,
|
|
@@ -6810,7 +6831,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6810
6831
|
},
|
|
6811
6832
|
{
|
|
6812
6833
|
bundle: bundleDeployPlayFile,
|
|
6813
|
-
fetchImpl:
|
|
6834
|
+
fetchImpl: _chunkFIUTDSJXjs.fetchWithDeploymentProtection,
|
|
6814
6835
|
// The plays are already here: "opening" the source is naming it.
|
|
6815
6836
|
openSource: async () => ({
|
|
6816
6837
|
open: async () => ({ repoRoot: root })
|
|
@@ -6936,7 +6957,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6936
6957
|
// src/cli/renderers/local-play-execution.ts
|
|
6937
6958
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6938
6959
|
if (options.dryRun) {
|
|
6939
|
-
|
|
6960
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6940
6961
|
return;
|
|
6941
6962
|
}
|
|
6942
6963
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7108,7 +7129,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7108
7129
|
const startedAt = Date.now();
|
|
7109
7130
|
try {
|
|
7110
7131
|
const result = run();
|
|
7111
|
-
|
|
7132
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
7112
7133
|
phase,
|
|
7113
7134
|
ms: Date.now() - startedAt,
|
|
7114
7135
|
ok: true,
|
|
@@ -7116,7 +7137,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7116
7137
|
});
|
|
7117
7138
|
return result;
|
|
7118
7139
|
} catch (error) {
|
|
7119
|
-
|
|
7140
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
7120
7141
|
phase,
|
|
7121
7142
|
ms: Date.now() - startedAt,
|
|
7122
7143
|
ok: false,
|
|
@@ -7922,7 +7943,7 @@ function playStatusErrorText(status) {
|
|
|
7922
7943
|
function isRetryablePendingStartFailure(status) {
|
|
7923
7944
|
if (status.status !== "failed") return false;
|
|
7924
7945
|
if (status.runId && status.runId !== "pending") return false;
|
|
7925
|
-
return
|
|
7946
|
+
return _chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7926
7947
|
}
|
|
7927
7948
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7928
7949
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7972,13 +7993,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7972
7993
|
}, _class);
|
|
7973
7994
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7974
7995
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7975
|
-
if (!
|
|
7996
|
+
if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7976
7997
|
return false;
|
|
7977
7998
|
}
|
|
7978
|
-
if (
|
|
7999
|
+
if (_chunkC5RQTTLPjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7979
8000
|
return true;
|
|
7980
8001
|
}
|
|
7981
|
-
return state.verbose === true &&
|
|
8002
|
+
return state.verbose === true && _chunkC5RQTTLPjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7982
8003
|
}
|
|
7983
8004
|
function getEventPayload(event) {
|
|
7984
8005
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8488,7 +8509,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8488
8509
|
}
|
|
8489
8510
|
function openPlayDashboard(url, open2) {
|
|
8490
8511
|
if (open2 && url) {
|
|
8491
|
-
|
|
8512
|
+
_chunkF73PD2XDjs.openInBrowser.call(void 0, url);
|
|
8492
8513
|
}
|
|
8493
8514
|
}
|
|
8494
8515
|
function printPlayLogLines(input) {
|
|
@@ -8569,7 +8590,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8569
8590
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8570
8591
|
});
|
|
8571
8592
|
} catch (error) {
|
|
8572
|
-
if (
|
|
8593
|
+
if (_chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8573
8594
|
return null;
|
|
8574
8595
|
}
|
|
8575
8596
|
throw error;
|
|
@@ -8650,9 +8671,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8650
8671
|
signal: controller.signal,
|
|
8651
8672
|
deferLogs: !input.emitLogs,
|
|
8652
8673
|
omitTerminalLogs: !input.emitLogs,
|
|
8653
|
-
...
|
|
8674
|
+
..._chunkYXGPMTAKjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8654
8675
|
onPoll: (observation) => {
|
|
8655
|
-
|
|
8676
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8656
8677
|
phase: "play_watch_poll",
|
|
8657
8678
|
workflowId: input.workflowId,
|
|
8658
8679
|
ms: observation.durationMs,
|
|
@@ -8666,7 +8687,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8666
8687
|
full: input.fullJson,
|
|
8667
8688
|
billing: false,
|
|
8668
8689
|
onStatus: async (status) => {
|
|
8669
|
-
|
|
8690
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8670
8691
|
phase: "play_watch_terminal_status",
|
|
8671
8692
|
workflowId: input.workflowId,
|
|
8672
8693
|
full: input.fullJson === true
|
|
@@ -8755,7 +8776,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8755
8776
|
signal: controller.signal,
|
|
8756
8777
|
cliAdmission: useCliAdmission
|
|
8757
8778
|
});
|
|
8758
|
-
|
|
8779
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8759
8780
|
phase: "cli.play_start_admission_attempt",
|
|
8760
8781
|
ms: Date.now() - postStartedAt,
|
|
8761
8782
|
ok: true,
|
|
@@ -8767,7 +8788,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8767
8788
|
});
|
|
8768
8789
|
break;
|
|
8769
8790
|
} catch (error) {
|
|
8770
|
-
|
|
8791
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8771
8792
|
phase: "cli.play_start_admission_attempt",
|
|
8772
8793
|
ms: Date.now() - postStartedAt,
|
|
8773
8794
|
ok: false,
|
|
@@ -8818,7 +8839,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8818
8839
|
prepared.workflowId
|
|
8819
8840
|
);
|
|
8820
8841
|
}
|
|
8821
|
-
await
|
|
8842
|
+
await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
|
|
8822
8843
|
input.client.baseUrl,
|
|
8823
8844
|
input.maintenancePolicy
|
|
8824
8845
|
);
|
|
@@ -8836,7 +8857,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8836
8857
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8837
8858
|
);
|
|
8838
8859
|
}
|
|
8839
|
-
|
|
8860
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8840
8861
|
phase: "cli.play_start_json_retry",
|
|
8841
8862
|
ms: 0,
|
|
8842
8863
|
ok: true,
|
|
@@ -8894,7 +8915,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8894
8915
|
}
|
|
8895
8916
|
await _optionalChain([input, 'access', _299 => _299.onRunStarted, 'optionalCall', _300 => _300(workflowId)]);
|
|
8896
8917
|
await _optionalChain([input, 'access', _301 => _301.onRunAdmitted, 'optionalCall', _302 => _302(workflowId)]);
|
|
8897
|
-
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => (
|
|
8918
|
+
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
|
|
8898
8919
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
8899
8920
|
if (!input.jsonOutput) {
|
|
8900
8921
|
writeStartedPlayRun({
|
|
@@ -8916,7 +8937,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8916
8937
|
_nullishCoalesce(input.open, () => ( false))
|
|
8917
8938
|
);
|
|
8918
8939
|
input.progress.phase("running");
|
|
8919
|
-
|
|
8940
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8920
8941
|
phase: "cli.play_start_admitted",
|
|
8921
8942
|
ms: Date.now() - startedAt,
|
|
8922
8943
|
ok: true,
|
|
@@ -8934,7 +8955,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8934
8955
|
startedAt,
|
|
8935
8956
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8936
8957
|
});
|
|
8937
|
-
const initialStatus =
|
|
8958
|
+
const initialStatus = _chunkC5RQTTLPjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8938
8959
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8939
8960
|
client: input.client,
|
|
8940
8961
|
status: initialStatus,
|
|
@@ -8942,7 +8963,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8942
8963
|
jsonOutput: input.jsonOutput,
|
|
8943
8964
|
fromDurableStatus: true
|
|
8944
8965
|
});
|
|
8945
|
-
|
|
8966
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
8946
8967
|
phase: "play_watch_terminal_status",
|
|
8947
8968
|
workflowId,
|
|
8948
8969
|
full: true,
|
|
@@ -9047,7 +9068,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9047
9068
|
});
|
|
9048
9069
|
}
|
|
9049
9070
|
if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9050
|
-
await
|
|
9071
|
+
await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
|
|
9051
9072
|
input.client.baseUrl,
|
|
9052
9073
|
input.maintenancePolicy,
|
|
9053
9074
|
admissionDeadline.signal
|
|
@@ -9088,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9088
9109
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9089
9110
|
);
|
|
9090
9111
|
}
|
|
9091
|
-
|
|
9112
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9092
9113
|
phase: "cli.play_start_stream_retry",
|
|
9093
9114
|
ms: 0,
|
|
9094
9115
|
ok: true,
|
|
@@ -9109,7 +9130,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9109
9130
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9110
9131
|
);
|
|
9111
9132
|
}
|
|
9112
|
-
|
|
9133
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9113
9134
|
phase: "cli.play_start_stream_retry",
|
|
9114
9135
|
ms: 0,
|
|
9115
9136
|
ok: true,
|
|
@@ -9139,7 +9160,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9139
9160
|
}
|
|
9140
9161
|
async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
9141
9162
|
const startedAt = Date.now();
|
|
9142
|
-
const dashboardUrl =
|
|
9163
|
+
const dashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0,
|
|
9143
9164
|
input.client.baseUrl,
|
|
9144
9165
|
input.playName
|
|
9145
9166
|
);
|
|
@@ -9166,7 +9187,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9166
9187
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9167
9188
|
launchConfirmed = true;
|
|
9168
9189
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9169
|
-
|
|
9190
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9170
9191
|
phase: "cli.play_start_admitted",
|
|
9171
9192
|
ms: Date.now() - startedAt,
|
|
9172
9193
|
ok: true,
|
|
@@ -9200,7 +9221,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9200
9221
|
full: input.fullJson
|
|
9201
9222
|
});
|
|
9202
9223
|
} catch (error) {
|
|
9203
|
-
if (
|
|
9224
|
+
if (_chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9204
9225
|
return null;
|
|
9205
9226
|
}
|
|
9206
9227
|
throw error;
|
|
@@ -9371,7 +9392,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9371
9392
|
};
|
|
9372
9393
|
}
|
|
9373
9394
|
if (!canonicalTerminal) {
|
|
9374
|
-
|
|
9395
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9375
9396
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9376
9397
|
ms: Date.now() - startedAt,
|
|
9377
9398
|
ok: true,
|
|
@@ -9392,14 +9413,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9392
9413
|
fromDurableStatus
|
|
9393
9414
|
}) : canonicalTerminal;
|
|
9394
9415
|
if (input.fullJson === true) {
|
|
9395
|
-
|
|
9416
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9396
9417
|
phase: "play_watch_terminal_status",
|
|
9397
9418
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9398
9419
|
full: true,
|
|
9399
9420
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9400
9421
|
});
|
|
9401
9422
|
}
|
|
9402
|
-
|
|
9423
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9403
9424
|
phase: "cli.play_start_stream_terminal",
|
|
9404
9425
|
ms: Date.now() - startedAt,
|
|
9405
9426
|
ok: true,
|
|
@@ -9419,7 +9440,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9419
9440
|
clearTimeout(timeout);
|
|
9420
9441
|
}
|
|
9421
9442
|
controller.abort();
|
|
9422
|
-
|
|
9443
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9423
9444
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9424
9445
|
ms: Date.now() - startedAt,
|
|
9425
9446
|
ok: true,
|
|
@@ -9450,7 +9471,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9450
9471
|
if (timedOut) {
|
|
9451
9472
|
const terminal = await fetchKnownTerminalStatus();
|
|
9452
9473
|
if (terminal) {
|
|
9453
|
-
|
|
9474
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9454
9475
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9455
9476
|
ms: Date.now() - startedAt,
|
|
9456
9477
|
ok: true,
|
|
@@ -9470,7 +9491,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9470
9491
|
lastPhase
|
|
9471
9492
|
});
|
|
9472
9493
|
}
|
|
9473
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9494
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkC5RQTTLPjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9474
9495
|
if (timeout) {
|
|
9475
9496
|
clearTimeout(timeout);
|
|
9476
9497
|
}
|
|
@@ -9481,7 +9502,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9481
9502
|
`
|
|
9482
9503
|
);
|
|
9483
9504
|
}
|
|
9484
|
-
|
|
9505
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9485
9506
|
phase: "cli.play_start_stream_reconnect",
|
|
9486
9507
|
ms: Date.now() - startedAt,
|
|
9487
9508
|
ok: true,
|
|
@@ -9508,7 +9529,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9508
9529
|
});
|
|
9509
9530
|
}
|
|
9510
9531
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9511
|
-
|
|
9532
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9512
9533
|
phase: "cli.play_start_stream_transient_failure",
|
|
9513
9534
|
ms: Date.now() - startedAt,
|
|
9514
9535
|
ok: false,
|
|
@@ -9536,7 +9557,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9536
9557
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9537
9558
|
);
|
|
9538
9559
|
}
|
|
9539
|
-
|
|
9560
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
9540
9561
|
phase: "cli.play_start_stream_reconnect",
|
|
9541
9562
|
ms: Date.now() - startedAt,
|
|
9542
9563
|
ok: true,
|
|
@@ -9616,7 +9637,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9616
9637
|
"logs"
|
|
9617
9638
|
]);
|
|
9618
9639
|
function formatPlayLogLine(rawLine, state) {
|
|
9619
|
-
const classified =
|
|
9640
|
+
const classified = _chunkC5RQTTLPjs.classifyLogLine.call(void 0, rawLine);
|
|
9620
9641
|
const line = classified.line;
|
|
9621
9642
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9622
9643
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9631,14 +9652,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9631
9652
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9632
9653
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9633
9654
|
if (providerWait && !state.verbose) {
|
|
9634
|
-
return
|
|
9655
|
+
return _chunkC5RQTTLPjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9635
9656
|
}
|
|
9636
9657
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9637
9658
|
if (mapProgress && !state.verbose) {
|
|
9638
|
-
return
|
|
9659
|
+
return _chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9639
9660
|
}
|
|
9640
9661
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9641
|
-
if (!
|
|
9662
|
+
if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9642
9663
|
return null;
|
|
9643
9664
|
}
|
|
9644
9665
|
if (state.emittedRunnerStarted) {
|
|
@@ -9651,7 +9672,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9651
9672
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9652
9673
|
);
|
|
9653
9674
|
if (mapStart) {
|
|
9654
|
-
if (!
|
|
9675
|
+
if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9655
9676
|
return null;
|
|
9656
9677
|
}
|
|
9657
9678
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9661,7 +9682,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9661
9682
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9662
9683
|
);
|
|
9663
9684
|
if (mapDone) {
|
|
9664
|
-
if (!
|
|
9685
|
+
if (!_chunkC5RQTTLPjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9665
9686
|
return null;
|
|
9666
9687
|
}
|
|
9667
9688
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10961,7 +10982,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10961
10982
|
(line) => typeof line === "string"
|
|
10962
10983
|
);
|
|
10963
10984
|
if (tail.length === 0) return [];
|
|
10964
|
-
const shown = tail.map((line) =>
|
|
10985
|
+
const shown = tail.map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line)).filter(
|
|
10965
10986
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10966
10987
|
).slice(-8);
|
|
10967
10988
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11259,11 +11280,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11259
11280
|
}
|
|
11260
11281
|
function writePlayResult(status, jsonOutput, options) {
|
|
11261
11282
|
const packaged = getPlayRunPackage(status);
|
|
11262
|
-
if (status.package)
|
|
11283
|
+
if (status.package) _chunk3CXHK4TWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11263
11284
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11264
11285
|
if (jsonOutput) {
|
|
11265
11286
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11266
|
-
|
|
11287
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
11267
11288
|
hits ? { ...payload2, hits } : payload2,
|
|
11268
11289
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11269
11290
|
);
|
|
@@ -11279,7 +11300,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11279
11300
|
...buildPlayCompletionTextLines(status),
|
|
11280
11301
|
...formatRunHitsLines(hits)
|
|
11281
11302
|
];
|
|
11282
|
-
|
|
11303
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11283
11304
|
json: false,
|
|
11284
11305
|
text: `${lines2.join("\n")}
|
|
11285
11306
|
`
|
|
@@ -11330,7 +11351,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11330
11351
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11331
11352
|
const compact = compactPlayStatus(status);
|
|
11332
11353
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11333
|
-
|
|
11354
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
11334
11355
|
{
|
|
11335
11356
|
...payload,
|
|
11336
11357
|
render: {
|
|
@@ -11554,7 +11575,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11554
11575
|
}
|
|
11555
11576
|
offset += page.rows.length;
|
|
11556
11577
|
}
|
|
11557
|
-
const withError =
|
|
11578
|
+
const withError = _chunk3CXHK4TWjs.tableExportHasFailedRows.call(void 0,
|
|
11558
11579
|
sheetRows.filter(
|
|
11559
11580
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11560
11581
|
)
|
|
@@ -11570,7 +11591,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11570
11591
|
return [
|
|
11571
11592
|
withError ? {
|
|
11572
11593
|
...exported,
|
|
11573
|
-
[
|
|
11594
|
+
[_chunk3CXHK4TWjs.TABLE_EXPORT_ERROR_COLUMN]: _chunk3CXHK4TWjs.tableExportErrorCell.call(void 0,
|
|
11574
11595
|
row
|
|
11575
11596
|
)
|
|
11576
11597
|
} : exported
|
|
@@ -12105,7 +12126,7 @@ function renderServerResultView(value) {
|
|
|
12105
12126
|
function writeStartedPlayRun(input) {
|
|
12106
12127
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12107
12128
|
const run = input.package.run;
|
|
12108
|
-
|
|
12129
|
+
_chunk3CXHK4TWjs.recordPlayTermination.call(void 0, {
|
|
12109
12130
|
id: run.id,
|
|
12110
12131
|
status: run.status,
|
|
12111
12132
|
finishedAt: run.finishedAt
|
|
@@ -12118,7 +12139,7 @@ function writeStartedPlayRun(input) {
|
|
|
12118
12139
|
dashboardUrl: input.dashboardUrl,
|
|
12119
12140
|
package: input.package
|
|
12120
12141
|
};
|
|
12121
|
-
|
|
12142
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12122
12143
|
json: true,
|
|
12123
12144
|
fields: input.jsonFields
|
|
12124
12145
|
});
|
|
@@ -12140,7 +12161,7 @@ function writeStartedPlayRun(input) {
|
|
|
12140
12161
|
input.progress.writeLine(output2, process.stdout);
|
|
12141
12162
|
return;
|
|
12142
12163
|
}
|
|
12143
|
-
|
|
12164
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12144
12165
|
json: false,
|
|
12145
12166
|
text: `${output2}
|
|
12146
12167
|
`
|
|
@@ -12175,7 +12196,7 @@ function writeStartedPlayRun(input) {
|
|
|
12175
12196
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12176
12197
|
];
|
|
12177
12198
|
if (input.jsonOutput) {
|
|
12178
|
-
|
|
12199
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12179
12200
|
return;
|
|
12180
12201
|
}
|
|
12181
12202
|
const output = lines.join("\n");
|
|
@@ -12183,7 +12204,7 @@ function writeStartedPlayRun(input) {
|
|
|
12183
12204
|
input.progress.writeLine(output, process.stdout);
|
|
12184
12205
|
return;
|
|
12185
12206
|
}
|
|
12186
|
-
|
|
12207
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
12187
12208
|
{
|
|
12188
12209
|
...payload,
|
|
12189
12210
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12193,7 +12214,7 @@ function writeStartedPlayRun(input) {
|
|
|
12193
12214
|
);
|
|
12194
12215
|
}
|
|
12195
12216
|
function parsePlayCheckOptions(args) {
|
|
12196
|
-
const selection =
|
|
12217
|
+
const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "check");
|
|
12197
12218
|
args = selection.args;
|
|
12198
12219
|
const target = args[0];
|
|
12199
12220
|
if (!target || target.startsWith("-")) {
|
|
@@ -12205,7 +12226,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12205
12226
|
if (arg !== "--json" && arg !== "--full")
|
|
12206
12227
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12207
12228
|
}
|
|
12208
|
-
const jsonOutput =
|
|
12229
|
+
const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
12209
12230
|
return {
|
|
12210
12231
|
target,
|
|
12211
12232
|
jsonOutput,
|
|
@@ -12281,7 +12302,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12281
12302
|
useLatest,
|
|
12282
12303
|
expectedArtifactHash,
|
|
12283
12304
|
dryRun,
|
|
12284
|
-
jsonOutput:
|
|
12305
|
+
jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args)
|
|
12285
12306
|
};
|
|
12286
12307
|
}
|
|
12287
12308
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12322,7 +12343,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12322
12343
|
target,
|
|
12323
12344
|
expectedArtifactHash,
|
|
12324
12345
|
dryRun,
|
|
12325
|
-
jsonOutput:
|
|
12346
|
+
jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args)
|
|
12326
12347
|
};
|
|
12327
12348
|
}
|
|
12328
12349
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12533,7 +12554,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12533
12554
|
async function handlePlayCheck(args) {
|
|
12534
12555
|
const options = parsePlayCheckOptions(args);
|
|
12535
12556
|
if (!isFileTarget(options.target)) {
|
|
12536
|
-
const client = new (0,
|
|
12557
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
12537
12558
|
try {
|
|
12538
12559
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12539
12560
|
command: "check"
|
|
@@ -12562,7 +12583,7 @@ async function handlePlayCheck(args) {
|
|
|
12562
12583
|
},
|
|
12563
12584
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12564
12585
|
};
|
|
12565
|
-
|
|
12586
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result, {
|
|
12566
12587
|
json: options.jsonOutput,
|
|
12567
12588
|
fields: options.jsonFields,
|
|
12568
12589
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12572,7 +12593,7 @@ async function handlePlayCheck(args) {
|
|
|
12572
12593
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12573
12594
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12574
12595
|
if (options.jsonOutput) {
|
|
12575
|
-
|
|
12596
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
12576
12597
|
{
|
|
12577
12598
|
kind: "play_check",
|
|
12578
12599
|
checked: "named_contract",
|
|
@@ -12603,7 +12624,7 @@ async function handlePlayCheck(args) {
|
|
|
12603
12624
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12604
12625
|
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
12626
|
});
|
|
12606
|
-
|
|
12627
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, output, {
|
|
12607
12628
|
json: options.jsonOutput,
|
|
12608
12629
|
fields: options.jsonFields,
|
|
12609
12630
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12671,7 +12692,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12671
12692
|
}
|
|
12672
12693
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12673
12694
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12674
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12695
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkTCQYWZFSjs.DeeplineClient)()));
|
|
12675
12696
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12676
12697
|
const checked = await checkLocalPlayGraph({
|
|
12677
12698
|
client,
|
|
@@ -12727,8 +12748,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12727
12748
|
let prefetchClient;
|
|
12728
12749
|
let admissionCapability;
|
|
12729
12750
|
let cancelAdmissionCapability;
|
|
12730
|
-
let cliAdmission =
|
|
12731
|
-
const progress = _nullishCoalesce(
|
|
12751
|
+
let cliAdmission = _chunkA2C6ONWAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12752
|
+
const progress = _nullishCoalesce(_chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVA3MWCOjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12732
12753
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12733
12754
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12734
12755
|
progress.phase("compiling play");
|
|
@@ -12745,11 +12766,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12745
12766
|
return 1;
|
|
12746
12767
|
}
|
|
12747
12768
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12748
|
-
const clientForPrefetch = new (0,
|
|
12769
|
+
const clientForPrefetch = new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options));
|
|
12749
12770
|
prefetchClient = clientForPrefetch;
|
|
12750
12771
|
const capabilityController = new AbortController();
|
|
12751
12772
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12752
|
-
admissionCapability =
|
|
12773
|
+
admissionCapability = _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12753
12774
|
"cli.play_admission_capability_prefetch",
|
|
12754
12775
|
{ targetKind: "file" },
|
|
12755
12776
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12760,7 +12781,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12760
12781
|
}
|
|
12761
12782
|
let graph;
|
|
12762
12783
|
try {
|
|
12763
|
-
graph = await
|
|
12784
|
+
graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12764
12785
|
"cli.play_file_bundle_graph",
|
|
12765
12786
|
{ targetKind: "file" },
|
|
12766
12787
|
() => collectBundledPlayGraph(
|
|
@@ -12773,7 +12794,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12773
12794
|
assertPlayGraphAuthoring(graph);
|
|
12774
12795
|
if (options.dryRun) {
|
|
12775
12796
|
progress.complete();
|
|
12776
|
-
const plan =
|
|
12797
|
+
const plan = _chunkWHP3FJ7Tjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12777
12798
|
runIdFile: options.runIdFile
|
|
12778
12799
|
});
|
|
12779
12800
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12784,9 +12805,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12784
12805
|
});
|
|
12785
12806
|
return 0;
|
|
12786
12807
|
}
|
|
12787
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12808
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12788
12809
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12789
|
-
await
|
|
12810
|
+
await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0,
|
|
12790
12811
|
client.baseUrl,
|
|
12791
12812
|
options.maintenancePolicy
|
|
12792
12813
|
);
|
|
@@ -12799,7 +12820,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12799
12820
|
});
|
|
12800
12821
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12801
12822
|
if (canDeferCompilerManifest) {
|
|
12802
|
-
|
|
12823
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
12803
12824
|
phase: "cli.play_file_compile_manifests",
|
|
12804
12825
|
ms: 0,
|
|
12805
12826
|
ok: true,
|
|
@@ -12808,7 +12829,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12808
12829
|
reason: "validated_by_run_route"
|
|
12809
12830
|
});
|
|
12810
12831
|
} else {
|
|
12811
|
-
await
|
|
12832
|
+
await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12812
12833
|
"cli.play_file_compile_manifests",
|
|
12813
12834
|
{ targetKind: "file", skipped: false },
|
|
12814
12835
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12816,7 +12837,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12816
12837
|
}
|
|
12817
12838
|
progress.phase("compiled play");
|
|
12818
12839
|
} catch (error) {
|
|
12819
|
-
if (error instanceof
|
|
12840
|
+
if (error instanceof _chunk3CXHK4TWjs.ExecutionOutputError) throw error;
|
|
12820
12841
|
progress.fail();
|
|
12821
12842
|
reportError(normalizePlayValidationError(error));
|
|
12822
12843
|
return 1;
|
|
@@ -12827,13 +12848,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12827
12848
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12828
12849
|
try {
|
|
12829
12850
|
renderLocalPlayExecutionPlan(
|
|
12830
|
-
|
|
12851
|
+
_chunkWHP3FJ7Tjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12831
12852
|
);
|
|
12832
12853
|
progress.phase("pinning imported plays");
|
|
12833
|
-
graph = await
|
|
12854
|
+
graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12834
12855
|
"cli.play_file_pin_imports",
|
|
12835
12856
|
{ targetKind: "file" },
|
|
12836
|
-
() =>
|
|
12857
|
+
() => _chunkWHP3FJ7Tjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12837
12858
|
);
|
|
12838
12859
|
bundleResult = graph.root;
|
|
12839
12860
|
} catch (error) {
|
|
@@ -12849,7 +12870,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12849
12870
|
const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12850
12871
|
_optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
|
|
12851
12872
|
);
|
|
12852
|
-
const stagedFileInputs = await
|
|
12873
|
+
const stagedFileInputs = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12853
12874
|
"cli.play_stage_inputs",
|
|
12854
12875
|
{
|
|
12855
12876
|
targetKind: "file",
|
|
@@ -12896,7 +12917,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12896
12917
|
};
|
|
12897
12918
|
if (options.watch) {
|
|
12898
12919
|
progress.phase("starting run");
|
|
12899
|
-
const finalStatus = await
|
|
12920
|
+
const finalStatus = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12900
12921
|
"cli.play_start_watch",
|
|
12901
12922
|
{ targetKind: "file", playName },
|
|
12902
12923
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12958,7 +12979,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12958
12979
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12959
12980
|
}
|
|
12960
12981
|
progress.phase("starting run");
|
|
12961
|
-
const started = await
|
|
12982
|
+
const started = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
12962
12983
|
"cli.play_start_unwatched",
|
|
12963
12984
|
{ targetKind: "file", playName },
|
|
12964
12985
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
|
|
@@ -12967,7 +12988,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12967
12988
|
);
|
|
12968
12989
|
await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunStarted, 'optionalCall', _499 => _499(started.workflowId)]);
|
|
12969
12990
|
await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunAdmitted, 'optionalCall', _501 => _501(started.workflowId)]);
|
|
12970
|
-
const resolvedDashboardUrl =
|
|
12991
|
+
const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12971
12992
|
openPlayDashboard(
|
|
12972
12993
|
resolvePlayRunUrl({
|
|
12973
12994
|
runId: started.workflowId,
|
|
@@ -13024,9 +13045,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13024
13045
|
if (options.target.kind !== "name") {
|
|
13025
13046
|
throw new Error("Expected a named play run target.");
|
|
13026
13047
|
}
|
|
13027
|
-
const client = new (0,
|
|
13028
|
-
let cliAdmission =
|
|
13029
|
-
const progress = _nullishCoalesce(
|
|
13048
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)(playRunClientOptions(options));
|
|
13049
|
+
let cliAdmission = _chunkA2C6ONWAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13050
|
+
const progress = _nullishCoalesce(_chunkPVA3MWCOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVA3MWCOjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13030
13051
|
const playName = options.target.name;
|
|
13031
13052
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13032
13053
|
try {
|
|
@@ -13044,7 +13065,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13044
13065
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13045
13066
|
const capabilityController = new AbortController();
|
|
13046
13067
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13047
|
-
admissionCapability =
|
|
13068
|
+
admissionCapability = _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13048
13069
|
"cli.play_admission_capability_prefetch",
|
|
13049
13070
|
{ targetKind: "name", playName },
|
|
13050
13071
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13055,14 +13076,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13055
13076
|
}
|
|
13056
13077
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13057
13078
|
progress.phase("loading play definition");
|
|
13058
|
-
return
|
|
13079
|
+
return _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13059
13080
|
"cli.play_load_definition",
|
|
13060
13081
|
{ targetKind: "name", playName, skipped: false },
|
|
13061
13082
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13062
13083
|
command: "run"
|
|
13063
13084
|
})
|
|
13064
13085
|
);
|
|
13065
|
-
})() : (
|
|
13086
|
+
})() : (_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
13066
13087
|
phase: "cli.play_load_definition",
|
|
13067
13088
|
ms: 0,
|
|
13068
13089
|
ok: true,
|
|
@@ -13071,7 +13092,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13071
13092
|
skipped: true
|
|
13072
13093
|
}), null);
|
|
13073
13094
|
progress.phase("selecting revision");
|
|
13074
|
-
const selectedRevisionId = await
|
|
13095
|
+
const selectedRevisionId = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13075
13096
|
"cli.play_select_revision",
|
|
13076
13097
|
{
|
|
13077
13098
|
targetKind: "name",
|
|
@@ -13096,10 +13117,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13096
13117
|
..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13097
13118
|
] : [];
|
|
13098
13119
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13099
|
-
await
|
|
13120
|
+
await _chunkA2C6ONWAjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13100
13121
|
cliAdmission = false;
|
|
13101
13122
|
}
|
|
13102
|
-
const stagedFileInputs = await
|
|
13123
|
+
const stagedFileInputs = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13103
13124
|
"cli.play_stage_inputs",
|
|
13104
13125
|
{
|
|
13105
13126
|
targetKind: "name",
|
|
@@ -13143,7 +13164,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13143
13164
|
});
|
|
13144
13165
|
if (options.watch) {
|
|
13145
13166
|
progress.phase("starting run");
|
|
13146
|
-
const finalStatus = await
|
|
13167
|
+
const finalStatus = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13147
13168
|
"cli.play_start_watch",
|
|
13148
13169
|
{ targetKind: "name", playName },
|
|
13149
13170
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13208,7 +13229,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13208
13229
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13209
13230
|
}
|
|
13210
13231
|
progress.phase("starting run");
|
|
13211
|
-
const started = await
|
|
13232
|
+
const started = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
13212
13233
|
"cli.play_start_unwatched",
|
|
13213
13234
|
{ targetKind: "name", playName },
|
|
13214
13235
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
|
|
@@ -13219,7 +13240,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13219
13240
|
);
|
|
13220
13241
|
await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunStarted, 'optionalCall', _512 => _512(started.workflowId)]);
|
|
13221
13242
|
await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunAdmitted, 'optionalCall', _514 => _514(started.workflowId)]);
|
|
13222
|
-
const resolvedDashboardUrl =
|
|
13243
|
+
const resolvedDashboardUrl = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13223
13244
|
openPlayDashboard(
|
|
13224
13245
|
resolvePlayRunUrl({
|
|
13225
13246
|
runId: started.workflowId,
|
|
@@ -13268,11 +13289,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13268
13289
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13269
13290
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13270
13291
|
if (!terminal) {
|
|
13271
|
-
|
|
13292
|
+
_chunk3CXHK4TWjs.writeExecutionOutput.call(void 0,
|
|
13272
13293
|
{
|
|
13273
13294
|
id: status.runId,
|
|
13274
13295
|
status: status.status,
|
|
13275
|
-
...playName ? { page:
|
|
13296
|
+
...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13276
13297
|
next
|
|
13277
13298
|
},
|
|
13278
13299
|
output
|
|
@@ -13348,10 +13369,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13348
13369
|
};
|
|
13349
13370
|
}
|
|
13350
13371
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13351
|
-
const allCollections =
|
|
13372
|
+
const allCollections = _chunk3CXHK4TWjs.outputCollections.call(void 0, data).map(
|
|
13352
13373
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13353
13374
|
);
|
|
13354
|
-
|
|
13375
|
+
_chunk3CXHK4TWjs.writeExecutionOutput.call(void 0,
|
|
13355
13376
|
{
|
|
13356
13377
|
id: status.runId,
|
|
13357
13378
|
status: status.status,
|
|
@@ -13360,7 +13381,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13360
13381
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
13361
13382
|
error,
|
|
13362
13383
|
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _527 => _527.billing, 'optionalAccess', _528 => _528.totalCredits]))), () => ( null)),
|
|
13363
|
-
...playName ? { page:
|
|
13384
|
+
...playName ? { page: _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13364
13385
|
warnings: [
|
|
13365
13386
|
...buildRunWarnings(status, null),
|
|
13366
13387
|
...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
|
|
@@ -13372,7 +13393,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13372
13393
|
}
|
|
13373
13394
|
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
13395
|
async function handlePlayRun(args, hooks) {
|
|
13375
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13396
|
+
const parsedOptions = Array.isArray(args) ? _chunkAARF4SOWjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13376
13397
|
const options = parsedOptions.runIdFile ? {
|
|
13377
13398
|
...parsedOptions,
|
|
13378
13399
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13389,7 +13410,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13389
13410
|
JSON.stringify({
|
|
13390
13411
|
version: 1,
|
|
13391
13412
|
admissionState: "submitted_unknown",
|
|
13392
|
-
baseUrl: new (0,
|
|
13413
|
+
baseUrl: new (0, _chunkTCQYWZFSjs.DeeplineClient)().baseUrl,
|
|
13393
13414
|
...intent
|
|
13394
13415
|
})
|
|
13395
13416
|
);
|
|
@@ -13623,7 +13644,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13623
13644
|
);
|
|
13624
13645
|
return `${lines.join("\n")}
|
|
13625
13646
|
|
|
13626
|
-
${
|
|
13647
|
+
${_chunkF73PD2XDjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13627
13648
|
}
|
|
13628
13649
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13629
13650
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13647,7 +13668,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13647
13668
|
}
|
|
13648
13669
|
}
|
|
13649
13670
|
async function handleRunGet(args) {
|
|
13650
|
-
const selection =
|
|
13671
|
+
const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0,
|
|
13651
13672
|
args,
|
|
13652
13673
|
args.includes("--config") ? "config" : "get"
|
|
13653
13674
|
);
|
|
@@ -13660,7 +13681,7 @@ async function handleRunGet(args) {
|
|
|
13660
13681
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13661
13682
|
return 1;
|
|
13662
13683
|
}
|
|
13663
|
-
const client = new (0,
|
|
13684
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
13664
13685
|
const timing = args.includes("--timing");
|
|
13665
13686
|
const web = args.includes("--web");
|
|
13666
13687
|
if (web || args.includes("--web-url")) {
|
|
@@ -13675,11 +13696,11 @@ async function handleRunGet(args) {
|
|
|
13675
13696
|
console.error(`Run ${runId} does not name its play; no run page URL.`);
|
|
13676
13697
|
return 1;
|
|
13677
13698
|
}
|
|
13678
|
-
const dashboardUrl2 =
|
|
13679
|
-
const runUrl2 =
|
|
13699
|
+
const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13700
|
+
const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13680
13701
|
if (web) {
|
|
13681
|
-
const opened =
|
|
13682
|
-
|
|
13702
|
+
const opened = _chunkF73PD2XDjs.openInBrowser.call(void 0, runUrl2);
|
|
13703
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13683
13704
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13684
13705
|
{
|
|
13685
13706
|
json: args.includes("--json"),
|
|
@@ -13690,7 +13711,7 @@ async function handleRunGet(args) {
|
|
|
13690
13711
|
);
|
|
13691
13712
|
return 0;
|
|
13692
13713
|
}
|
|
13693
|
-
|
|
13714
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13694
13715
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13695
13716
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13696
13717
|
` }
|
|
@@ -13715,7 +13736,7 @@ async function handleRunGet(args) {
|
|
|
13715
13736
|
"This server does not support recorded configuration reads."
|
|
13716
13737
|
);
|
|
13717
13738
|
}
|
|
13718
|
-
|
|
13739
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13719
13740
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13720
13741
|
{ json: true, fields: selection.fields }
|
|
13721
13742
|
);
|
|
@@ -13728,7 +13749,7 @@ async function handleRunGet(args) {
|
|
|
13728
13749
|
timing,
|
|
13729
13750
|
() => client.getRunInput(runId)
|
|
13730
13751
|
);
|
|
13731
|
-
|
|
13752
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13732
13753
|
return 0;
|
|
13733
13754
|
}
|
|
13734
13755
|
const full = args.includes("--full");
|
|
@@ -13741,7 +13762,7 @@ async function handleRunGet(args) {
|
|
|
13741
13762
|
failedLogs: args.includes("--log-failed")
|
|
13742
13763
|
})
|
|
13743
13764
|
);
|
|
13744
|
-
if (status.package)
|
|
13765
|
+
if (status.package) _chunk3CXHK4TWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13745
13766
|
if (!status.package) {
|
|
13746
13767
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13747
13768
|
"runs get",
|
|
@@ -13753,10 +13774,10 @@ async function handleRunGet(args) {
|
|
|
13753
13774
|
})
|
|
13754
13775
|
) : status;
|
|
13755
13776
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13756
|
-
const legacyDashboardUrl = legacyPlayName ?
|
|
13757
|
-
const legacyRunUrl = legacyPlayName ?
|
|
13758
|
-
if (
|
|
13759
|
-
|
|
13777
|
+
const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13778
|
+
const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13779
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
13780
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13760
13781
|
{
|
|
13761
13782
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13762
13783
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13767,7 +13788,7 @@ async function handleRunGet(args) {
|
|
|
13767
13788
|
} else {
|
|
13768
13789
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13769
13790
|
if (legacyRunUrl)
|
|
13770
|
-
|
|
13791
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13771
13792
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13772
13793
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13773
13794
|
` }
|
|
@@ -13797,11 +13818,11 @@ async function handleRunGet(args) {
|
|
|
13797
13818
|
)
|
|
13798
13819
|
]);
|
|
13799
13820
|
const hitLines = formatRunHitsLines(hits);
|
|
13800
|
-
const json =
|
|
13821
|
+
const json = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
13801
13822
|
const playName = resolveRunPlayName(status, runId);
|
|
13802
|
-
const dashboardUrl = playName ?
|
|
13803
|
-
const runUrl = playName ?
|
|
13804
|
-
|
|
13823
|
+
const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13824
|
+
const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13825
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
13805
13826
|
{
|
|
13806
13827
|
...overview,
|
|
13807
13828
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13906,9 +13927,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13906
13927
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13907
13928
|
return 1;
|
|
13908
13929
|
}
|
|
13909
|
-
const status = await new (0,
|
|
13910
|
-
if (
|
|
13911
|
-
|
|
13930
|
+
const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.status(runId);
|
|
13931
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
13932
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13912
13933
|
return 0;
|
|
13913
13934
|
}
|
|
13914
13935
|
if (!status.available) {
|
|
@@ -13939,6 +13960,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13939
13960
|
}
|
|
13940
13961
|
return 0;
|
|
13941
13962
|
}
|
|
13963
|
+
function runsRerunRenameNotice(runId) {
|
|
13964
|
+
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}.`;
|
|
13965
|
+
}
|
|
13942
13966
|
async function handleRunsRerun(args) {
|
|
13943
13967
|
const usage2 = "Usage: deepline runs rerun <run-id> [--idempotency-key <key>] [--input-overrides <json>] [--json]";
|
|
13944
13968
|
let runId;
|
|
@@ -13948,7 +13972,7 @@ async function handleRunsRerun(args) {
|
|
|
13948
13972
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13949
13973
|
return 1;
|
|
13950
13974
|
}
|
|
13951
|
-
const options = { json:
|
|
13975
|
+
const options = { json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) };
|
|
13952
13976
|
for (let index = 0; index < args.length; index += 1) {
|
|
13953
13977
|
if (args[index] === "--idempotency-key") {
|
|
13954
13978
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14014,8 +14038,8 @@ ${usage2}
|
|
|
14014
14038
|
Discover Plays: ${next.discover}
|
|
14015
14039
|
Active runs: ${next.running}`
|
|
14016
14040
|
);
|
|
14017
|
-
if (
|
|
14018
|
-
|
|
14041
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
14042
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14019
14043
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14020
14044
|
{ json: true }
|
|
14021
14045
|
);
|
|
@@ -14030,7 +14054,7 @@ Active runs: ${next.running}`
|
|
|
14030
14054
|
console.error("--offset requires --play.");
|
|
14031
14055
|
return 1;
|
|
14032
14056
|
}
|
|
14033
|
-
const client = new (0,
|
|
14057
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14034
14058
|
const page = await withRunReadTiming(
|
|
14035
14059
|
"runs list",
|
|
14036
14060
|
"run inventory",
|
|
@@ -14097,14 +14121,14 @@ Active runs: ${next.running}`
|
|
|
14097
14121
|
return lines2.join("\n");
|
|
14098
14122
|
});
|
|
14099
14123
|
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}${
|
|
14124
|
+
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}${_chunkF73PD2XDjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14101
14125
|
if (page.hasMore) {
|
|
14102
14126
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14103
14127
|
lines.push(
|
|
14104
14128
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14105
14129
|
);
|
|
14106
14130
|
}
|
|
14107
|
-
|
|
14131
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14108
14132
|
{
|
|
14109
14133
|
runs,
|
|
14110
14134
|
count: runs.length,
|
|
@@ -14118,7 +14142,7 @@ Active runs: ${next.running}`
|
|
|
14118
14142
|
},
|
|
14119
14143
|
render: { sections: [{ title: "runs", lines }] }
|
|
14120
14144
|
},
|
|
14121
|
-
{ json:
|
|
14145
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14122
14146
|
);
|
|
14123
14147
|
return 0;
|
|
14124
14148
|
}
|
|
@@ -14148,7 +14172,7 @@ async function handleRunTail(args) {
|
|
|
14148
14172
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14149
14173
|
return 1;
|
|
14150
14174
|
}
|
|
14151
|
-
const parsed =
|
|
14175
|
+
const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
|
|
14152
14176
|
if (!parsed) {
|
|
14153
14177
|
console.error(
|
|
14154
14178
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14186,9 +14210,9 @@ async function handleRunTail(args) {
|
|
|
14186
14210
|
);
|
|
14187
14211
|
return 1;
|
|
14188
14212
|
}
|
|
14189
|
-
const client = new (0,
|
|
14213
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14190
14214
|
const jsonLines = args.includes("--jsonl");
|
|
14191
|
-
const jsonOutput = !jsonLines &&
|
|
14215
|
+
const jsonOutput = !jsonLines && _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
14192
14216
|
const compact = args.includes("--compact");
|
|
14193
14217
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14194
14218
|
const compactState = {
|
|
@@ -14269,7 +14293,7 @@ async function handleRunLogs(args) {
|
|
|
14269
14293
|
]);
|
|
14270
14294
|
const cursorIndex = args.indexOf("--cursor");
|
|
14271
14295
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14272
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14296
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkC5RQTTLPjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14273
14297
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14274
14298
|
return handleRunEventSearch(args);
|
|
14275
14299
|
}
|
|
@@ -14303,7 +14327,7 @@ async function handleRunLogs(args) {
|
|
|
14303
14327
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14304
14328
|
return 1;
|
|
14305
14329
|
}
|
|
14306
|
-
const parsed =
|
|
14330
|
+
const parsed = _chunkC5RQTTLPjs.parseLogLevel.call(void 0, value);
|
|
14307
14331
|
if (!parsed) {
|
|
14308
14332
|
console.error(
|
|
14309
14333
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14350,12 +14374,12 @@ async function handleRunLogs(args) {
|
|
|
14350
14374
|
);
|
|
14351
14375
|
return 1;
|
|
14352
14376
|
}
|
|
14353
|
-
const client = new (0,
|
|
14377
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14354
14378
|
if (outPath) {
|
|
14355
14379
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14356
|
-
const logs = result2.entries.filter((line) =>
|
|
14380
|
+
const logs = result2.entries.filter((line) => _chunkC5RQTTLPjs.logLevelReaches.call(void 0, _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).line);
|
|
14357
14381
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14358
|
-
|
|
14382
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14359
14383
|
{
|
|
14360
14384
|
runId: result2.runId,
|
|
14361
14385
|
log_path: outPath,
|
|
@@ -14378,7 +14402,7 @@ async function handleRunLogs(args) {
|
|
|
14378
14402
|
]
|
|
14379
14403
|
}
|
|
14380
14404
|
},
|
|
14381
|
-
{ json:
|
|
14405
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14382
14406
|
);
|
|
14383
14407
|
return 0;
|
|
14384
14408
|
}
|
|
@@ -14409,7 +14433,7 @@ async function handleRunLogs(args) {
|
|
|
14409
14433
|
}
|
|
14410
14434
|
};
|
|
14411
14435
|
const text = buildRunLogsText(filteredResult);
|
|
14412
|
-
|
|
14436
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14413
14437
|
{
|
|
14414
14438
|
runId: result.runId,
|
|
14415
14439
|
totalCount: result.totalCount,
|
|
@@ -14433,7 +14457,7 @@ async function handleRunLogs(args) {
|
|
|
14433
14457
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14434
14458
|
},
|
|
14435
14459
|
{
|
|
14436
|
-
json:
|
|
14460
|
+
json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
|
|
14437
14461
|
text
|
|
14438
14462
|
}
|
|
14439
14463
|
);
|
|
@@ -14457,7 +14481,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14457
14481
|
);
|
|
14458
14482
|
}
|
|
14459
14483
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14460
|
-
(entry) =>
|
|
14484
|
+
(entry) => _chunkC5RQTTLPjs.logLevelReaches.call(void 0, _chunkC5RQTTLPjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14461
14485
|
);
|
|
14462
14486
|
const selected = matching.slice(-limit);
|
|
14463
14487
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14467,7 +14491,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14467
14491
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
|
|
14468
14492
|
truncated: result.truncated || olderMatchesExist,
|
|
14469
14493
|
hasMore: olderMatchesExist,
|
|
14470
|
-
nextCursor: olderMatchesExist ?
|
|
14494
|
+
nextCursor: olderMatchesExist ? _chunkC5RQTTLPjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14471
14495
|
};
|
|
14472
14496
|
}
|
|
14473
14497
|
async function handleRunEventSearch(args) {
|
|
@@ -14534,7 +14558,7 @@ ${usage2}`);
|
|
|
14534
14558
|
namespace,
|
|
14535
14559
|
...backend ? { backend } : {}
|
|
14536
14560
|
} : void 0;
|
|
14537
|
-
const client = new (0,
|
|
14561
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14538
14562
|
const result = await client.runs.searchEvents({
|
|
14539
14563
|
...runId ? { runId } : {},
|
|
14540
14564
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14606,7 +14630,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14606
14630
|
"--limit",
|
|
14607
14631
|
String(limit)
|
|
14608
14632
|
].join(" ") : null;
|
|
14609
|
-
|
|
14633
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14610
14634
|
{
|
|
14611
14635
|
events,
|
|
14612
14636
|
nextCursor: result.nextCursor,
|
|
@@ -14617,14 +14641,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14617
14641
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14618
14642
|
},
|
|
14619
14643
|
{
|
|
14620
|
-
json:
|
|
14644
|
+
json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
|
|
14621
14645
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14622
14646
|
}
|
|
14623
14647
|
);
|
|
14624
14648
|
return 0;
|
|
14625
14649
|
}
|
|
14626
14650
|
function buildRunLogsText(result) {
|
|
14627
|
-
const lines = result.entries.map((line) =>
|
|
14651
|
+
const lines = result.entries.map((line) => _chunkC5RQTTLPjs.classifyLogLine.call(void 0, line).line);
|
|
14628
14652
|
if (result.warning) {
|
|
14629
14653
|
if (lines.length > 0) lines.push("");
|
|
14630
14654
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14658,7 +14682,7 @@ async function handleRunStop(args) {
|
|
|
14658
14682
|
reason = args[++index];
|
|
14659
14683
|
}
|
|
14660
14684
|
}
|
|
14661
|
-
const client = new (0,
|
|
14685
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14662
14686
|
const result = await client.runs.stop(runId, { reason });
|
|
14663
14687
|
const state = resolveRunStopState(result);
|
|
14664
14688
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14673,7 +14697,7 @@ async function handleRunStop(args) {
|
|
|
14673
14697
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14674
14698
|
`inspect: deepline runs get ${runId} --full`
|
|
14675
14699
|
];
|
|
14676
|
-
|
|
14700
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14677
14701
|
{
|
|
14678
14702
|
...cancelling,
|
|
14679
14703
|
state,
|
|
@@ -14688,7 +14712,7 @@ async function handleRunStop(args) {
|
|
|
14688
14712
|
]
|
|
14689
14713
|
}
|
|
14690
14714
|
},
|
|
14691
|
-
{ json:
|
|
14715
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14692
14716
|
);
|
|
14693
14717
|
return 0;
|
|
14694
14718
|
}
|
|
@@ -14705,7 +14729,7 @@ async function handleRunStop(args) {
|
|
|
14705
14729
|
];
|
|
14706
14730
|
process.stderr.write(`${lines2.join("\n")}
|
|
14707
14731
|
`);
|
|
14708
|
-
|
|
14732
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14709
14733
|
{
|
|
14710
14734
|
...result,
|
|
14711
14735
|
render: {
|
|
@@ -14720,7 +14744,7 @@ async function handleRunStop(args) {
|
|
|
14720
14744
|
]
|
|
14721
14745
|
}
|
|
14722
14746
|
},
|
|
14723
|
-
{ json:
|
|
14747
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14724
14748
|
);
|
|
14725
14749
|
return 1;
|
|
14726
14750
|
}
|
|
@@ -14731,12 +14755,12 @@ async function handleRunStop(args) {
|
|
|
14731
14755
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14732
14756
|
] : []
|
|
14733
14757
|
];
|
|
14734
|
-
|
|
14758
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14735
14759
|
{
|
|
14736
14760
|
...result,
|
|
14737
14761
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14738
14762
|
},
|
|
14739
|
-
{ json:
|
|
14763
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14740
14764
|
);
|
|
14741
14765
|
return 0;
|
|
14742
14766
|
}
|
|
@@ -14786,18 +14810,18 @@ async function handleRunStopAll(args) {
|
|
|
14786
14810
|
reason = args[++index];
|
|
14787
14811
|
}
|
|
14788
14812
|
}
|
|
14789
|
-
const client = new (0,
|
|
14813
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14790
14814
|
if (dryRun) {
|
|
14791
14815
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14792
14816
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14793
|
-
|
|
14817
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14794
14818
|
{
|
|
14795
14819
|
...result2,
|
|
14796
14820
|
render: {
|
|
14797
14821
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14798
14822
|
}
|
|
14799
14823
|
},
|
|
14800
|
-
{ json:
|
|
14824
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14801
14825
|
` }
|
|
14802
14826
|
);
|
|
14803
14827
|
return 0;
|
|
@@ -14810,17 +14834,17 @@ async function handleRunStopAll(args) {
|
|
|
14810
14834
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14811
14835
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14812
14836
|
];
|
|
14813
|
-
|
|
14837
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
14814
14838
|
{
|
|
14815
14839
|
...result,
|
|
14816
14840
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14817
14841
|
},
|
|
14818
|
-
{ json:
|
|
14842
|
+
{ json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args) }
|
|
14819
14843
|
);
|
|
14820
14844
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14821
14845
|
}
|
|
14822
14846
|
async function handleRunExport(args) {
|
|
14823
|
-
const selection =
|
|
14847
|
+
const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "export");
|
|
14824
14848
|
args = selection.args;
|
|
14825
14849
|
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
14850
|
let runId;
|
|
@@ -14891,17 +14915,17 @@ async function handleRunExport(args) {
|
|
|
14891
14915
|
"INVALID_ARGUMENT"
|
|
14892
14916
|
);
|
|
14893
14917
|
}
|
|
14894
|
-
const client = new (0,
|
|
14918
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
14895
14919
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14896
14920
|
assertRunExportStatusIdentity(status, runId);
|
|
14897
14921
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14898
|
-
const progress =
|
|
14922
|
+
const progress = _chunkPVA3MWCOjs.createCliProgress.call(void 0, !_chunkF73PD2XDjs.argsWantJson.call(void 0, args));
|
|
14899
14923
|
try {
|
|
14900
14924
|
await waitForPlayCompletionByWatch({
|
|
14901
14925
|
client,
|
|
14902
14926
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14903
14927
|
workflowId: runId,
|
|
14904
|
-
jsonOutput:
|
|
14928
|
+
jsonOutput: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
|
|
14905
14929
|
emitLogs: false,
|
|
14906
14930
|
waitTimeoutMs,
|
|
14907
14931
|
startedAt: Date.now(),
|
|
@@ -14969,7 +14993,7 @@ async function handleRunExport(args) {
|
|
|
14969
14993
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
|
|
14970
14994
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14971
14995
|
...rowFailures ? { rowFailures } : {},
|
|
14972
|
-
columns:
|
|
14996
|
+
columns: _chunk3CXHK4TWjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
|
|
14973
14997
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14974
14998
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14975
14999
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15003,8 +15027,8 @@ async function handleRunExport(args) {
|
|
|
15003
15027
|
"utf-8"
|
|
15004
15028
|
);
|
|
15005
15029
|
}
|
|
15006
|
-
|
|
15007
|
-
json:
|
|
15030
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, payload, {
|
|
15031
|
+
json: _chunkF73PD2XDjs.argsWantJson.call(void 0, args),
|
|
15008
15032
|
fields: selection.fields,
|
|
15009
15033
|
text: `${lines.join("\n")}
|
|
15010
15034
|
`
|
|
@@ -15038,10 +15062,10 @@ async function handlePlayGet(args) {
|
|
|
15038
15062
|
);
|
|
15039
15063
|
return 2;
|
|
15040
15064
|
}
|
|
15041
|
-
const client = new (0,
|
|
15065
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15042
15066
|
const explicitJson = args.includes("--json");
|
|
15043
15067
|
const sourceOutput = args.includes("--source");
|
|
15044
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15068
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
15045
15069
|
const requestedRevisionFlags = [
|
|
15046
15070
|
args.includes("--working"),
|
|
15047
15071
|
args.includes("--live"),
|
|
@@ -15104,7 +15128,7 @@ async function handlePlayGet(args) {
|
|
|
15104
15128
|
}
|
|
15105
15129
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15106
15130
|
if (jsonOutput) {
|
|
15107
|
-
|
|
15131
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
15108
15132
|
...detail,
|
|
15109
15133
|
...materializedFile ? {
|
|
15110
15134
|
message: loadedMessage,
|
|
@@ -15196,8 +15220,8 @@ async function handlePlayVersions(args) {
|
|
|
15196
15220
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15197
15221
|
return 1;
|
|
15198
15222
|
}
|
|
15199
|
-
const client = new (0,
|
|
15200
|
-
const jsonOutput =
|
|
15223
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15224
|
+
const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
15201
15225
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15202
15226
|
command: "versions"
|
|
15203
15227
|
});
|
|
@@ -15205,7 +15229,7 @@ async function handlePlayVersions(args) {
|
|
|
15205
15229
|
parseReferencedPlayTarget(playName).playName
|
|
15206
15230
|
);
|
|
15207
15231
|
if (jsonOutput) {
|
|
15208
|
-
|
|
15232
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, { versions });
|
|
15209
15233
|
return 0;
|
|
15210
15234
|
}
|
|
15211
15235
|
if (versions.length === 0) {
|
|
@@ -15248,8 +15272,8 @@ async function handlePlayCost(args) {
|
|
|
15248
15272
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15249
15273
|
return 2;
|
|
15250
15274
|
}
|
|
15251
|
-
const result = await new (0,
|
|
15252
|
-
if (
|
|
15275
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15276
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15253
15277
|
else
|
|
15254
15278
|
console.log(
|
|
15255
15279
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15257,9 +15281,9 @@ async function handlePlayCost(args) {
|
|
|
15257
15281
|
return 0;
|
|
15258
15282
|
}
|
|
15259
15283
|
async function handlePlayList(args) {
|
|
15260
|
-
const jsonOutput =
|
|
15284
|
+
const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
15261
15285
|
const showCost = args.includes("--show-cost");
|
|
15262
|
-
const client = new (0,
|
|
15286
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15263
15287
|
const categoriesIndex = args.indexOf("--categories");
|
|
15264
15288
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
|
|
15265
15289
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15357,7 +15381,7 @@ async function handlePlayList(args) {
|
|
|
15357
15381
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15358
15382
|
lines.push(`Next page: ${nextPage}`);
|
|
15359
15383
|
}
|
|
15360
|
-
|
|
15384
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
15361
15385
|
{
|
|
15362
15386
|
plays,
|
|
15363
15387
|
count: plays.length,
|
|
@@ -15375,7 +15399,7 @@ async function handlePlayList(args) {
|
|
|
15375
15399
|
}
|
|
15376
15400
|
async function handlePlayPin(args, pinned) {
|
|
15377
15401
|
const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
|
|
15378
|
-
const jsonOutput =
|
|
15402
|
+
const jsonOutput = _chunkF73PD2XDjs.argsWantJson.call(void 0, args);
|
|
15379
15403
|
const dryRun = args.includes("--dry-run");
|
|
15380
15404
|
if (!target) {
|
|
15381
15405
|
console.error(
|
|
@@ -15393,11 +15417,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15393
15417
|
const name = parsedTarget.playName;
|
|
15394
15418
|
const plan = { name, pinned, dryRun };
|
|
15395
15419
|
if (dryRun) {
|
|
15396
|
-
|
|
15420
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, plan);
|
|
15397
15421
|
return 0;
|
|
15398
15422
|
}
|
|
15399
|
-
const result = await new (0,
|
|
15400
|
-
if (jsonOutput)
|
|
15423
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15424
|
+
if (jsonOutput) _chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
15401
15425
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15402
15426
|
return 0;
|
|
15403
15427
|
}
|
|
@@ -15523,12 +15547,12 @@ async function handlePlayGrep(args) {
|
|
|
15523
15547
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15524
15548
|
return 1;
|
|
15525
15549
|
}
|
|
15526
|
-
const client = new (0,
|
|
15550
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15527
15551
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15528
15552
|
summarizePlayGrepResult
|
|
15529
15553
|
);
|
|
15530
|
-
if (
|
|
15531
|
-
|
|
15554
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
15555
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
15532
15556
|
plays: results,
|
|
15533
15557
|
count: results.length,
|
|
15534
15558
|
query,
|
|
@@ -15551,7 +15575,7 @@ async function handlePlayGrep(args) {
|
|
|
15551
15575
|
return 0;
|
|
15552
15576
|
}
|
|
15553
15577
|
async function handlePlayDescribe(args) {
|
|
15554
|
-
const selection =
|
|
15578
|
+
const selection = _chunkF73PD2XDjs.parseJsonFields.call(void 0, args, "describe");
|
|
15555
15579
|
args = selection.args;
|
|
15556
15580
|
const playName = args[0];
|
|
15557
15581
|
if (!playName) {
|
|
@@ -15585,8 +15609,8 @@ async function handlePlayDescribe(args) {
|
|
|
15585
15609
|
`deepline plays check ${playName}`,
|
|
15586
15610
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15587
15611
|
];
|
|
15588
|
-
if (
|
|
15589
|
-
|
|
15612
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
15613
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
15590
15614
|
ok: false,
|
|
15591
15615
|
error: { message },
|
|
15592
15616
|
next
|
|
@@ -15600,7 +15624,7 @@ async function handlePlayDescribe(args) {
|
|
|
15600
15624
|
}
|
|
15601
15625
|
return 2;
|
|
15602
15626
|
}
|
|
15603
|
-
const client = new (0,
|
|
15627
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15604
15628
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15605
15629
|
command: "describe"
|
|
15606
15630
|
});
|
|
@@ -15610,9 +15634,9 @@ async function handlePlayDescribe(args) {
|
|
|
15610
15634
|
compact: args.includes("--compact")
|
|
15611
15635
|
}
|
|
15612
15636
|
);
|
|
15613
|
-
if (
|
|
15614
|
-
if (selection.fields)
|
|
15615
|
-
else
|
|
15637
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
15638
|
+
if (selection.fields) _chunkF73PD2XDjs.printJson.call(void 0, play, selection.fields);
|
|
15639
|
+
else _chunkF73PD2XDjs.printCompactJson.call(void 0, play);
|
|
15616
15640
|
return 0;
|
|
15617
15641
|
}
|
|
15618
15642
|
printPlayDescription(play);
|
|
@@ -15634,7 +15658,7 @@ async function handlePlaySave(args) {
|
|
|
15634
15658
|
}
|
|
15635
15659
|
let graph;
|
|
15636
15660
|
try {
|
|
15637
|
-
graph = await
|
|
15661
|
+
graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15638
15662
|
"cli.play_save_bundle_graph",
|
|
15639
15663
|
{ targetKind: "file" },
|
|
15640
15664
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15656,7 +15680,7 @@ async function handlePlaySave(args) {
|
|
|
15656
15680
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15657
15681
|
};
|
|
15658
15682
|
if (options.jsonOutput) {
|
|
15659
|
-
|
|
15683
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
15660
15684
|
} else {
|
|
15661
15685
|
console.error(result.message);
|
|
15662
15686
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15678,7 +15702,7 @@ async function handlePlaySave(args) {
|
|
|
15678
15702
|
};
|
|
15679
15703
|
if (options.dryRun) {
|
|
15680
15704
|
if (options.jsonOutput) {
|
|
15681
|
-
|
|
15705
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, dryRun);
|
|
15682
15706
|
} else {
|
|
15683
15707
|
console.log(`Dry run: ${playName}`);
|
|
15684
15708
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15687,14 +15711,14 @@ async function handlePlaySave(args) {
|
|
|
15687
15711
|
}
|
|
15688
15712
|
return 0;
|
|
15689
15713
|
}
|
|
15690
|
-
const client = new (0,
|
|
15714
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15691
15715
|
try {
|
|
15692
|
-
await
|
|
15716
|
+
await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15693
15717
|
"cli.play_save_compile_manifests",
|
|
15694
15718
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15695
15719
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15696
15720
|
);
|
|
15697
|
-
const saved = await
|
|
15721
|
+
const saved = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15698
15722
|
"cli.play_save_register_draft",
|
|
15699
15723
|
{ targetKind: "file", playName, artifactHash },
|
|
15700
15724
|
() => client.registerPlayArtifact({
|
|
@@ -15723,7 +15747,7 @@ async function handlePlaySave(args) {
|
|
|
15723
15747
|
}
|
|
15724
15748
|
};
|
|
15725
15749
|
if (options.jsonOutput) {
|
|
15726
|
-
|
|
15750
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
15727
15751
|
} else {
|
|
15728
15752
|
console.log(
|
|
15729
15753
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15749,7 +15773,7 @@ async function handlePlayPublish(args) {
|
|
|
15749
15773
|
}
|
|
15750
15774
|
const { target: playName, useLatest } = options;
|
|
15751
15775
|
let revisionId = options.revisionId;
|
|
15752
|
-
const client = new (0,
|
|
15776
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15753
15777
|
if (isFileTarget(playName)) {
|
|
15754
15778
|
if (revisionId || useLatest) {
|
|
15755
15779
|
console.error(
|
|
@@ -15759,7 +15783,7 @@ async function handlePlayPublish(args) {
|
|
|
15759
15783
|
}
|
|
15760
15784
|
let graph;
|
|
15761
15785
|
try {
|
|
15762
|
-
graph = await
|
|
15786
|
+
graph = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15763
15787
|
"cli.play_publish_bundle_graph",
|
|
15764
15788
|
{ targetKind: "file" },
|
|
15765
15789
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15781,7 +15805,7 @@ async function handlePlayPublish(args) {
|
|
|
15781
15805
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15782
15806
|
};
|
|
15783
15807
|
if (options.jsonOutput) {
|
|
15784
|
-
|
|
15808
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result3);
|
|
15785
15809
|
} else {
|
|
15786
15810
|
console.error(result3.message);
|
|
15787
15811
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15804,7 +15828,7 @@ async function handlePlayPublish(args) {
|
|
|
15804
15828
|
};
|
|
15805
15829
|
if (options.dryRun) {
|
|
15806
15830
|
if (options.jsonOutput) {
|
|
15807
|
-
|
|
15831
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, dryRun);
|
|
15808
15832
|
} else {
|
|
15809
15833
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15810
15834
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15823,12 +15847,12 @@ async function handlePlayPublish(args) {
|
|
|
15823
15847
|
}
|
|
15824
15848
|
}
|
|
15825
15849
|
try {
|
|
15826
|
-
await
|
|
15850
|
+
await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15827
15851
|
"cli.play_publish_compile_manifests",
|
|
15828
15852
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15829
15853
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15830
15854
|
);
|
|
15831
|
-
await
|
|
15855
|
+
await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15832
15856
|
"cli.play_publish_imports",
|
|
15833
15857
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15834
15858
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15837,7 +15861,7 @@ async function handlePlayPublish(args) {
|
|
|
15837
15861
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15838
15862
|
return 1;
|
|
15839
15863
|
}
|
|
15840
|
-
const published = await
|
|
15864
|
+
const published = await _chunkYXGPMTAKjs.traceCliSpan.call(void 0,
|
|
15841
15865
|
"cli.play_publish_register_root",
|
|
15842
15866
|
{
|
|
15843
15867
|
targetKind: "file",
|
|
@@ -15872,7 +15896,7 @@ async function handlePlayPublish(args) {
|
|
|
15872
15896
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15873
15897
|
};
|
|
15874
15898
|
if (options.jsonOutput) {
|
|
15875
|
-
|
|
15899
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
|
|
15876
15900
|
} else {
|
|
15877
15901
|
printPublishReceipt({
|
|
15878
15902
|
name: rootPlayName,
|
|
@@ -15903,7 +15927,7 @@ async function handlePlayPublish(args) {
|
|
|
15903
15927
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15904
15928
|
latest: useLatest
|
|
15905
15929
|
};
|
|
15906
|
-
|
|
15930
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
|
|
15907
15931
|
return 0;
|
|
15908
15932
|
}
|
|
15909
15933
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15927,7 +15951,7 @@ async function handlePlayPublish(args) {
|
|
|
15927
15951
|
revisionId ? { revisionId } : {}
|
|
15928
15952
|
);
|
|
15929
15953
|
if (options.jsonOutput) {
|
|
15930
|
-
|
|
15954
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
15931
15955
|
} else {
|
|
15932
15956
|
printPublishReceipt({
|
|
15933
15957
|
name: result.name,
|
|
@@ -15967,7 +15991,7 @@ async function handlePlayDelete(args) {
|
|
|
15967
15991
|
);
|
|
15968
15992
|
return 2;
|
|
15969
15993
|
}
|
|
15970
|
-
const client = new (0,
|
|
15994
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
15971
15995
|
let detail;
|
|
15972
15996
|
try {
|
|
15973
15997
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15991,8 +16015,8 @@ async function handlePlayDelete(args) {
|
|
|
15991
16015
|
name: resolvedName,
|
|
15992
16016
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15993
16017
|
};
|
|
15994
|
-
if (
|
|
15995
|
-
|
|
16018
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
16019
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result2);
|
|
15996
16020
|
} else {
|
|
15997
16021
|
process.stdout.write(
|
|
15998
16022
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16002,8 +16026,8 @@ async function handlePlayDelete(args) {
|
|
|
16002
16026
|
return 0;
|
|
16003
16027
|
}
|
|
16004
16028
|
const result = await client.deletePlay(resolvedName);
|
|
16005
|
-
if (
|
|
16006
|
-
|
|
16029
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
16030
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
16007
16031
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16008
16032
|
}
|
|
16009
16033
|
if (result.alreadyArchived) {
|
|
@@ -16042,13 +16066,13 @@ async function handlePlayRestore(args) {
|
|
|
16042
16066
|
);
|
|
16043
16067
|
return 2;
|
|
16044
16068
|
}
|
|
16045
|
-
const client = new (0,
|
|
16069
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
16046
16070
|
try {
|
|
16047
16071
|
const result = await client.restorePlay(
|
|
16048
16072
|
parseReferencedPlayTarget(playName).playName
|
|
16049
16073
|
);
|
|
16050
|
-
if (
|
|
16051
|
-
|
|
16074
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
16075
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, result);
|
|
16052
16076
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16053
16077
|
}
|
|
16054
16078
|
if (result.alreadyActive) {
|
|
@@ -16175,21 +16199,21 @@ Common commands:
|
|
|
16175
16199
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16176
16200
|
}
|
|
16177
16201
|
};
|
|
16178
|
-
|
|
16202
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0, result2, {
|
|
16179
16203
|
json: options.json,
|
|
16180
16204
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16181
16205
|
`
|
|
16182
16206
|
});
|
|
16183
16207
|
return;
|
|
16184
16208
|
}
|
|
16185
|
-
const client = new (0,
|
|
16209
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
16186
16210
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16187
16211
|
throw new Error(
|
|
16188
16212
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16189
16213
|
);
|
|
16190
16214
|
}
|
|
16191
16215
|
const result = await client.startPlayRun(saved.request);
|
|
16192
|
-
|
|
16216
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
16193
16217
|
{ ...result },
|
|
16194
16218
|
{
|
|
16195
16219
|
json: options.json,
|
|
@@ -16225,7 +16249,7 @@ Examples:
|
|
|
16225
16249
|
).action(async (target, options) => {
|
|
16226
16250
|
process.exitCode = await handlePlayCheck([
|
|
16227
16251
|
target,
|
|
16228
|
-
...
|
|
16252
|
+
..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json),
|
|
16229
16253
|
...options.full ? ["--full"] : []
|
|
16230
16254
|
]);
|
|
16231
16255
|
});
|
|
@@ -16259,15 +16283,19 @@ Notes:
|
|
|
16259
16283
|
the server accepts the run. The destination must not already exist.
|
|
16260
16284
|
The run page URL is printed when the run starts. Pass --open to open it in a browser.
|
|
16261
16285
|
Concurrent runs for the same play are allowed.
|
|
16262
|
-
--
|
|
16263
|
-
It does not cancel active sibling runs.
|
|
16264
|
-
--
|
|
16265
|
-
|
|
16286
|
+
--from-start starts a fresh run graph without refreshing completed provider calls.
|
|
16287
|
+
It does not cancel active sibling runs. (Formerly --force.)
|
|
16288
|
+
--refresh-cache skips cached reads, calls providers again, and updates the
|
|
16289
|
+
shared result other Plays reuse, billing those calls again. It is independent
|
|
16290
|
+
from --from-start. (Formerly --force-tool-refresh.)
|
|
16291
|
+
--from-run <run-id> starts a new run of the same Play with that run's
|
|
16292
|
+
retained input and pinned revision, and returns once it starts. It accepts
|
|
16293
|
+
only --json.
|
|
16266
16294
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16267
|
-
resident-work ceiling. Default: ${
|
|
16295
|
+
resident-work ceiling. Default: ${_chunkAARF4SOWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16268
16296
|
Provider pacing and sandbox memory limits still apply.
|
|
16269
16297
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16270
|
-
resolvers. Accepted range: 1-${
|
|
16298
|
+
resolvers. Accepted range: 1-${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16271
16299
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16272
16300
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16273
16301
|
Tool calls that would exceed it are denied.
|
|
@@ -16321,6 +16349,7 @@ Examples:
|
|
|
16321
16349
|
deepline plays run my.play.ts --max-credits 50
|
|
16322
16350
|
deepline plays run my.play.ts --input @input.json
|
|
16323
16351
|
deepline plays run cto-search.play.ts --limit 5
|
|
16352
|
+
deepline plays run --from-run <run-id>
|
|
16324
16353
|
deepline runs export <run-id> --out output.csv
|
|
16325
16354
|
deepline runs get <run-id>
|
|
16326
16355
|
`
|
|
@@ -16376,15 +16405,25 @@ Examples:
|
|
|
16376
16405
|
).option(
|
|
16377
16406
|
"--tail-timeout-ms <ms>",
|
|
16378
16407
|
"Timeout while waiting for terminal run status"
|
|
16379
|
-
).option("--
|
|
16380
|
-
"--force-
|
|
16381
|
-
|
|
16408
|
+
).option("--from-start", "Start a fresh run graph").addOption(
|
|
16409
|
+
new (0, _commander.Option)("--force", "Compatibility alias for --from-start").hideHelp()
|
|
16410
|
+
).option(
|
|
16411
|
+
"--from-run <run-id>",
|
|
16412
|
+
"Start a new run from an earlier run's retained input and pinned revision"
|
|
16413
|
+
).option(
|
|
16414
|
+
"--refresh-cache",
|
|
16415
|
+
"Skip cached reads and call providers again (bills those calls again)"
|
|
16416
|
+
).addOption(
|
|
16417
|
+
new (0, _commander.Option)(
|
|
16418
|
+
"--force-tool-refresh",
|
|
16419
|
+
"Compatibility alias for --refresh-cache"
|
|
16420
|
+
).hideHelp()
|
|
16382
16421
|
).option(
|
|
16383
16422
|
"--max-concurrent-external-calls <count>",
|
|
16384
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16423
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkAARF4SOWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16385
16424
|
).option(
|
|
16386
16425
|
"--max-concurrent-rows <count>",
|
|
16387
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16426
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkAARF4SOWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16388
16427
|
).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
16428
|
"--debug-map-latency",
|
|
16390
16429
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16405,6 +16444,11 @@ JSON field selection:
|
|
|
16405
16444
|
`
|
|
16406
16445
|
).action(
|
|
16407
16446
|
async (target, cliOptions, command) => {
|
|
16447
|
+
warnRenamedPlayRunFlags(cliOptions);
|
|
16448
|
+
if (cliOptions.fromRun !== void 0) {
|
|
16449
|
+
process.exitCode = await runPlayFromRun(target, cliOptions, command);
|
|
16450
|
+
return;
|
|
16451
|
+
}
|
|
16408
16452
|
const inlineFile = cliOptions.eval === void 0 ? null : writeInlinePlay(cliOptions.eval);
|
|
16409
16453
|
try {
|
|
16410
16454
|
process.exitCode = await runPlayCommand(
|
|
@@ -16417,6 +16461,42 @@ JSON field selection:
|
|
|
16417
16461
|
}
|
|
16418
16462
|
}
|
|
16419
16463
|
);
|
|
16464
|
+
function warnRenamedPlayRunFlags(options) {
|
|
16465
|
+
if (options.force) {
|
|
16466
|
+
console.error(
|
|
16467
|
+
"--force is now --from-start; the old name will be removed after a migration window."
|
|
16468
|
+
);
|
|
16469
|
+
}
|
|
16470
|
+
if (options.forceToolRefresh) {
|
|
16471
|
+
console.error(
|
|
16472
|
+
"--force-tool-refresh is now --refresh-cache; the old name will be removed after a migration window."
|
|
16473
|
+
);
|
|
16474
|
+
}
|
|
16475
|
+
}
|
|
16476
|
+
async function runPlayFromRun(target, options, command) {
|
|
16477
|
+
const runId = _optionalChain([options, 'access', _621 => _621.fromRun, 'optionalAccess', _622 => _622.trim, 'call', _623 => _623()]);
|
|
16478
|
+
if (!runId || runId.startsWith("--")) {
|
|
16479
|
+
console.error("--from-run requires a run id.");
|
|
16480
|
+
return 1;
|
|
16481
|
+
}
|
|
16482
|
+
const conflicting = Object.entries(options).filter(
|
|
16483
|
+
([key, value]) => value !== void 0 && key !== "fromRun" && key !== "json" && !(key === "wait" && value === true)
|
|
16484
|
+
).map(
|
|
16485
|
+
([key]) => `--${key.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)}`
|
|
16486
|
+
);
|
|
16487
|
+
if (target !== void 0 || command.args.length > 0) {
|
|
16488
|
+
conflicting.unshift("a play target or input");
|
|
16489
|
+
}
|
|
16490
|
+
if (conflicting.length > 0) {
|
|
16491
|
+
console.error(
|
|
16492
|
+
`--from-run reuses the earlier run's play, input and revision; it cannot be combined with ${conflicting.join(", ")}.`
|
|
16493
|
+
);
|
|
16494
|
+
return 1;
|
|
16495
|
+
}
|
|
16496
|
+
return runRunsRerunCommand(runId, {
|
|
16497
|
+
...options.json === void 0 ? {} : { json: Boolean(options.json) }
|
|
16498
|
+
});
|
|
16499
|
+
}
|
|
16420
16500
|
async function runPlayCommand(target, options, command) {
|
|
16421
16501
|
const passthroughArgs = [...command.args];
|
|
16422
16502
|
const explicitTarget = options.file || options.name;
|
|
@@ -16429,14 +16509,14 @@ JSON field selection:
|
|
|
16429
16509
|
passthroughArgs.shift();
|
|
16430
16510
|
}
|
|
16431
16511
|
const exitCode = await handlePlayRun(
|
|
16432
|
-
|
|
16512
|
+
_chunkAARF4SOWjs.resolvePlayRunCliOptions.call(void 0,
|
|
16433
16513
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16434
16514
|
options,
|
|
16435
16515
|
passthroughArgs,
|
|
16436
|
-
|
|
16516
|
+
_chunkYXGPMTAKjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16437
16517
|
)
|
|
16438
16518
|
);
|
|
16439
|
-
|
|
16519
|
+
_chunkYXGPMTAKjs.recordCliTrace.call(void 0, {
|
|
16440
16520
|
phase: "cli.play_command_exit",
|
|
16441
16521
|
exitCode
|
|
16442
16522
|
});
|
|
@@ -16485,9 +16565,9 @@ Examples:
|
|
|
16485
16565
|
const limit = Number(options.historyLimit);
|
|
16486
16566
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16487
16567
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16488
|
-
const client = new (0,
|
|
16568
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
16489
16569
|
if (options.binding) {
|
|
16490
|
-
|
|
16570
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0,
|
|
16491
16571
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16492
16572
|
);
|
|
16493
16573
|
return;
|
|
@@ -16495,7 +16575,7 @@ Examples:
|
|
|
16495
16575
|
const result = await client.listPlayTriggerInventory({
|
|
16496
16576
|
cursor: options.cursor
|
|
16497
16577
|
});
|
|
16498
|
-
|
|
16578
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
16499
16579
|
...result,
|
|
16500
16580
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16501
16581
|
});
|
|
@@ -16554,7 +16634,7 @@ Examples:
|
|
|
16554
16634
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16555
16635
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16556
16636
|
}
|
|
16557
|
-
const result = await new (0,
|
|
16637
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getPlaysActivity({
|
|
16558
16638
|
timeZone: options.timeZone,
|
|
16559
16639
|
days,
|
|
16560
16640
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16568,7 +16648,7 @@ Examples:
|
|
|
16568
16648
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16569
16649
|
);
|
|
16570
16650
|
}
|
|
16571
|
-
|
|
16651
|
+
_chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
|
|
16572
16652
|
{ ...result },
|
|
16573
16653
|
{
|
|
16574
16654
|
json: Boolean(options.json),
|
|
@@ -16597,7 +16677,7 @@ Examples:
|
|
|
16597
16677
|
false
|
|
16598
16678
|
);
|
|
16599
16679
|
});
|
|
16600
|
-
|
|
16680
|
+
_chunk33JUK73Xjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16601
16681
|
play,
|
|
16602
16682
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16603
16683
|
);
|
|
@@ -16638,9 +16718,9 @@ Examples:
|
|
|
16638
16718
|
"--json [fields]",
|
|
16639
16719
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16640
16720
|
);
|
|
16641
|
-
|
|
16721
|
+
_chunk3CXHK4TWjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16642
16722
|
async (target, options) => {
|
|
16643
|
-
const ownView = () => handlePlayDescribe(
|
|
16723
|
+
const ownView = () => handlePlayDescribe(_chunkF73PD2XDjs.describeArgs.call(void 0, target, options));
|
|
16644
16724
|
const [flagText] = [options.json].filter(
|
|
16645
16725
|
(value) => typeof value === "string"
|
|
16646
16726
|
);
|
|
@@ -16651,7 +16731,7 @@ Examples:
|
|
|
16651
16731
|
process.exitCode = await ownView();
|
|
16652
16732
|
return;
|
|
16653
16733
|
}
|
|
16654
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16734
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LE7EZCL4.js")));
|
|
16655
16735
|
process.exitCode = await describeAnything(
|
|
16656
16736
|
name,
|
|
16657
16737
|
{
|
|
@@ -16769,7 +16849,7 @@ Examples:
|
|
|
16769
16849
|
deepline plays deployments <deployment-id>
|
|
16770
16850
|
`
|
|
16771
16851
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16772
|
-
async (id, options) => id ?
|
|
16852
|
+
async (id, options) => id ? _chunk26RSSTCFjs.handleDeploymentGet.call(void 0, id, options) : _chunk26RSSTCFjs.handleDeploymentsList.call(void 0, options)
|
|
16773
16853
|
);
|
|
16774
16854
|
addPublishHelp(
|
|
16775
16855
|
play.command("publish <target>").description(
|
|
@@ -16904,14 +16984,14 @@ Examples:
|
|
|
16904
16984
|
const limit = Number(options.limit);
|
|
16905
16985
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16906
16986
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16907
|
-
const result = await new (0,
|
|
16987
|
+
const result = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().runs.rowHistory({
|
|
16908
16988
|
playName: options.play,
|
|
16909
16989
|
runId,
|
|
16910
16990
|
tableNamespace: options.dataset,
|
|
16911
16991
|
limit,
|
|
16912
16992
|
cursor: options.cursor
|
|
16913
16993
|
});
|
|
16914
|
-
|
|
16994
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
16915
16995
|
...result,
|
|
16916
16996
|
...result.nextCursor ? {
|
|
16917
16997
|
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 +17069,7 @@ Examples:
|
|
|
16989
17069
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16990
17070
|
).action(async (runId, options) => {
|
|
16991
17071
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16992
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
17072
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-TDZH4XHS.js")));
|
|
16993
17073
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16994
17074
|
receiptJson: options.json !== void 0
|
|
16995
17075
|
});
|
|
@@ -16997,7 +17077,7 @@ Examples:
|
|
|
16997
17077
|
}
|
|
16998
17078
|
process.exitCode = await handleRunGet([
|
|
16999
17079
|
runId,
|
|
17000
|
-
...
|
|
17080
|
+
..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json),
|
|
17001
17081
|
...options.web ? ["--web"] : [],
|
|
17002
17082
|
...options.webUrl ? ["--web-url"] : [],
|
|
17003
17083
|
...options.full ? ["--full"] : [],
|
|
@@ -17014,6 +17094,9 @@ Examples:
|
|
|
17014
17094
|
`
|
|
17015
17095
|
Notes:
|
|
17016
17096
|
Creates a new run. It never mutates the original run.
|
|
17097
|
+
To continue a stopped run without repeating its completed work, use
|
|
17098
|
+
deepline runs resume <run-id>. To start over, use
|
|
17099
|
+
deepline plays run --from-run <run-id> (the same operation as this command).
|
|
17017
17100
|
The rerun uses the original input and exact saved revision. Normal completed
|
|
17018
17101
|
tool receipts may be reused; inspect the new run before forcing any external
|
|
17019
17102
|
side effect.
|
|
@@ -17035,7 +17118,30 @@ Examples:
|
|
|
17035
17118
|
"--input-overrides <json>",
|
|
17036
17119
|
"Override existing scalar fields in the retained input for this rerun"
|
|
17037
17120
|
).option("--json", "Emit JSON output").action(async (runId, options) => {
|
|
17038
|
-
process.exitCode = await runRunsRerunCommand(runId,
|
|
17121
|
+
process.exitCode = await runRunsRerunCommand(runId, {
|
|
17122
|
+
...options,
|
|
17123
|
+
notice: runsRerunRenameNotice(runId)
|
|
17124
|
+
});
|
|
17125
|
+
});
|
|
17126
|
+
runs.command("resume <runId>").description(
|
|
17127
|
+
"Continue a failed or cancelled run as the same run, reusing its completed work."
|
|
17128
|
+
).addHelpText(
|
|
17129
|
+
"after",
|
|
17130
|
+
`
|
|
17131
|
+
Notes:
|
|
17132
|
+
Continues the same run id with its original input and pinned revision.
|
|
17133
|
+
Completed calls are reused; only work the run had not finished runs.
|
|
17134
|
+
A run can be resumed for 14 days after it stops. To start over as a new
|
|
17135
|
+
run instead, use deepline plays run --from-run <run-id>.
|
|
17136
|
+
The server refuses while the run is still active, while its last attempt
|
|
17137
|
+
or sandbox cleanup is still finishing (try again in a minute), and after
|
|
17138
|
+
the 14-day window.
|
|
17139
|
+
|
|
17140
|
+
Examples:
|
|
17141
|
+
deepline runs resume play/my-play/run/20260501t000000-000
|
|
17142
|
+
`
|
|
17143
|
+
).action(async (runId) => {
|
|
17144
|
+
process.exitCode = await runRunsResumeCommand(runId);
|
|
17039
17145
|
});
|
|
17040
17146
|
runs.command("list").description("List play runs.").addHelpText(
|
|
17041
17147
|
"after",
|
|
@@ -17288,7 +17394,7 @@ Examples:
|
|
|
17288
17394
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17289
17395
|
...options.wait ? ["--wait"] : [],
|
|
17290
17396
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17291
|
-
...
|
|
17397
|
+
..._chunkF73PD2XDjs.jsonFieldArgs.call(void 0, options.json)
|
|
17292
17398
|
]);
|
|
17293
17399
|
});
|
|
17294
17400
|
const share = play.command("share").description(
|
|
@@ -17429,8 +17535,8 @@ function absolutePublicPlayUrl(path) {
|
|
|
17429
17535
|
}
|
|
17430
17536
|
function shareUrlFields(status) {
|
|
17431
17537
|
return {
|
|
17432
|
-
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17433
|
-
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17538
|
+
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _624 => _624.share, 'optionalAccess', _625 => _625.publicPath])),
|
|
17539
|
+
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _626 => _626.share, 'optionalAccess', _627 => _627.canonicalPath]))
|
|
17434
17540
|
};
|
|
17435
17541
|
}
|
|
17436
17542
|
function shareStatusForOutput(status) {
|
|
@@ -17454,10 +17560,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17454
17560
|
return 2;
|
|
17455
17561
|
}
|
|
17456
17562
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17457
|
-
const status = await new (0,
|
|
17563
|
+
const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().getSharePage(name);
|
|
17458
17564
|
const outputStatus = shareStatusForOutput(status);
|
|
17459
|
-
if (
|
|
17460
|
-
|
|
17565
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17566
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
|
|
17461
17567
|
return 0;
|
|
17462
17568
|
}
|
|
17463
17569
|
if (!outputStatus.share) {
|
|
@@ -17496,7 +17602,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17496
17602
|
return 2;
|
|
17497
17603
|
}
|
|
17498
17604
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17499
|
-
const client = new (0,
|
|
17605
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
17500
17606
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17501
17607
|
let resolvedVersion;
|
|
17502
17608
|
if (!revisionId) {
|
|
@@ -17527,8 +17633,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17527
17633
|
);
|
|
17528
17634
|
if (!hasCompleted) {
|
|
17529
17635
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17530
|
-
if (
|
|
17531
|
-
|
|
17636
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17637
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, {
|
|
17532
17638
|
ok: false,
|
|
17533
17639
|
code: "NO_SUCCESSFUL_RUN",
|
|
17534
17640
|
message,
|
|
@@ -17552,8 +17658,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17552
17658
|
};
|
|
17553
17659
|
if (args.includes("--dry-run")) {
|
|
17554
17660
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17555
|
-
if (
|
|
17556
|
-
|
|
17661
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17662
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, plan);
|
|
17557
17663
|
} else {
|
|
17558
17664
|
console.log(
|
|
17559
17665
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17563,13 +17669,13 @@ async function handlePlaySharePublish(args) {
|
|
|
17563
17669
|
}
|
|
17564
17670
|
const status = await client.publishSharePage(name, request);
|
|
17565
17671
|
const outputStatus = shareStatusForOutput(status);
|
|
17566
|
-
if (
|
|
17567
|
-
|
|
17672
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17673
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
|
|
17568
17674
|
return 0;
|
|
17569
17675
|
}
|
|
17570
17676
|
const urls = shareUrlFields(outputStatus);
|
|
17571
17677
|
console.log(
|
|
17572
|
-
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access',
|
|
17678
|
+
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.publicPath]))), () => ( ""))}`
|
|
17573
17679
|
);
|
|
17574
17680
|
if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
|
|
17575
17681
|
console.log(`Version URL: ${urls.canonicalUrl}`);
|
|
@@ -17595,9 +17701,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17595
17701
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17596
17702
|
...seoIndexing ? { seoIndexing } : {}
|
|
17597
17703
|
};
|
|
17598
|
-
const status = await new (0,
|
|
17599
|
-
if (
|
|
17600
|
-
|
|
17704
|
+
const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().updateSharePage(name, request);
|
|
17705
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17706
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, status);
|
|
17601
17707
|
return 0;
|
|
17602
17708
|
}
|
|
17603
17709
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17612,13 +17718,13 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17612
17718
|
return 2;
|
|
17613
17719
|
}
|
|
17614
17720
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17615
|
-
const client = new (0,
|
|
17721
|
+
const client = new (0, _chunkTCQYWZFSjs.DeeplineClient)();
|
|
17616
17722
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17617
17723
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17618
17724
|
if (!revisionId && versionFlag) {
|
|
17619
17725
|
const versions = await client.listPlayVersions(name);
|
|
17620
17726
|
const chosen = versions.find((r) => r.version === Number(versionFlag));
|
|
17621
|
-
if (!_optionalChain([chosen, 'optionalAccess',
|
|
17727
|
+
if (!_optionalChain([chosen, 'optionalAccess', _630 => _630._id])) {
|
|
17622
17728
|
console.error(`Version ${versionFlag} not found for ${name}.`);
|
|
17623
17729
|
return 4;
|
|
17624
17730
|
}
|
|
@@ -17629,12 +17735,12 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17629
17735
|
revisionId ? { revisionId } : {}
|
|
17630
17736
|
);
|
|
17631
17737
|
const outputStatus = shareStatusForOutput(status);
|
|
17632
|
-
if (
|
|
17633
|
-
|
|
17738
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17739
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, outputStatus);
|
|
17634
17740
|
return 0;
|
|
17635
17741
|
}
|
|
17636
17742
|
const urls = shareUrlFields(outputStatus);
|
|
17637
|
-
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access',
|
|
17743
|
+
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _631 => _631.share, 'optionalAccess', _632 => _632.publishedRevisionId]) === revisionId;
|
|
17638
17744
|
console.log(
|
|
17639
17745
|
`Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
|
|
17640
17746
|
);
|
|
@@ -17655,9 +17761,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17655
17761
|
return 2;
|
|
17656
17762
|
}
|
|
17657
17763
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17658
|
-
const status = await new (0,
|
|
17659
|
-
if (
|
|
17660
|
-
|
|
17764
|
+
const status = await new (0, _chunkTCQYWZFSjs.DeeplineClient)().unpublishSharePage(name);
|
|
17765
|
+
if (_chunkF73PD2XDjs.argsWantJson.call(void 0, args)) {
|
|
17766
|
+
_chunkF73PD2XDjs.printCompactJson.call(void 0, status);
|
|
17661
17767
|
return 0;
|
|
17662
17768
|
}
|
|
17663
17769
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17734,4 +17840,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17734
17840
|
|
|
17735
17841
|
|
|
17736
17842
|
|
|
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 =
|
|
17843
|
+
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 = _chunkAARF4SOWjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkAARF4SOWjs.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;
|