deepline 0.3.534 → 0.3.536
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 +254 -147
- package/dist/bundling-sources/sdk/src/index.ts +4 -0
- package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +27 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +16 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -23
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +26 -14
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-input-contract.ts +33 -8
- package/dist/bundling-sources/shared_libs/monitors/fleets/count-drift-alert.ts +121 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +8 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +14 -82
- package/dist/bundling-sources/shared_libs/monitors/package.json +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +0 -26
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +36 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +21 -31
- package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +727 -102
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +12 -10
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +71 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +60 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +372 -10
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/fixture-capacity-simulator.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +5 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +63 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +31 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +11 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +73 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +169 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +26 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +90 -49
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +136 -30
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +13 -1
- package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +68 -1
- package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +57 -1
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
- package/dist/cli/auth-6XQKFOLG.js +43 -0
- package/dist/cli/{auth-MHQYIMVX.mjs → auth-KCTCUO7P.mjs} +7 -7
- package/dist/cli/{billing-YQLNP4S5.js → billing-4VBGZ3CT.js} +273 -112
- package/dist/cli/{billing-LX2PSBJ4.mjs → billing-OOJHKLNS.mjs} +185 -24
- package/dist/cli/{chunk-DGKTHWWH.js → chunk-2B4IOGFD.js} +406 -382
- package/dist/cli/{chunk-MQORQ7WL.js → chunk-2FCSUOYN.js} +55 -55
- package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
- package/dist/cli/{chunk-6IFZPEJE.mjs → chunk-2YWJS76L.mjs} +1 -1
- package/dist/cli/{chunk-E7TP25I2.mjs → chunk-3PCYV6ZJ.mjs} +2 -2
- package/dist/cli/{chunk-LGRZCHKC.js → chunk-4E5JXZ3W.js} +18 -20
- package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
- package/dist/cli/{chunk-SUWTLXCV.js → chunk-6BBGUQJJ.js} +67 -146
- package/dist/cli/{chunk-JBBJDFUJ.js → chunk-6VUGBQZQ.js} +5 -5
- package/dist/cli/{chunk-2P3NVX65.mjs → chunk-AB2GBOD4.mjs} +40 -27
- package/dist/cli/{chunk-62SOZ67Y.mjs → chunk-ANUKBZ6W.mjs} +475 -11
- package/dist/cli/{chunk-MG6YL4M7.mjs → chunk-BASLYGXK.mjs} +101 -77
- package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
- package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
- package/dist/cli/{chunk-RH3YRMUY.js → chunk-CIDN5K23.js} +1 -1
- package/dist/cli/{chunk-QNHHZ63P.mjs → chunk-CQBIO6HW.mjs} +1 -1
- package/dist/cli/{chunk-2KHUFWTK.js → chunk-CQDQNZGH.js} +42 -37
- package/dist/cli/{chunk-UWNVFAFN.js → chunk-CWSLUNA6.js} +33 -33
- package/dist/cli/{chunk-5FXMEEF4.mjs → chunk-CXTW7SRW.mjs} +67 -146
- package/dist/cli/{chunk-O53LHONF.mjs → chunk-DA2I2M7D.mjs} +2 -2
- package/dist/cli/{chunk-EYXUAJAU.mjs → chunk-DQHUJMCL.mjs} +5 -5
- package/dist/cli/{chunk-7GFR5Y4J.mjs → chunk-DUYAMLOC.mjs} +1 -1
- package/dist/cli/{chunk-OMVVHX4U.mjs → chunk-E24UGPGG.mjs} +13 -15
- package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
- package/dist/cli/{chunk-KJVY7V2X.mjs → chunk-GF32SBST.mjs} +1 -1
- package/dist/cli/{chunk-AK622KIG.mjs → chunk-GHLDCLSC.mjs} +1 -1
- package/dist/cli/{chunk-A6HNT4EE.js → chunk-GTVZKY3F.js} +2 -2
- package/dist/cli/{chunk-BXIUZM5N.mjs → chunk-HAJQGP5V.mjs} +2 -2
- package/dist/cli/{chunk-6CEUQYMB.js → chunk-HWDKRN7L.js} +3 -3
- package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
- package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
- package/dist/cli/{chunk-WR4WETRU.mjs → chunk-JUHDJNSI.mjs} +4 -4
- package/dist/cli/{chunk-TQH3533L.mjs → chunk-KPQHUVYW.mjs} +5 -5
- package/dist/cli/{chunk-V7SCRUFQ.js → chunk-KWYGWO4Y.js} +9 -6
- package/dist/cli/{chunk-DZS4JC7I.js → chunk-LDGZFDUB.js} +2 -2
- package/dist/cli/{chunk-EGTUOYYG.js → chunk-LN6RXDTB.js} +523 -59
- package/dist/cli/{chunk-DQ5ADV2J.mjs → chunk-LZXZQPA2.mjs} +4 -1
- package/dist/cli/{chunk-MYSKWJMA.js → chunk-MSP4DTSD.js} +13 -13
- package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
- package/dist/cli/{chunk-NNAE7E23.mjs → chunk-OUDTOMZC.mjs} +7 -9
- package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
- package/dist/cli/{chunk-ENCA6O2D.mjs → chunk-PNY3BWHP.mjs} +2 -2
- package/dist/cli/{chunk-KSA2XE4T.js → chunk-Q4MNUOS4.js} +316 -303
- package/dist/cli/{chunk-GTXSUPCJ.js → chunk-Q5CXV3E3.js} +2 -2
- package/dist/cli/{chunk-VAG5YKP6.mjs → chunk-RVSSQPQO.mjs} +1 -1
- package/dist/cli/{chunk-VE7ZPLN2.js → chunk-SLPJ3LXI.js} +22 -22
- package/dist/cli/{chunk-IX45S5VC.js → chunk-TX5TUHJN.js} +17 -19
- package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
- package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
- package/dist/cli/{chunk-NDFNBJGL.js → chunk-VBDZIMWD.js} +26 -26
- package/dist/cli/{chunk-GVGQ6NZW.js → chunk-W7AEIGZR.js} +41 -41
- package/dist/cli/{chunk-WDNRPZED.mjs → chunk-WC5M3JXE.mjs} +2 -2
- package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
- package/dist/cli/{chunk-MQX363YF.js → chunk-XBAH3TKU.js} +5 -5
- package/dist/cli/{chunk-BDWZBMGV.mjs → chunk-XJD2GYUP.mjs} +5 -5
- package/dist/cli/{chunk-XRZJKHUA.mjs → chunk-XVZRJJDS.mjs} +4 -4
- package/dist/cli/{chunk-TVINIDHB.js → chunk-Y2NTPYGS.js} +17 -17
- package/dist/cli/{chunk-6GTGWZJG.mjs → chunk-YBMHOH6H.mjs} +4 -4
- package/dist/cli/{chunk-TG2UB3A5.mjs → chunk-YRLAUGQY.mjs} +3 -3
- package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
- package/dist/cli/{chunk-KXQCUX3X.mjs → chunk-Z7UIOGW4.mjs} +3 -3
- package/dist/cli/{chunk-HCD36BP6.js → chunk-ZEV2Y56V.js} +44 -44
- package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
- package/dist/cli/{chunk-XBK6WCVA.js → chunk-ZILSRDIN.js} +8 -8
- package/dist/cli/{chunk-B2AS3R5W.js → chunk-ZISEH7OL.js} +16 -16
- package/dist/cli/{chunk-HPJAE6PP.js → chunk-ZZ4MF2GI.js} +6 -6
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U3M2G76R.js → csv-2V2DIFNG.js} +15 -15
- package/dist/cli/{csv-4ID4E5W3.mjs → csv-P3HLK4GO.mjs} +6 -6
- package/dist/cli/{db-IHAQIKEQ.js → db-MREAQVW6.js} +36 -36
- package/dist/cli/{db-LHX5BBCZ.mjs → db-ZYOY3QRQ.mjs} +9 -9
- package/dist/cli/describe-IKZFOADR.mjs +49 -0
- package/dist/cli/describe-WW3OQRLP.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-CJ5LV23G.js → executions-H5IJ7QSQ.js} +11 -11
- package/dist/cli/{executions-UJ6JZUL5.mjs → executions-KTSY5M34.mjs} +9 -9
- package/dist/cli/{feedback-TGUBVGRP.js → feedback-724QK3Z5.js} +16 -16
- package/dist/cli/{feedback-YGTPJBRJ.mjs → feedback-WWJRIXEU.mjs} +8 -8
- package/dist/cli/git-PHYRD56H.js +25 -0
- package/dist/cli/{git-3DOTQHJO.mjs → git-R5VRG7X6.mjs} +7 -7
- package/dist/cli/index.js +151 -157
- package/dist/cli/index.mjs +51 -57
- package/dist/cli/{legacy-noops-BHEHVFHI.js → legacy-noops-C6GDEGPU.js} +11 -11
- package/dist/cli/{legacy-noops-RBBYRVLG.mjs → legacy-noops-PWZ5XLAO.mjs} +8 -8
- package/dist/cli/{monitors-XECKLAXA.js → monitors-VAVQ4WCE.js} +125 -122
- package/dist/cli/{monitors-5AJCG6IV.mjs → monitors-WQSKMHAP.mjs} +19 -16
- package/dist/cli/{org-DOBAIYWG.js → org-CWWRWXZQ.js} +89 -89
- package/dist/cli/{org-ZAAIEZKB.mjs → org-MAL4QPVF.mjs} +9 -9
- package/dist/cli/{play-KLYRMQPF.mjs → play-ILW6MSNG.mjs} +174 -80
- package/dist/cli/{play-E74VN6B7.js → play-WJOWK5PQ.js} +690 -596
- package/dist/cli/{providers-XTQXV5LB.mjs → providers-4V2NMLZZ.mjs} +9 -9
- package/dist/cli/{providers-APZ6SOSK.js → providers-W662ANCH.js} +12 -12
- package/dist/cli/{quickstart-S6WN6NWW.js → quickstart-BW6EBUYX.js} +8 -8
- package/dist/cli/{quickstart-X7RHHQCH.mjs → quickstart-C22BR743.mjs} +6 -6
- package/dist/cli/{run-3YLIJJ57.js → run-KW7KW4FX.js} +50 -53
- package/dist/cli/{run-TZPBBSPX.mjs → run-SPAU5IMW.mjs} +31 -34
- package/dist/cli/search-HLE54W5G.js +32 -0
- package/dist/cli/{search-VLHE2CMZ.mjs → search-XPC75HLM.mjs} +10 -11
- package/dist/cli/{search-output-73BYB7UE.mjs → search-output-JKYJSEPM.mjs} +6 -6
- package/dist/cli/{search-output-GCT7PQIT.js → search-output-VJYE7USJ.js} +8 -8
- package/dist/cli/{secrets-RLOTGKQZ.mjs → secrets-OJG73GXQ.mjs} +9 -9
- package/dist/cli/{secrets-J6CEKXKQ.js → secrets-YB57KGSB.js} +18 -18
- package/dist/cli/{sessions-7HZ7OZ62.mjs → sessions-7ZL37BW4.mjs} +8 -8
- package/dist/cli/sessions-VEBYZIEU.js +22 -0
- package/dist/cli/{settings-WRV5XEZC.js → settings-A7DD2ZYE.js} +88 -89
- package/dist/cli/{settings-72K5YCIS.mjs → settings-RKSQB7FA.mjs} +15 -16
- package/dist/cli/{setup-KQFY6WT4.mjs → setup-NXDUTITY.mjs} +11 -12
- package/dist/cli/{setup-QVXWT2EQ.js → setup-S3K5YU62.js} +51 -52
- package/dist/cli/skills-NVQ744CN.js +36 -0
- package/dist/cli/{skills-C3K3E473.mjs → skills-VMFAIDO6.mjs} +9 -10
- package/dist/cli/{tools-4A2OH6MB.mjs → tools-52NTHBSJ.mjs} +20 -21
- package/dist/cli/tools-SBDUL3WB.js +56 -0
- package/dist/cli/update-HHVFZPCV.js +34 -0
- package/dist/cli/{update-BS6USKPR.mjs → update-SAKBEKMV.mjs} +11 -12
- package/dist/cli/{views-WB6GFTRX.mjs → views-ACRV7MD6.mjs} +54 -10
- package/dist/cli/{views-4NZGAXHL.js → views-C3GJOBDG.js} +66 -22
- package/dist/cli/{workflow-2D4WX55R.mjs → workflow-CS22E7TC.mjs} +10 -10
- package/dist/cli/{workflow-L2QTQZYV.js → workflow-ZNWCZEGN.js} +20 -20
- package/dist/{client-DoUVSkqC.d.mts → client-BlLYQDNo.d.mts} +1 -1
- package/dist/{client-DQm56zMs.d.ts → client-DSQlkIDO.d.ts} +1 -1
- package/dist/{client-core-C7KkUIE_.d.ts → client-core-CDwapXy5.d.ts} +167 -108
- package/dist/{client-core-CPlwsC1Q.d.mts → client-core-rX7n2H8U.d.mts} +167 -108
- package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-BHNC4RL-.d.mts} +58 -21
- package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-BHNC4RL-.d.ts} +58 -21
- package/dist/{errors-qdJUVQ3g.d.mts → errors-D7sPXrvB.d.mts} +1 -1
- package/dist/{errors-Bk5h1D-C.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
- package/dist/{index-bL66eHYz.d.ts → index-CQTBHXHr.d.ts} +1 -1
- package/dist/{index-PaupwX1B.d.mts → index-NaDZq2xf.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/index.mjs +11 -11
- package/dist/install-integrity.json +131 -132
- package/dist/monitor-fleet-contract.d.mts +17 -11
- package/dist/monitor-fleet-contract.d.ts +17 -11
- package/dist/monitor-fleet-contract.js +3 -3
- package/dist/monitor-fleet-contract.mjs +2 -2
- package/dist/monitor-input-contract.js +2 -2
- package/dist/monitor-input-contract.mjs +1 -1
- 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 +67 -3
- package/dist/plays/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- 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/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +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 +12 -12
- package/dist/server.mjs +6 -6
- package/package.json +1 -1
- package/dist/cli/auth-UP2RGPI6.js +0 -43
- package/dist/cli/chunk-5LZ5VSOK.mjs +0 -405
- package/dist/cli/chunk-D3J2Y2BP.js +0 -405
- package/dist/cli/describe-CI4MREFF.mjs +0 -50
- package/dist/cli/describe-IVTSD7ST.js +0 -50
- package/dist/cli/git-R3W25XIF.js +0 -25
- package/dist/cli/pages-FUOSF6BE.mjs +0 -266
- package/dist/cli/pages-TLC2N6L7.js +0 -266
- package/dist/cli/search-NB5CBALV.js +0 -33
- package/dist/cli/sessions-SFCZSB77.js +0 -22
- package/dist/cli/skills-WIJEHVLA.js +0 -37
- package/dist/cli/tools-VMMERMLO.js +0 -57
- package/dist/cli/update-54WZQDTS.js +0 -35
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YBMHOH6H.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ExecutionOutputError,
|
|
11
11
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
underscoreKeysLast,
|
|
19
19
|
writeExecutionOutput,
|
|
20
20
|
writeRunDatasetCsv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-LZXZQPA2.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerDeprecatedSearchCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-E24UGPGG.mjs";
|
|
25
25
|
import "./chunk-5AEDYVB6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
handleDeploymentGet,
|
|
28
28
|
handleDeploymentsList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-DA2I2M7D.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
@@ -47,14 +47,14 @@ import {
|
|
|
47
47
|
} from "./chunk-F6QV42MC.mjs";
|
|
48
48
|
import {
|
|
49
49
|
parseCsvDataInput
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FSIVF2SI.mjs";
|
|
51
51
|
import {
|
|
52
52
|
pinLocalPlayImports,
|
|
53
53
|
planLocalPlayExecution
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-PNY3BWHP.mjs";
|
|
55
55
|
import {
|
|
56
56
|
DeeplineClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WC5M3JXE.mjs";
|
|
58
58
|
import {
|
|
59
59
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
60
60
|
RunEventQueryInputError,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
normalizePlayStatus,
|
|
68
68
|
normalizeRunEventOperationRequest,
|
|
69
69
|
parseLogLevel
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-BASLYGXK.mjs";
|
|
71
71
|
import "./chunk-L2VKAASU.mjs";
|
|
72
72
|
import {
|
|
73
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -82,7 +82,7 @@ import {
|
|
|
82
82
|
sqlSafePlayColumnName,
|
|
83
83
|
stageFileInputs,
|
|
84
84
|
stagedFileContentType
|
|
85
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-Z2XA6YU4.mjs";
|
|
86
86
|
import {
|
|
87
87
|
CSV_HEADER_MATCHING_NOTE,
|
|
88
88
|
playInputExampleArgs
|
|
@@ -91,19 +91,18 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
91
91
|
import {
|
|
92
92
|
checkPlayRunCompatibility,
|
|
93
93
|
usesCliPlayAdmission
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-HAJQGP5V.mjs";
|
|
95
95
|
import {
|
|
96
96
|
isCliTraceEnabled,
|
|
97
97
|
recordCliTrace,
|
|
98
98
|
resolveCliMaintenancePolicy,
|
|
99
99
|
traceCliSpan
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-DUYAMLOC.mjs";
|
|
101
|
+
import "./chunk-XJD2GYUP.mjs";
|
|
102
102
|
import {
|
|
103
103
|
createCliProgress,
|
|
104
104
|
getActiveCliProgress
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-5LZ5VSOK.mjs";
|
|
105
|
+
} from "./chunk-GF32SBST.mjs";
|
|
107
106
|
import {
|
|
108
107
|
formatNonStandardSandboxRuntimeWarning
|
|
109
108
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -123,17 +122,17 @@ import {
|
|
|
123
122
|
printJsonError,
|
|
124
123
|
renderCommandEnvelopeText,
|
|
125
124
|
shouldEmitJson
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
125
|
+
} from "./chunk-ANUKBZ6W.mjs";
|
|
126
|
+
import "./chunk-3PCYV6ZJ.mjs";
|
|
128
127
|
import {
|
|
129
128
|
fetchWithDeploymentProtection
|
|
130
|
-
} from "./chunk-
|
|
131
|
-
import "./chunk-
|
|
129
|
+
} from "./chunk-YRLAUGQY.mjs";
|
|
130
|
+
import "./chunk-CQBIO6HW.mjs";
|
|
132
131
|
import "./chunk-DLIRSHV6.mjs";
|
|
133
132
|
import {
|
|
134
133
|
DeeplineError
|
|
135
|
-
} from "./chunk-
|
|
136
|
-
import "./chunk-
|
|
134
|
+
} from "./chunk-JL2OTMSG.mjs";
|
|
135
|
+
import "./chunk-GHLDCLSC.mjs";
|
|
137
136
|
import "./chunk-WZYKRD7T.mjs";
|
|
138
137
|
import {
|
|
139
138
|
__commonJS,
|
|
@@ -4335,7 +4334,7 @@ async function runRunsResumeCommand(runId) {
|
|
|
4335
4334
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
4336
4335
|
);
|
|
4337
4336
|
console.log(
|
|
4338
|
-
`Resumed run ${result.runId} at epoch ${result.epoch}.
|
|
4337
|
+
`Resumed run ${result.runId} at epoch ${result.epoch}. Matching completed operations can be recovered; unfinished or unrecorded work can incur charges.`
|
|
4339
4338
|
);
|
|
4340
4339
|
console.log(` inspect: deepline runs get ${result.runId}`);
|
|
4341
4340
|
return 0;
|
|
@@ -4368,7 +4367,7 @@ function isUnambiguousLocalFilePath(value) {
|
|
|
4368
4367
|
const trimmed = value.trim();
|
|
4369
4368
|
return nodePath.posix.isAbsolute(trimmed) || nodePath.win32.isAbsolute(trimmed) || /^\.\.?[\\/]/.test(trimmed) || trimmed.includes("\\");
|
|
4370
4369
|
}
|
|
4371
|
-
function resolveCliFileInput(value, binding, environment = hostFileInputPathEnvironment()) {
|
|
4370
|
+
function resolveCliFileInput(value, binding, environment = hostFileInputPathEnvironment(), packagedFiles) {
|
|
4372
4371
|
if (typeof value !== "string") return null;
|
|
4373
4372
|
const trimmed = value.trim();
|
|
4374
4373
|
if (!trimmed || URL_VALUE.test(trimmed)) return null;
|
|
@@ -4387,6 +4386,14 @@ function resolveCliFileInput(value, binding, environment = hostFileInputPathEnvi
|
|
|
4387
4386
|
{ inputPath: binding.inputPath, path: trimmed, resolved: absolutePath }
|
|
4388
4387
|
);
|
|
4389
4388
|
}
|
|
4389
|
+
if (packagedFiles && !packagedFiles.has(trimmed)) {
|
|
4390
|
+
throw new DeeplineError(
|
|
4391
|
+
`Input ${binding.inputPath} is not a readable local file, a URL, or a file packaged with the Play: ${trimmed} (resolved to ${absolutePath}). Pass a readable file path or an https:// URL. No run was created.`,
|
|
4392
|
+
void 0,
|
|
4393
|
+
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
4394
|
+
{ inputPath: binding.inputPath, path: trimmed, resolved: absolutePath }
|
|
4395
|
+
);
|
|
4396
|
+
}
|
|
4390
4397
|
return null;
|
|
4391
4398
|
}
|
|
4392
4399
|
|
|
@@ -7216,7 +7223,7 @@ function buildPlayReferenceNotFoundMessage(input) {
|
|
|
7216
7223
|
lines.push(
|
|
7217
7224
|
"",
|
|
7218
7225
|
"Search visible plays:",
|
|
7219
|
-
` deepline search
|
|
7226
|
+
` deepline search ${shellQuote(searchQuery)}`
|
|
7220
7227
|
);
|
|
7221
7228
|
}
|
|
7222
7229
|
return lines.join("\n");
|
|
@@ -7494,6 +7501,15 @@ function sourceGraphMentionsRunPlay(node) {
|
|
|
7494
7501
|
(source) => runPlayCallPattern.test(source)
|
|
7495
7502
|
);
|
|
7496
7503
|
}
|
|
7504
|
+
function mayBindBareFileName(node, runtimeInput) {
|
|
7505
|
+
const declaresCsvInput = [
|
|
7506
|
+
node.sourceCode,
|
|
7507
|
+
...Object.values(node.sourceFiles)
|
|
7508
|
+
].some((source) => /\bCsvInput\b/.test(source));
|
|
7509
|
+
return declaresCsvInput && Object.values(runtimeInput).some(
|
|
7510
|
+
(value) => typeof value === "string" && value.trim() !== "" && !isUrlValue(value)
|
|
7511
|
+
);
|
|
7512
|
+
}
|
|
7497
7513
|
function isUrlValue(value) {
|
|
7498
7514
|
return /^[a-z][a-z0-9+.-]*:\/\//i.test(value.trim());
|
|
7499
7515
|
}
|
|
@@ -7620,7 +7636,12 @@ async function stageFileInputArgs(input) {
|
|
|
7620
7636
|
runtimeInput: input.runtimeInput,
|
|
7621
7637
|
bindings: input.bindings,
|
|
7622
7638
|
codec: NODE_STAGED_FILE_CODEC,
|
|
7623
|
-
resolveLocalFile: (value, binding) => resolveCliFileInput(
|
|
7639
|
+
resolveLocalFile: (value, binding) => resolveCliFileInput(
|
|
7640
|
+
value,
|
|
7641
|
+
binding,
|
|
7642
|
+
hostFileInputPathEnvironment(),
|
|
7643
|
+
input.packagedFiles
|
|
7644
|
+
),
|
|
7624
7645
|
onStaging: (fileCount) => input.progress.phase(
|
|
7625
7646
|
fileCount === 1 ? "staging input file" : "staging input files"
|
|
7626
7647
|
)
|
|
@@ -9564,7 +9585,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9564
9585
|
return null;
|
|
9565
9586
|
}
|
|
9566
9587
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
9567
|
-
return `${prefix}map ${namespace}: ${formatInteger(Number(rows))} rows, ${fields2} fields, ${formatInteger(Number(cached))}
|
|
9588
|
+
return `${prefix}map ${namespace}: ${formatInteger(Number(rows))} rows, ${fields2} fields, ${formatInteger(Number(cached))} rows already satisfied, ${formatInteger(Number(pending))} pending`;
|
|
9568
9589
|
}
|
|
9569
9590
|
const mapDone = message.match(
|
|
9570
9591
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
@@ -9574,7 +9595,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9574
9595
|
return null;
|
|
9575
9596
|
}
|
|
9576
9597
|
const [, results, executed, cached] = mapDone;
|
|
9577
|
-
return `${prefix}done: ${formatInteger(Number(results))} results, ${formatInteger(Number(executed))} executed, ${formatInteger(Number(cached))}
|
|
9598
|
+
return `${prefix}done: ${formatInteger(Number(results))} results, ${formatInteger(Number(executed))} executed, ${formatInteger(Number(cached))} rows already satisfied`;
|
|
9578
9599
|
}
|
|
9579
9600
|
if (!watchSurfaceReaches(state, classified.provenance, classified.level)) {
|
|
9580
9601
|
return null;
|
|
@@ -9990,7 +10011,7 @@ function buildInsufficientCreditsSummaryLines(input) {
|
|
|
9990
10011
|
const lines = [
|
|
9991
10012
|
" status: stopped_insufficient_credits",
|
|
9992
10013
|
completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
|
|
9993
|
-
"
|
|
10014
|
+
" saved work: resume this run after adding credits to recover matching completed operations; unfinished work can incur charges"
|
|
9994
10015
|
];
|
|
9995
10016
|
const billingUrl = getStringField(input.billing, "billing_url");
|
|
9996
10017
|
const recommended = formatCreditAmount2(
|
|
@@ -10494,7 +10515,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
|
|
|
10494
10515
|
executed === null ? `executed unknown${!includeRowOutcomes || total === null ? "" : ` (${formatInteger(total)} total)`}` : `${formatInteger(executed)}${total === null ? "" : `/${formatInteger(total)}`} executed`
|
|
10495
10516
|
];
|
|
10496
10517
|
for (const [key, label] of [
|
|
10497
|
-
["reused", "reused"],
|
|
10518
|
+
["reused", "duplicate rows reused"],
|
|
10498
10519
|
["skipped", "skipped"],
|
|
10499
10520
|
["pending", "remaining"],
|
|
10500
10521
|
["activeRows", "rows processing"],
|
|
@@ -10547,7 +10568,7 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10547
10568
|
} else if (includeSummary) {
|
|
10548
10569
|
if (category === "recovered" && Object.keys(actions2).length === 0) {
|
|
10549
10570
|
lines.push(
|
|
10550
|
-
` dataset ${path}: available, ${rowCount === null ? "
|
|
10571
|
+
` dataset ${path}: available, ${rowCount === null ? "unknown number of" : formatInteger(rowCount)} rows persisted; inspect or export before resuming unfinished work`
|
|
10551
10572
|
);
|
|
10552
10573
|
} else {
|
|
10553
10574
|
lines.push(
|
|
@@ -10598,11 +10619,25 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10598
10619
|
return lines;
|
|
10599
10620
|
}
|
|
10600
10621
|
function packageSavedRowCount(packaged) {
|
|
10601
|
-
const
|
|
10602
|
-
|
|
10603
|
-
|
|
10604
|
-
|
|
10605
|
-
|
|
10622
|
+
const datasets = packageDatasetRecords(packaged);
|
|
10623
|
+
if (datasets.length === 0) return null;
|
|
10624
|
+
let total = 0;
|
|
10625
|
+
for (const dataset of datasets) {
|
|
10626
|
+
const rowCount = readNonNegativeInteger(dataset.rowCount);
|
|
10627
|
+
if (rowCount === null || readRecord(dataset.lifecycle)?.complete === false)
|
|
10628
|
+
return null;
|
|
10629
|
+
total += rowCount;
|
|
10630
|
+
}
|
|
10631
|
+
return total;
|
|
10632
|
+
}
|
|
10633
|
+
function formatRunRecoveryCommandLines(runId, status) {
|
|
10634
|
+
if (!["failed", "cancelled"].includes(status) || !runId || runId === "unknown")
|
|
10635
|
+
return [];
|
|
10636
|
+
return [
|
|
10637
|
+
` Resume same run (recommended, if eligible): deepline runs resume ${shellQuote(runId)}`,
|
|
10638
|
+
` Start over instead (new run; may repeat paid calls): deepline plays run --from-run ${shellQuote(runId)}`,
|
|
10639
|
+
"Resume can reuse matching saved operations, even with staleAfterSeconds: 0. New runs reuse matching cached results within staleAfterSeconds (0 means fresh). Fresh, missing, or unrecorded calls may charge again."
|
|
10640
|
+
];
|
|
10606
10641
|
}
|
|
10607
10642
|
function runtimeLimitWindowLabel(runtimeLimitFailure) {
|
|
10608
10643
|
const message = getStringField(runtimeLimitFailure, "message") ?? "";
|
|
@@ -10625,22 +10660,12 @@ function runtimeLimitWindowLabel(runtimeLimitFailure) {
|
|
|
10625
10660
|
function runtimeLimitCheckpointLines(packaged, runId, runtimeLimitFailure) {
|
|
10626
10661
|
const savedRows = packageSavedRowCount(packaged);
|
|
10627
10662
|
const lines = [
|
|
10628
|
-
`\
|
|
10629
|
-
""
|
|
10630
|
-
`The Play reached its ${runtimeLimitWindowLabel(runtimeLimitFailure)} runtime window.`
|
|
10663
|
+
`\u2717 runtime limit reached (${runtimeLimitWindowLabel(runtimeLimitFailure)}) ${runId}`,
|
|
10664
|
+
`Saved Dataset rows: ${savedRows === null ? "unknown" : formatInteger(savedRows)}`
|
|
10631
10665
|
];
|
|
10632
|
-
if (
|
|
10633
|
-
lines.push("
|
|
10634
|
-
} else {
|
|
10635
|
-
lines.push(
|
|
10636
|
-
`${formatInteger(savedRows)} ${savedRows === 1 ? "row was" : "rows were"} saved successfully.`
|
|
10637
|
-
);
|
|
10666
|
+
if (packageDatasetRecords(packaged).length === 0 && formatPackageValueOutputLines(packaged).length === 0) {
|
|
10667
|
+
lines.push("Rows kept only in memory were not published.");
|
|
10638
10668
|
}
|
|
10639
|
-
lines.push(
|
|
10640
|
-
"",
|
|
10641
|
-
"Run the same Play again to continue where you left off.",
|
|
10642
|
-
"Completed work will be reused automatically."
|
|
10643
|
-
);
|
|
10644
10669
|
return lines;
|
|
10645
10670
|
}
|
|
10646
10671
|
function formatInlinePackageValue(value) {
|
|
@@ -10993,7 +11018,6 @@ function buildRunPackageTextLines(packaged) {
|
|
|
10993
11018
|
(dataset) => Boolean(actionToCommand(readRecord(dataset.actions)?.exportCsv))
|
|
10994
11019
|
);
|
|
10995
11020
|
const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
|
|
10996
|
-
const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
|
|
10997
11021
|
if (inspectCommand) lines.push(` inspect: ${inspectCommand}`);
|
|
10998
11022
|
if (fullResultCommand)
|
|
10999
11023
|
lines.push(
|
|
@@ -11003,9 +11027,11 @@ function buildRunPackageTextLines(packaged) {
|
|
|
11003
11027
|
if (legacyExportCommand) {
|
|
11004
11028
|
lines.push(` export CSV: ${legacyExportCommand}`);
|
|
11005
11029
|
}
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
lines.push(
|
|
11030
|
+
lines.push(...formatRunRecoveryCommandLines(runId, status));
|
|
11031
|
+
if (status === "failed" || status === "cancelled") {
|
|
11032
|
+
lines.push(
|
|
11033
|
+
"Dataset reuse counts do not measure all tool or child-Play reuse."
|
|
11034
|
+
);
|
|
11009
11035
|
}
|
|
11010
11036
|
return lines;
|
|
11011
11037
|
}
|
|
@@ -11131,7 +11157,7 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11131
11157
|
}
|
|
11132
11158
|
if (overview.errorDetails.run)
|
|
11133
11159
|
lines.push(
|
|
11134
|
-
`Error: ${truncateErrorForDisplay(overview.errorDetails.run, run.id)}`
|
|
11160
|
+
`Error: ${readRecordArray(overview.errorDetails.reported).some((failure) => failure.code === "RUNTIME_LIMIT_EXCEEDED") ? "Runtime limit reached." : truncateErrorForDisplay(overview.errorDetails.run, run.id)}`
|
|
11135
11161
|
);
|
|
11136
11162
|
if (Object.hasOwn(overview, "result")) {
|
|
11137
11163
|
lines.push(
|
|
@@ -11162,8 +11188,14 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11162
11188
|
overview.actions.getLogsCmd ?? `deepline runs logs ${shellQuote(run.id)}`
|
|
11163
11189
|
)}`
|
|
11164
11190
|
);
|
|
11165
|
-
if (failed &&
|
|
11166
|
-
lines.push(
|
|
11191
|
+
if (failed && overview.datasets.length === 0 && !Object.hasOwn(overview, "result")) {
|
|
11192
|
+
lines.push(
|
|
11193
|
+
"No Dataset output is listed. Rows kept only in memory were not published."
|
|
11194
|
+
);
|
|
11195
|
+
}
|
|
11196
|
+
if (failed || run.status === "cancelled") {
|
|
11197
|
+
lines.push(...formatRunRecoveryCommandLines(run.id, run.status));
|
|
11198
|
+
}
|
|
11167
11199
|
return lines;
|
|
11168
11200
|
}
|
|
11169
11201
|
function writePlayResult(status, jsonOutput, options) {
|
|
@@ -11222,10 +11254,9 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11222
11254
|
);
|
|
11223
11255
|
if (status.status === "failed") {
|
|
11224
11256
|
lines.push(` failed logs: deepline runs logs ${runId} --failed`);
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
}
|
|
11257
|
+
}
|
|
11258
|
+
if (publicStatus === "failed" || publicStatus === "cancelled") {
|
|
11259
|
+
lines.push(...formatRunRecoveryCommandLines(runId, publicStatus));
|
|
11229
11260
|
}
|
|
11230
11261
|
const renderedServerView = renderServerResultView(status.resultView);
|
|
11231
11262
|
if (result) {
|
|
@@ -12193,7 +12224,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12193
12224
|
jsonOutput: argsWantJson(args)
|
|
12194
12225
|
};
|
|
12195
12226
|
}
|
|
12196
|
-
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
12227
|
+
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
|
|
12197
12228
|
function parsePlaySaveOptions(args) {
|
|
12198
12229
|
const target = args[0];
|
|
12199
12230
|
if (!target) throw new Error(PLAY_SAVE_USAGE);
|
|
@@ -12202,9 +12233,16 @@ function parsePlaySaveOptions(args) {
|
|
|
12202
12233
|
The Play file is positional.`);
|
|
12203
12234
|
}
|
|
12204
12235
|
let expectedArtifactHash;
|
|
12236
|
+
let watchPlay;
|
|
12205
12237
|
let dryRun = false;
|
|
12206
12238
|
for (let index = 1; index < args.length; index += 1) {
|
|
12207
12239
|
const arg = args[index];
|
|
12240
|
+
if (arg === "--watch-play" || arg.startsWith("--watch-play=")) {
|
|
12241
|
+
watchPlay = arg === "--watch-play" ? args[++index] : arg.slice("--watch-play=".length);
|
|
12242
|
+
if (!watchPlay || watchPlay.startsWith("-"))
|
|
12243
|
+
throw new Error("--watch-play requires an existing Play reference.");
|
|
12244
|
+
continue;
|
|
12245
|
+
}
|
|
12208
12246
|
if (arg === "--expected-artifact") {
|
|
12209
12247
|
expectedArtifactHash = args[++index];
|
|
12210
12248
|
if (!expectedArtifactHash) {
|
|
@@ -12230,6 +12268,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12230
12268
|
return {
|
|
12231
12269
|
target,
|
|
12232
12270
|
expectedArtifactHash,
|
|
12271
|
+
watchPlay,
|
|
12233
12272
|
dryRun,
|
|
12234
12273
|
jsonOutput: argsWantJson(args)
|
|
12235
12274
|
};
|
|
@@ -12706,7 +12745,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12706
12745
|
playName: graph.root.playName ?? await extractPlayName(sourceCode, absolutePlayPath),
|
|
12707
12746
|
maxTotalCredits: options.maxTotalCredits
|
|
12708
12747
|
});
|
|
12709
|
-
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12748
|
+
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
12710
12749
|
if (canDeferCompilerManifest) {
|
|
12711
12750
|
recordCliTrace({
|
|
12712
12751
|
phase: "cli.play_file_compile_manifests",
|
|
@@ -12769,7 +12808,10 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12769
12808
|
client,
|
|
12770
12809
|
runtimeInput,
|
|
12771
12810
|
bindings: fileInputBindings,
|
|
12772
|
-
progress
|
|
12811
|
+
progress,
|
|
12812
|
+
packagedFiles: new Set(
|
|
12813
|
+
bundleResult.packagedFiles.map((file) => file.logicalPath)
|
|
12814
|
+
)
|
|
12773
12815
|
})
|
|
12774
12816
|
);
|
|
12775
12817
|
const integrationMode = resolveEvalIntegrationMode();
|
|
@@ -13399,6 +13441,10 @@ function formatRunFactLines(value) {
|
|
|
13399
13441
|
}
|
|
13400
13442
|
function renderRunOverviewText(overview, extras = {}) {
|
|
13401
13443
|
const { run } = overview;
|
|
13444
|
+
const reportedErrors = readRecordArray(overview.errorDetails.reported);
|
|
13445
|
+
const isRuntimeLimit = reportedErrors.some(
|
|
13446
|
+
(failure) => failure.code === "RUNTIME_LIMIT_EXCEEDED"
|
|
13447
|
+
);
|
|
13402
13448
|
const runLabel = runExecutionLabel(
|
|
13403
13449
|
deriveRunExecutionState({
|
|
13404
13450
|
status: run.status,
|
|
@@ -13434,8 +13480,15 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13434
13480
|
if (retries) lines.push(` retries: ${formatRunRetrySummary(retries)}`);
|
|
13435
13481
|
else if (run.retriesUnavailableReason)
|
|
13436
13482
|
lines.push(` retries: unavailable (${run.retriesUnavailableReason})`);
|
|
13437
|
-
if (run.error)
|
|
13483
|
+
if (run.error)
|
|
13484
|
+
lines.push(
|
|
13485
|
+
` error: ${isRuntimeLimit ? "Runtime limit reached." : run.error}`
|
|
13486
|
+
);
|
|
13438
13487
|
for (const warning of overview.warnings) lines.push(` warning: ${warning}`);
|
|
13488
|
+
if ((run.status === "failed" || run.status === "cancelled") && overview.datasets.length === 0 && !Object.hasOwn(overview, "result")) {
|
|
13489
|
+
lines.push("Rows kept only in memory were not published.");
|
|
13490
|
+
}
|
|
13491
|
+
lines.push(...formatRunRecoveryCommandLines(run.id, run.status));
|
|
13439
13492
|
const sections = [];
|
|
13440
13493
|
const jsonLines = (value) => (JSON.stringify(value, null, 2) ?? "unavailable").split("\n");
|
|
13441
13494
|
if (overview.steps.length)
|
|
@@ -13456,10 +13509,14 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13456
13509
|
(step) => `${step.stepId}: ${step.label}${step.message ? ` \u2014 ${step.message}` : ""}`
|
|
13457
13510
|
)
|
|
13458
13511
|
});
|
|
13459
|
-
if (
|
|
13512
|
+
if (reportedErrors.some((failure) => failure.code !== "RUNTIME_LIMIT_EXCEEDED"))
|
|
13460
13513
|
sections.push({
|
|
13461
13514
|
title: "Reported errors",
|
|
13462
|
-
lines: formatRunFactLines(
|
|
13515
|
+
lines: formatRunFactLines(
|
|
13516
|
+
reportedErrors.filter(
|
|
13517
|
+
(failure) => failure.code !== "RUNTIME_LIMIT_EXCEEDED"
|
|
13518
|
+
)
|
|
13519
|
+
)
|
|
13463
13520
|
});
|
|
13464
13521
|
if (overview.rowOutcomes)
|
|
13465
13522
|
sections.push({
|
|
@@ -15160,23 +15217,19 @@ async function handlePlayVersions(args) {
|
|
|
15160
15217
|
return 0;
|
|
15161
15218
|
}
|
|
15162
15219
|
function formatPlayCostEstimate(estimate) {
|
|
15163
|
-
const computeSummary = estimate?.compute ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
|
|
15164
15220
|
if (!estimate || estimate.status === "unavailable") {
|
|
15165
|
-
return `unavailable${estimate ? `: ${estimate.message}
|
|
15221
|
+
return `unavailable${estimate ? `: ${estimate.message}` : ""}`;
|
|
15166
15222
|
}
|
|
15167
15223
|
const credits = estimate.lowCredits === estimate.highCredits ? `${estimate.source === "observed" ? "~" : ""}${formatCredits(estimate.lowCredits)}` : `${formatCredits(estimate.lowCredits)}\u2013${formatCredits(estimate.highCredits)}`;
|
|
15168
15224
|
const unit = estimate.unit === "row" ? "output row" : "run";
|
|
15169
15225
|
const source = estimate.source === "observed" ? `observed from ${estimate.sampleRunCount} ${estimate.sampleRunCount === 1 ? "run" : "runs"}` : "static estimate";
|
|
15170
|
-
return `${credits} Deepline credits per ${unit} (${source})
|
|
15226
|
+
return `${credits} Deepline credits per ${unit} (${source})`;
|
|
15171
15227
|
}
|
|
15172
15228
|
function formatCredits(value) {
|
|
15173
15229
|
return value.toLocaleString("en-US", {
|
|
15174
15230
|
maximumFractionDigits: value < 1 ? 4 : 2
|
|
15175
15231
|
});
|
|
15176
15232
|
}
|
|
15177
|
-
function formatSandboxBackend(backend) {
|
|
15178
|
-
return backend === "daytona" ? "Daytona" : "Modal";
|
|
15179
|
-
}
|
|
15180
15233
|
var PREBUILT_PLAY_TAG_KEYS = [
|
|
15181
15234
|
"smb",
|
|
15182
15235
|
"find-prospects",
|
|
@@ -15574,6 +15627,29 @@ async function handlePlaySave(args) {
|
|
|
15574
15627
|
);
|
|
15575
15628
|
return 2;
|
|
15576
15629
|
}
|
|
15630
|
+
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
15631
|
+
const client = watchPlay ? new DeeplineClient() : void 0;
|
|
15632
|
+
let attempt;
|
|
15633
|
+
if (watchPlay && client) {
|
|
15634
|
+
try {
|
|
15635
|
+
attempt = await client.beginWorkingPlaySave(watchPlay);
|
|
15636
|
+
} catch (error) {
|
|
15637
|
+
console.error(
|
|
15638
|
+
`Could not open the Play save status: ${error instanceof Error ? error.message : String(error)}`
|
|
15639
|
+
);
|
|
15640
|
+
return 5;
|
|
15641
|
+
}
|
|
15642
|
+
}
|
|
15643
|
+
const reportSave = async (action) => {
|
|
15644
|
+
if (!watchPlay || !client || !attempt) return;
|
|
15645
|
+
try {
|
|
15646
|
+
await client.finishWorkingPlaySave(watchPlay, attempt.attemptId, action);
|
|
15647
|
+
} catch (error) {
|
|
15648
|
+
console.error(
|
|
15649
|
+
`Could not update the Play save status: ${error instanceof Error ? error.message : String(error)}`
|
|
15650
|
+
);
|
|
15651
|
+
}
|
|
15652
|
+
};
|
|
15577
15653
|
let graph;
|
|
15578
15654
|
try {
|
|
15579
15655
|
graph = await traceCliSpan(
|
|
@@ -15583,10 +15659,17 @@ async function handlePlaySave(args) {
|
|
|
15583
15659
|
);
|
|
15584
15660
|
assertPlayGraphAuthoring(graph);
|
|
15585
15661
|
} catch (error) {
|
|
15662
|
+
await reportSave("invalid_source");
|
|
15586
15663
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15587
15664
|
return 7;
|
|
15588
15665
|
}
|
|
15589
15666
|
const playName = graph.root.playName ?? await extractPlayName(graph.root.sourceCode, graph.root.filePath);
|
|
15667
|
+
if (watchPlay && parseReferencedPlayTarget(watchPlay).unqualifiedPlayName !== playName) {
|
|
15668
|
+
console.error(
|
|
15669
|
+
`The file defines ${playName}, which does not match --watch-play ${watchPlay}.`
|
|
15670
|
+
);
|
|
15671
|
+
return 7;
|
|
15672
|
+
}
|
|
15590
15673
|
const artifactHash = graph.root.artifact.artifactHash;
|
|
15591
15674
|
if (options.expectedArtifactHash && options.expectedArtifactHash !== artifactHash) {
|
|
15592
15675
|
const result = {
|
|
@@ -15629,17 +15712,17 @@ async function handlePlaySave(args) {
|
|
|
15629
15712
|
}
|
|
15630
15713
|
return 0;
|
|
15631
15714
|
}
|
|
15632
|
-
const
|
|
15715
|
+
const saveClient = client ?? new DeeplineClient();
|
|
15633
15716
|
try {
|
|
15634
15717
|
await traceCliSpan(
|
|
15635
15718
|
"cli.play_save_compile_manifests",
|
|
15636
15719
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15637
|
-
() => compileBundledPlayGraphManifests(
|
|
15720
|
+
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
15638
15721
|
);
|
|
15639
15722
|
const saved = await traceCliSpan(
|
|
15640
15723
|
"cli.play_save_register_draft",
|
|
15641
15724
|
{ targetKind: "file", playName, artifactHash },
|
|
15642
|
-
() =>
|
|
15725
|
+
() => saveClient.registerPlayArtifact({
|
|
15643
15726
|
name: playName,
|
|
15644
15727
|
sourceCode: graph.root.sourceCode,
|
|
15645
15728
|
sourceFiles: graph.root.sourceFiles,
|
|
@@ -15649,6 +15732,7 @@ async function handlePlaySave(args) {
|
|
|
15649
15732
|
publish: false
|
|
15650
15733
|
})
|
|
15651
15734
|
);
|
|
15735
|
+
await reportSave("saved");
|
|
15652
15736
|
const result = {
|
|
15653
15737
|
success: true,
|
|
15654
15738
|
name: playName,
|
|
@@ -15677,6 +15761,9 @@ async function handlePlaySave(args) {
|
|
|
15677
15761
|
}
|
|
15678
15762
|
return 0;
|
|
15679
15763
|
} catch (error) {
|
|
15764
|
+
if (extractPlayValidationErrors(error).length > 0) {
|
|
15765
|
+
await reportSave("invalid_source");
|
|
15766
|
+
}
|
|
15680
15767
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15681
15768
|
return 5;
|
|
15682
15769
|
}
|
|
@@ -16082,7 +16169,7 @@ Authoring:
|
|
|
16082
16169
|
Play work unless the caller explicitly asks to leave the inferred graph.
|
|
16083
16170
|
|
|
16084
16171
|
Common commands:
|
|
16085
|
-
deepline search "name and company domain -> work email"
|
|
16172
|
+
deepline search "name and company domain -> work email"
|
|
16086
16173
|
deepline describe prebuilt/person-linkedin-to-email
|
|
16087
16174
|
deepline plays check prebuilt/name-and-domain-to-email-waterfall-batch
|
|
16088
16175
|
deepline run prebuilt/person-linkedin-to-email --input '{"linkedin_url":"..."}'
|
|
@@ -16535,7 +16622,7 @@ Notes:
|
|
|
16535
16622
|
Examples:
|
|
16536
16623
|
deepline plays list
|
|
16537
16624
|
deepline plays list --tag smb
|
|
16538
|
-
deepline search "name and company domain -> work email"
|
|
16625
|
+
deepline search "name and company domain -> work email"
|
|
16539
16626
|
`
|
|
16540
16627
|
).option("--limit <count>", "Page size").option("--cursor <cursor>", "Continue a previous page").option("--show-cost", "Include the per-row or per-run cost estimate").option(
|
|
16541
16628
|
"--summary",
|
|
@@ -16610,7 +16697,7 @@ Examples:
|
|
|
16610
16697
|
});
|
|
16611
16698
|
registerDeprecatedSearchCommand(
|
|
16612
16699
|
play,
|
|
16613
|
-
(options) => options.all ? ["
|
|
16700
|
+
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
16614
16701
|
);
|
|
16615
16702
|
play.command("grep <query>").description(
|
|
16616
16703
|
"Search active org-owned Plays through Convex full-text search."
|
|
@@ -16662,7 +16749,7 @@ Examples:
|
|
|
16662
16749
|
process.exitCode = await ownView();
|
|
16663
16750
|
return;
|
|
16664
16751
|
}
|
|
16665
|
-
const { describeAnything } = await import("./describe-
|
|
16752
|
+
const { describeAnything } = await import("./describe-IKZFOADR.mjs");
|
|
16666
16753
|
process.exitCode = await describeAnything(
|
|
16667
16754
|
name,
|
|
16668
16755
|
{
|
|
@@ -16706,16 +16793,21 @@ Notes:
|
|
|
16706
16793
|
|
|
16707
16794
|
Examples:
|
|
16708
16795
|
deepline plays save ./company-research.play.ts
|
|
16796
|
+
deepline plays save ./company-research.play.ts --watch-play company-research
|
|
16709
16797
|
deepline plays save ./company-research.play.ts --dry-run
|
|
16710
16798
|
deepline plays publish ./company-research.play.ts
|
|
16711
16799
|
`
|
|
16712
16800
|
).option("--expected-artifact <hash>", "Require the checked artifact hash").option(
|
|
16801
|
+
"--watch-play <reference>",
|
|
16802
|
+
"Show rejected saves on your open working canvas"
|
|
16803
|
+
).option(
|
|
16713
16804
|
"--dry-run",
|
|
16714
16805
|
"Bundle and show the planned draft save without mutation"
|
|
16715
16806
|
).option("--json", "Emit JSON output").action(async (file, options) => {
|
|
16716
16807
|
process.exitCode = await handlePlaySave([
|
|
16717
16808
|
file,
|
|
16718
16809
|
...options.expectedArtifact ? ["--expected-artifact", options.expectedArtifact] : [],
|
|
16810
|
+
...options.watchPlay ? ["--watch-play", options.watchPlay] : [],
|
|
16719
16811
|
...options.dryRun ? ["--dry-run"] : [],
|
|
16720
16812
|
...options.json ? ["--json"] : []
|
|
16721
16813
|
]);
|
|
@@ -17000,7 +17092,7 @@ Examples:
|
|
|
17000
17092
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17001
17093
|
).action(async (runId, options) => {
|
|
17002
17094
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17003
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
17095
|
+
const { getToolExecutionReceipt } = await import("./tools-52NTHBSJ.mjs");
|
|
17004
17096
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17005
17097
|
receiptJson: options.json !== void 0
|
|
17006
17098
|
});
|
|
@@ -17064,7 +17156,9 @@ Examples:
|
|
|
17064
17156
|
`
|
|
17065
17157
|
Notes:
|
|
17066
17158
|
Continues the same run id with its original input and pinned revision.
|
|
17067
|
-
|
|
17159
|
+
Matching completed operations can be recovered, even when their calls used
|
|
17160
|
+
staleAfterSeconds: 0. Unfinished or unrecorded work can incur charges.
|
|
17161
|
+
Dataset reuse counts do not measure all work available to resume.
|
|
17068
17162
|
A run can be resumed for 14 days after it stops. To start over as a new
|
|
17069
17163
|
run instead, use deepline plays run --from-run <run-id>.
|
|
17070
17164
|
The server refuses while the run is still active, while its last attempt
|