deepline 0.3.535 → 0.3.537
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 +232 -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 +22 -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/context.ts +88 -96
- 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 +9 -0
- 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 +127 -9
- package/dist/bundling-sources/shared_libs/play-runtime/memory-ledger.ts +15 -2
- 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/resource-governor.ts +7 -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 +8 -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 +84 -49
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -32
- 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/product-notifications/configuration-draft.ts +57 -1
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +22 -9
- package/dist/cli/{auth-ZCTMB5RA.mjs → auth-4SUPGDIM.mjs} +7 -7
- package/dist/cli/auth-Y2K2ZYYA.js +43 -0
- package/dist/cli/{billing-OU2ZHL72.mjs → billing-5JUA3ZM3.mjs} +185 -24
- package/dist/cli/{billing-GVFKZQH3.js → billing-SQU726P7.js} +273 -112
- package/dist/cli/{chunk-T2N3B7IQ.js → chunk-2GJZLIKW.js} +8 -8
- package/dist/cli/{chunk-ZUVE63Y7.js → chunk-2Q7VXTMS.js} +2 -2
- package/dist/cli/{chunk-WAIBM6KX.mjs → chunk-37AZHCTP.mjs} +5 -5
- package/dist/cli/{chunk-D4MHCCIR.js → chunk-3PMCQ3LK.js} +33 -33
- package/dist/cli/{chunk-R4RG4FV5.mjs → chunk-4KWD3MX2.mjs} +13 -10
- package/dist/cli/{chunk-PI5R65OQ.js → chunk-5EOEJKSV.js} +1 -1
- package/dist/cli/{chunk-XSOTEVOB.js → chunk-6BBGUQJJ.js} +50 -141
- package/dist/cli/{chunk-OM732MGV.js → chunk-ALHKB3AE.js} +17 -17
- package/dist/cli/{chunk-6LHX33VN.js → chunk-AVQET3NR.js} +9 -6
- package/dist/cli/{chunk-W6T23EUC.mjs → chunk-AX2OAXDL.mjs} +1 -1
- package/dist/cli/{chunk-SQWET4SL.js → chunk-BBTKAASQ.js} +2 -1
- package/dist/cli/{chunk-G2DLG32W.mjs → chunk-BFHR7IC2.mjs} +40 -27
- package/dist/cli/{chunk-KWGXHPHL.js → chunk-BGXEMTIG.js} +523 -59
- package/dist/cli/{chunk-AUEUAPVS.mjs → chunk-BRRCWUOW.mjs} +1 -1
- package/dist/cli/{chunk-QYBAHYP4.mjs → chunk-C37VELBR.mjs} +7 -9
- package/dist/cli/{chunk-H6SWS5CG.mjs → chunk-C3XD2WHM.mjs} +2 -2
- package/dist/cli/{chunk-NRO3NTVO.js → chunk-CBV7AKWM.js} +5 -5
- package/dist/cli/{chunk-CIDATNTY.js → chunk-CFND2ACL.js} +16 -16
- package/dist/cli/{chunk-J75DANZY.mjs → chunk-CGDW2CRR.mjs} +2 -2
- package/dist/cli/{chunk-RFQWSH6I.js → chunk-CHIGEDAE.js} +3 -3
- 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-E3CLOVG5.mjs → chunk-CXTW7SRW.mjs} +50 -141
- package/dist/cli/{chunk-4NLRWKZB.js → chunk-D77W6Q67.js} +26 -26
- package/dist/cli/{chunk-JWWYLGUT.mjs → chunk-EEFSUCYP.mjs} +475 -11
- package/dist/cli/{chunk-STR5LXK4.mjs → chunk-FSIVF2SI.mjs} +1 -1
- package/dist/cli/{chunk-6TYRRNXY.mjs → chunk-GI3V4D7K.mjs} +2 -2
- package/dist/cli/{chunk-DFJODFMC.mjs → chunk-GPMS6OPX.mjs} +5 -5
- package/dist/cli/{chunk-5YAJGRWB.js → chunk-IPVRMYWT.js} +7 -7
- package/dist/cli/{chunk-DAPKLYST.js → chunk-IQOIT6E3.js} +41 -41
- package/dist/cli/{chunk-ZPGGW27Q.mjs → chunk-JL2OTMSG.mjs} +1 -0
- package/dist/cli/{chunk-FGN75ZN6.js → chunk-JMHYDDBQ.js} +390 -382
- package/dist/cli/{chunk-KA6ZERJL.js → chunk-JS2SBCWD.js} +6 -6
- package/dist/cli/{chunk-W5YJYU4G.mjs → chunk-K4WJ4BYO.mjs} +2 -2
- package/dist/cli/{chunk-LVISZFYO.mjs → chunk-KH27B2HJ.mjs} +2 -2
- package/dist/cli/{chunk-UUQ2OXMH.js → chunk-KULT6O5K.js} +18 -20
- package/dist/cli/{chunk-YFZLZNTH.mjs → chunk-L3JVGNAT.mjs} +4 -4
- package/dist/cli/{chunk-HYBZWSSH.js → chunk-L6QAIZNZ.js} +44 -44
- package/dist/cli/{chunk-TCVCFZP6.mjs → chunk-NU7B5X6J.mjs} +4 -1
- package/dist/cli/{chunk-7PXP2FQK.js → chunk-NXGLJGPB.js} +2 -2
- package/dist/cli/{chunk-BNH4Y35W.mjs → chunk-OLH2PHMC.mjs} +2 -2
- package/dist/cli/{chunk-GESIFFQX.mjs → chunk-OVX3Q5Q3.mjs} +1 -1
- package/dist/cli/{chunk-2D6SWQTK.js → chunk-PJ4ZGZAN.js} +13 -13
- package/dist/cli/{chunk-HWPOXCCK.js → chunk-PU42VOBI.js} +8 -8
- package/dist/cli/{chunk-RKY4LBX3.mjs → chunk-QDBGPRR2.mjs} +3 -3
- package/dist/cli/{chunk-KOZBZPRM.js → chunk-QPDLG7DQ.js} +55 -55
- package/dist/cli/{chunk-DWPY6ZID.mjs → chunk-R7JYG6XO.mjs} +1 -1
- package/dist/cli/{chunk-K76AEBFY.mjs → chunk-RMVZTBI5.mjs} +4 -4
- package/dist/cli/{chunk-IF75RD6U.js → chunk-U2LVWCTD.js} +18 -6
- package/dist/cli/{chunk-WNNA4L6Z.js → chunk-UGA5KI4A.js} +22 -22
- package/dist/cli/{chunk-ZS2WHWWL.js → chunk-UNDLNT3V.js} +1 -1
- package/dist/cli/{chunk-7CWSAEYS.mjs → chunk-V5IIBG2E.mjs} +1 -1
- package/dist/cli/{chunk-BF65LB7X.mjs → chunk-VP2K5B3R.mjs} +4 -4
- package/dist/cli/{chunk-DYIWDUY4.js → chunk-VRYX2BR4.js} +316 -303
- package/dist/cli/{chunk-R2KKEHJN.mjs → chunk-W3J3LT22.mjs} +5 -5
- package/dist/cli/{chunk-PHLNYBAA.js → chunk-WBFOV5HT.js} +5 -5
- package/dist/cli/{chunk-5EKNDNFQ.js → chunk-WBTYWJLN.js} +2 -2
- package/dist/cli/{chunk-C374C22Y.js → chunk-WOQO3GV4.js} +14 -11
- package/dist/cli/{chunk-K3IPGMGP.js → chunk-XDS26J7Z.js} +17 -19
- package/dist/cli/{chunk-JQQG4QL4.mjs → chunk-Y6AMMXWS.mjs} +3 -3
- package/dist/cli/{chunk-7R5DAANG.mjs → chunk-Z2PPB3IO.mjs} +1 -1
- package/dist/cli/{chunk-FKD3KL5Q.mjs → chunk-Z2XA6YU4.mjs} +10 -5
- package/dist/cli/{chunk-243O3FH5.js → chunk-ZFSB7GXF.js} +5 -5
- package/dist/cli/{chunk-MI6ZP7XI.mjs → chunk-ZG7BOECV.mjs} +18 -6
- package/dist/cli/{chunk-FZKPPB5P.mjs → chunk-ZHPSJ3LJ.mjs} +85 -77
- package/dist/cli/{chunk-K53NKWZO.mjs → chunk-ZUAMXZXC.mjs} +13 -15
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-CLPVMIRF.mjs → csv-HZP6QMG7.mjs} +6 -6
- package/dist/cli/{csv-CD55KEIO.js → csv-JITYN27L.js} +15 -15
- package/dist/cli/{db-MQKLDAEO.js → db-FYSRB7O4.js} +36 -36
- package/dist/cli/{db-AU4SMWUN.mjs → db-QRIRTOMM.mjs} +9 -9
- package/dist/cli/describe-LSOHOLFI.js +49 -0
- package/dist/cli/describe-REXJVJC3.mjs +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-TFIJPUX7.mjs → executions-53KJAFOW.mjs} +9 -9
- package/dist/cli/{executions-77GOLWRM.js → executions-BSTF4DDS.js} +11 -11
- package/dist/cli/{feedback-OV5YAL3A.js → feedback-6MW3QOXX.js} +16 -16
- package/dist/cli/{feedback-2WRSZ5WL.mjs → feedback-CWUJJF3J.mjs} +8 -8
- package/dist/cli/{git-VNS4ATLZ.mjs → git-CKVZTJFS.mjs} +7 -7
- package/dist/cli/git-S7SWUZ3T.js +25 -0
- package/dist/cli/index.js +151 -157
- package/dist/cli/index.mjs +51 -57
- package/dist/cli/{legacy-noops-HDOB5C6F.js → legacy-noops-QBL4PNGB.js} +11 -11
- package/dist/cli/{legacy-noops-C732QDCY.mjs → legacy-noops-USTBRFRX.mjs} +8 -8
- package/dist/cli/{monitors-2LYEFXOU.mjs → monitors-6UCG5D7W.mjs} +19 -16
- package/dist/cli/{monitors-5IUMHH3E.js → monitors-VCR6SUZD.js} +125 -122
- package/dist/cli/{org-G4YGZPHS.mjs → org-GSRBOJVO.mjs} +9 -9
- package/dist/cli/{org-ADW2EVAC.js → org-HPILTEG4.js} +89 -89
- package/dist/cli/{play-7GQ56C2D.mjs → play-QRTYQNG4.mjs} +123 -76
- package/dist/cli/{play-EHSOSSHT.js → play-TK7WOP5H.js} +641 -594
- package/dist/cli/{providers-PWCF6OOO.js → providers-HEXNJ5QC.js} +12 -12
- package/dist/cli/{providers-WL3YTCSV.mjs → providers-OAQJWVBS.mjs} +9 -9
- package/dist/cli/{quickstart-323XOPGI.mjs → quickstart-FFVHTPSP.mjs} +6 -6
- package/dist/cli/{quickstart-ZKI5MURA.js → quickstart-PYZTFXZX.js} +8 -8
- package/dist/cli/{run-XZPWA6JS.js → run-4DWJXJRO.js} +50 -53
- package/dist/cli/{run-ZCNZU3K2.mjs → run-HLN6YYZH.mjs} +31 -34
- package/dist/cli/search-WERQBC6V.js +32 -0
- package/dist/cli/{search-CVLVSFMJ.mjs → search-ZHRCXGEL.mjs} +10 -11
- package/dist/cli/{search-output-7HRSSRBS.js → search-output-2KY6PFDH.js} +8 -8
- package/dist/cli/{search-output-6PY6RN2R.mjs → search-output-N7QXACVK.mjs} +6 -6
- package/dist/cli/{secrets-6S2ZWDIM.mjs → secrets-FKMWBLHU.mjs} +9 -9
- package/dist/cli/{secrets-IYD5VKY4.js → secrets-WXQ7XO5C.js} +18 -18
- package/dist/cli/{sessions-GVEX5TUJ.mjs → sessions-3YDTEDA5.mjs} +8 -8
- package/dist/cli/sessions-LXQ4Q6BS.js +22 -0
- package/dist/cli/{settings-CANK4HJQ.js → settings-67TWLQ6E.js} +88 -89
- package/dist/cli/{settings-BN5MJZ3C.mjs → settings-JTPASUZN.mjs} +15 -16
- package/dist/cli/{setup-YSGKGLSJ.js → setup-KUERQJUX.js} +51 -52
- package/dist/cli/{setup-JNMSCCU4.mjs → setup-VYNGXUJ6.mjs} +11 -12
- package/dist/cli/skills-EFRLHY3F.js +36 -0
- package/dist/cli/{skills-QCQN2UM2.mjs → skills-KI4KYHH6.mjs} +9 -10
- package/dist/cli/tools-C3EIGFFP.js +56 -0
- package/dist/cli/{tools-CDPOID7V.mjs → tools-UQDJS2RS.mjs} +20 -21
- package/dist/cli/{update-D3ZERUQ3.mjs → update-7FQQUBOD.mjs} +11 -12
- package/dist/cli/update-KCY72RXH.js +34 -0
- package/dist/cli/{views-RDZRWQBQ.mjs → views-JAM4MNNV.mjs} +54 -10
- package/dist/cli/{views-4NV2KQKA.js → views-MJK7JGZG.js} +66 -22
- package/dist/cli/{workflow-RABJCAZC.js → workflow-AQPRIWQX.js} +20 -20
- package/dist/cli/{workflow-2CG3TVCG.mjs → workflow-TQRV5FGO.mjs} +10 -10
- package/dist/{client-DhSvMO3A.d.mts → client-BlLYQDNo.d.mts} +1 -1
- package/dist/{client-oGNJMQFd.d.ts → client-DSQlkIDO.d.ts} +1 -1
- package/dist/{client-core-CdWH6Sii.d.ts → client-core-CDwapXy5.d.ts} +159 -108
- package/dist/{client-core-CVG1Et-4.d.mts → client-core-rX7n2H8U.d.mts} +159 -108
- package/dist/{compiler-manifest-D2ZlBGxj.d.ts → compiler-manifest-BHNC4RL-.d.mts} +15 -22
- package/dist/{compiler-manifest-D2ZlBGxj.d.mts → compiler-manifest-BHNC4RL-.d.ts} +15 -22
- package/dist/{errors-B-gOQdj-.d.mts → errors-D7sPXrvB.d.mts} +1 -1
- package/dist/{errors-CB0KAmmV.d.ts → errors-lhtIWG5Z.d.ts} +1 -1
- package/dist/{index-c3nvUGCS.d.ts → index-CQTBHXHr.d.ts} +1 -1
- package/dist/{index-BbJADro4.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 +129 -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 +17 -5
- 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-VDCU3T6A.js +0 -43
- package/dist/cli/chunk-4QELPWUW.mjs +0 -405
- package/dist/cli/chunk-T7RBM2WX.js +0 -405
- package/dist/cli/describe-5BFNHT5V.js +0 -50
- package/dist/cli/describe-AWJUXE2U.mjs +0 -50
- package/dist/cli/git-HGMX52XU.js +0 -25
- package/dist/cli/pages-KXKWSCEV.mjs +0 -266
- package/dist/cli/pages-VTJGAI2D.js +0 -266
- package/dist/cli/search-J6EY7DQN.js +0 -33
- package/dist/cli/sessions-7HPIVSQ4.js +0 -22
- package/dist/cli/skills-WDGSSKJZ.js +0 -37
- package/dist/cli/tools-URNVXSTZ.js +0 -57
- package/dist/cli/update-Q6JW32IA.js +0 -35
|
@@ -1,31 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BFHR7IC2.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NU7B5X6J.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OLH2PHMC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
14
|
} from "./chunk-7AOFSZJM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-KH27B2HJ.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
|
-
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-4QELPWUW.mjs";
|
|
22
|
-
import {
|
|
20
|
+
isFailureReportingDisabled,
|
|
23
21
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EEFSUCYP.mjs";
|
|
25
23
|
import {
|
|
26
24
|
autoDetectBaseUrl,
|
|
27
25
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K4WJ4BYO.mjs";
|
|
29
27
|
|
|
30
28
|
// src/cli/commands/describe.ts
|
|
31
29
|
import { writeFileSync } from "fs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EEFSUCYP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K4WJ4BYO.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
4
4
|
|
|
5
5
|
// node_modules/csv-parse/dist/esm/sync.js
|
|
6
6
|
var global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
|
|
@@ -3000,7 +3000,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3000
3000
|
} : {}
|
|
3001
3001
|
});
|
|
3002
3002
|
} catch (error) {
|
|
3003
|
-
throw new (0,
|
|
3003
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
3004
3004
|
`Input ${source.inputPath} could not be parsed as CSV (${source.value}): ${error instanceof Error ? error.message : String(error)}. This usually means an unclosed quote or ragged quoting. No run was created.`,
|
|
3005
3005
|
void 0,
|
|
3006
3006
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3008,7 +3008,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3008
3008
|
);
|
|
3009
3009
|
}
|
|
3010
3010
|
if (records.length === 0) {
|
|
3011
|
-
throw new (0,
|
|
3011
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
3012
3012
|
`${source.value} is empty: it has no header row and no data rows. No run was created.`,
|
|
3013
3013
|
void 0,
|
|
3014
3014
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3023,7 +3023,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3023
3023
|
if (name.length === 0) continue;
|
|
3024
3024
|
const prior = seen.get(name);
|
|
3025
3025
|
if (prior) {
|
|
3026
|
-
throw new (0,
|
|
3026
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
3027
3027
|
`Input ${source.inputPath} (${source.value}) has a duplicate CSV header "${name}" (columns ${prior.index + 1} and ${i + 1}). The second column would silently overwrite the first. Rename one of them. No run was created.`,
|
|
3028
3028
|
void 0,
|
|
3029
3029
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -3039,7 +3039,7 @@ function parseCsvDataInput(source, content, options = {}) {
|
|
|
3039
3039
|
seen.set(name, { index: i, raw });
|
|
3040
3040
|
}
|
|
3041
3041
|
if (records.length - 1 < 1) {
|
|
3042
|
-
throw new (0,
|
|
3042
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
3043
3043
|
`${source.value} has a header row but no data rows. No run was created.`,
|
|
3044
3044
|
void 0,
|
|
3045
3045
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkWBTYWJLNjs = require('./chunk-WBTYWJLN.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkIQOIT6E3js = require('./chunk-IQOIT6E3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkL6QAIZNZjs = require('./chunk-L6QAIZNZ.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPU42VOBIjs = require('./chunk-PU42VOBI.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkL6QAIZNZjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkWBTYWJLNjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkWBTYWJLNjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkPU42VOBIjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkL6QAIZNZjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPU42VOBIjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkIQOIT6E3js.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R7JYG6XO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GPMS6OPX.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkBGXEMTIGjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -8,7 +8,7 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
|
|
|
8
8
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
12
12
|
|
|
13
13
|
// ../play-data-plane/column-names.ts
|
|
14
14
|
var POSTGRES_IDENTIFIER_MAX_BYTES = 63;
|
|
@@ -164,7 +164,7 @@ async function awaitWithAbort(value, signal) {
|
|
|
164
164
|
removeAbortListener();
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
|
-
var CliPlayAdmissionUnsupportedError = class extends
|
|
167
|
+
var CliPlayAdmissionUnsupportedError = class extends _chunkBBTKAASQjs.DeeplineError {
|
|
168
168
|
constructor(status) {
|
|
169
169
|
super(
|
|
170
170
|
"This server does not support CLI Play admission.",
|
|
@@ -173,7 +173,7 @@ var CliPlayAdmissionUnsupportedError = class extends _chunkSQWET4SLjs.DeeplineEr
|
|
|
173
173
|
);
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
|
-
var CliPlayAdmissionCallerIntentV2UnsupportedError = class extends
|
|
176
|
+
var CliPlayAdmissionCallerIntentV2UnsupportedError = class extends _chunkBBTKAASQjs.DeeplineError {
|
|
177
177
|
constructor(status) {
|
|
178
178
|
super(
|
|
179
179
|
"This server does not support versioned CLI Play admission.",
|
|
@@ -230,7 +230,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
230
230
|
};
|
|
231
231
|
const callerIntentV2 = _optionalChain([options, 'optionalAccess', _15 => _15.callerIntentV2]) === true;
|
|
232
232
|
if (callerIntentV2 && (onSubmission || request.maxTotalCredits !== void 0)) {
|
|
233
|
-
throw new (0,
|
|
233
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
234
234
|
"Versioned CLI Play admission requires a new, unjournaled run without a strict total budget.",
|
|
235
235
|
409,
|
|
236
236
|
"CLI_PLAY_CALLER_INTENT_V2_INELIGIBLE"
|
|
@@ -241,14 +241,14 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
241
241
|
const supportsCallerIntent = callerIntentV2 || _optionalChain([capability, 'optionalAccess', _16 => _16.admissionContract]) === "caller-intent-v1";
|
|
242
242
|
assertAdmissionActive();
|
|
243
243
|
if (supportsCallerIntent && !callerIntentV2 && (!_optionalChain([capability, 'optionalAccess', _17 => _17.orgId]) || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
|
|
244
|
-
throw new (0,
|
|
244
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
245
245
|
"The admission workspace could not be pinned to this request; execution was not submitted.",
|
|
246
246
|
409,
|
|
247
247
|
"PLAY_RUN_ADMISSION_TENANT_CONFLICT"
|
|
248
248
|
);
|
|
249
249
|
}
|
|
250
250
|
if (request.workflowId && !supportsCallerIntent) {
|
|
251
|
-
throw new (0,
|
|
251
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
252
252
|
"This server has not enabled caller-owned admission recovery. Do not retry an ambiguous start.",
|
|
253
253
|
409,
|
|
254
254
|
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
@@ -256,20 +256,20 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
256
256
|
}
|
|
257
257
|
if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _18 => _18.strictTotalBudget]) === "unbounded-v1") {
|
|
258
258
|
if (request.maxTotalCredits === 0) {
|
|
259
|
-
throw new (0,
|
|
259
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
260
260
|
"A zero-credit total budget cannot admit a Play: sandbox compute is billed even when provider tools are free.",
|
|
261
261
|
422,
|
|
262
262
|
"PLAY_TOTAL_BUDGET_COMPUTE_REQUIRED"
|
|
263
263
|
);
|
|
264
264
|
}
|
|
265
|
-
throw new (0,
|
|
265
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
266
266
|
"A strict total Play budget cannot currently be admitted: provider operations, Customer DB compute, and additional sandbox sessions do not have a finite admitted upper bound.",
|
|
267
267
|
422,
|
|
268
268
|
"PLAY_TOTAL_BUDGET_UNBOUNDED"
|
|
269
269
|
);
|
|
270
270
|
}
|
|
271
271
|
if (request.maxTotalCredits !== void 0 && _optionalChain([capability, 'optionalAccess', _19 => _19.strictTotalBudget]) !== "fail-closed-v1") {
|
|
272
|
-
throw new (0,
|
|
272
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
273
273
|
"This server cannot honor a strict total Play budget. Execution was not submitted.",
|
|
274
274
|
409,
|
|
275
275
|
"PLAY_TOTAL_BUDGET_UNSUPPORTED"
|
|
@@ -286,7 +286,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
286
286
|
const workflowId = supportsCallerIntent ? _nullishCoalesce(request.workflowId, () => ( _chunkXDVT3GOMjs.buildCallerPlayWorkflowId.call(void 0, _nullishCoalesce(request.name, () => ( "play")), wireBody))) : void 0;
|
|
287
287
|
const submittedBody = workflowId ? { workflowId, ...wireBody } : wireBody;
|
|
288
288
|
if (workflowId && !_chunkXDVT3GOMjs.callerPlayWorkflowIdMatchesRequest.call(void 0, workflowId, submittedBody)) {
|
|
289
|
-
throw new (0,
|
|
289
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
290
290
|
"workflowId must be the caller run ID of this same immutable request.",
|
|
291
291
|
400,
|
|
292
292
|
"PLAY_RUN_START_INTENT_CONFLICT"
|
|
@@ -294,7 +294,7 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
|
|
|
294
294
|
}
|
|
295
295
|
if (onSubmission) {
|
|
296
296
|
if (!workflowId || !_optionalChain([capability, 'optionalAccess', _20 => _20.orgId])) {
|
|
297
|
-
throw new (0,
|
|
297
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
298
298
|
"This server cannot persist a recoverable submission intent. Execution was not submitted.",
|
|
299
299
|
409,
|
|
300
300
|
"PLAY_RUN_ADMISSION_RECOVERY_UNSUPPORTED"
|
|
@@ -318,14 +318,14 @@ async function readPlayRunAdmissionCapability(http, options) {
|
|
|
318
318
|
options
|
|
319
319
|
);
|
|
320
320
|
} catch (error) {
|
|
321
|
-
if (!(error instanceof
|
|
321
|
+
if (!(error instanceof _chunkBBTKAASQjs.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0)))) {
|
|
322
322
|
throw error;
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
if (capability && !["caller-intent-v1", "unsupported"].includes(
|
|
326
326
|
_nullishCoalesce(capability.admissionContract, () => ( ""))
|
|
327
327
|
)) {
|
|
328
|
-
throw new (0,
|
|
328
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
329
329
|
"The server admission capability response is unknown; execution was not submitted.",
|
|
330
330
|
503,
|
|
331
331
|
"PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
|
|
@@ -378,22 +378,22 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
|
|
|
378
378
|
}
|
|
379
379
|
);
|
|
380
380
|
} catch (error) {
|
|
381
|
-
if (_optionalChain([options, 'optionalAccess', _27 => _27.callerIntentV2]) && !callerIntentV2Supported && error instanceof
|
|
381
|
+
if (_optionalChain([options, 'optionalAccess', _27 => _27.callerIntentV2]) && !callerIntentV2Supported && error instanceof _chunkBBTKAASQjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
382
382
|
throw new CliPlayAdmissionCallerIntentV2UnsupportedError(
|
|
383
383
|
error.statusCode
|
|
384
384
|
);
|
|
385
385
|
}
|
|
386
|
-
if (_optionalChain([options, 'optionalAccess', _28 => _28.cliAdmission]) && !cliAdmissionSupported && error instanceof
|
|
386
|
+
if (_optionalChain([options, 'optionalAccess', _28 => _28.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkBBTKAASQjs.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
387
387
|
throw new CliPlayAdmissionUnsupportedError(error.statusCode);
|
|
388
388
|
}
|
|
389
|
-
if (error instanceof
|
|
389
|
+
if (error instanceof _chunkBBTKAASQjs.DeeplineError && ["NETWORK_TIMEOUT", "NETWORK_ERROR", "FETCH_FAILED"].includes(
|
|
390
390
|
_nullishCoalesce(error.code, () => ( ""))
|
|
391
391
|
) || error instanceof TypeError || error instanceof Error && ["AbortError", "TimeoutError"].includes(error.name)) {
|
|
392
392
|
const originalMessage = error instanceof Error ? error.message : "Transport failed";
|
|
393
|
-
const failure = new (0,
|
|
393
|
+
const failure = new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
394
394
|
workflowId ? `${originalMessage} Admission outcome is unknown for ${workflowId}. Inspect this run before retrying; reuse this workflowId for the same immutable request.` : `${originalMessage} Admission outcome is unknown. This server did not prove caller-owned recovery support; inspect existing runs before starting again.`,
|
|
395
|
-
error instanceof
|
|
396
|
-
error instanceof
|
|
395
|
+
error instanceof _chunkBBTKAASQjs.DeeplineError ? error.statusCode : void 0,
|
|
396
|
+
error instanceof _chunkBBTKAASQjs.DeeplineError ? error.code : "NETWORK_ERROR",
|
|
397
397
|
{
|
|
398
398
|
...workflowId ? { runId: workflowId, workflowId } : {},
|
|
399
399
|
admissionState: "unknown",
|
|
@@ -409,7 +409,7 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
|
|
|
409
409
|
throw error;
|
|
410
410
|
}
|
|
411
411
|
if (_optionalChain([options, 'optionalAccess', _29 => _29.callerIntentV2]) && !callerIntentV2Supported) {
|
|
412
|
-
throw new (0,
|
|
412
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
413
413
|
"The versioned CLI Play admission response did not prove its contract. Inspect this run before submitting again.",
|
|
414
414
|
void 0,
|
|
415
415
|
"PLAY_RUN_ADMISSION_CONTRACT_UNKNOWN",
|
|
@@ -422,7 +422,7 @@ async function submitPreparedPlayRunAdmission(http, submittedBody, workflowId, s
|
|
|
422
422
|
}
|
|
423
423
|
const started = normalizePlayRunStart(response);
|
|
424
424
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.cliAdmission]) && (!started.workflowId || started.workflowId === "pending")) {
|
|
425
|
-
throw new (0,
|
|
425
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
426
426
|
"Play admission returned no run id. Check recent runs before submitting again.",
|
|
427
427
|
void 0,
|
|
428
428
|
"PLAY_START_MISSING_RUN_ID"
|
|
@@ -480,11 +480,16 @@ function stringMetadata(metadata, key) {
|
|
|
480
480
|
function fileInputBindingsFromPlaySchema(inputSchema) {
|
|
481
481
|
const csvInput = schemaMetadata(inputSchema, "csvInput");
|
|
482
482
|
if (!csvInput) return [];
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
483
|
+
const listed = _optionalChain([inputSchema, 'optionalAccess', _34 => _34.csvInputFields]);
|
|
484
|
+
const fields = [
|
|
485
|
+
_nullishCoalesce(stringMetadata(csvInput, "inputField"), () => ( CSV_DATA_INPUT_KEY)),
|
|
486
|
+
...Array.isArray(listed) ? listed.filter(
|
|
487
|
+
(field) => typeof field === "string" && field.trim().length > 0
|
|
488
|
+
) : []
|
|
487
489
|
];
|
|
490
|
+
return [...new Set(fields.map((field) => field.trim()))].map((inputPath) => ({
|
|
491
|
+
inputPath
|
|
492
|
+
}));
|
|
488
493
|
}
|
|
489
494
|
function fileInputBindingsFromStaticPipeline(staticPipeline) {
|
|
490
495
|
if (!staticPipeline || typeof staticPipeline !== "object" || Array.isArray(staticPipeline)) {
|
|
@@ -572,10 +577,10 @@ function stagedUploadIdentity(logicalPath, contentHash) {
|
|
|
572
577
|
return `${contentHash}:${logicalPath}`;
|
|
573
578
|
}
|
|
574
579
|
function isStagedUploadMintUnsupported(error) {
|
|
575
|
-
return error instanceof
|
|
580
|
+
return error instanceof _chunkBBTKAASQjs.DeeplineError && error.statusCode === 404;
|
|
576
581
|
}
|
|
577
582
|
function isStagedUploadDirectEgressDenied(error) {
|
|
578
|
-
return error instanceof
|
|
583
|
+
return error instanceof _chunkBBTKAASQjs.DeeplineError && error.code === "STAGED_FILE_UPLOAD_EGRESS_DENIED";
|
|
579
584
|
}
|
|
580
585
|
function formatMegabytes(bytes) {
|
|
581
586
|
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
@@ -605,8 +610,8 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
605
610
|
return;
|
|
606
611
|
}
|
|
607
612
|
const text = await response.text().catch(() => "");
|
|
608
|
-
const egressDenied = response.status === 403 && _optionalChain([response, 'access',
|
|
609
|
-
lastError = new (0,
|
|
613
|
+
const egressDenied = response.status === 403 && _optionalChain([response, 'access', _35 => _35.headers, 'access', _36 => _36.get, 'call', _37 => _37("x-deny-reason"), 'optionalAccess', _38 => _38.trim, 'call', _39 => _39(), 'access', _40 => _40.toLowerCase, 'call', _41 => _41()]) === "host_not_allowed";
|
|
614
|
+
lastError = new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
610
615
|
`Direct storage upload of ${input.logicalPath} failed: ${response.status} ${text.slice(0, 200)}`,
|
|
611
616
|
response.status,
|
|
612
617
|
egressDenied ? "STAGED_FILE_UPLOAD_EGRESS_DENIED" : "STAGED_FILE_UPLOAD_FAILED",
|
|
@@ -616,7 +621,7 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
616
621
|
break;
|
|
617
622
|
}
|
|
618
623
|
} catch (error) {
|
|
619
|
-
lastError = error instanceof TypeError ? new (0,
|
|
624
|
+
lastError = error instanceof TypeError ? new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
620
625
|
`Direct storage upload of ${input.logicalPath} could not reach the storage endpoint: ${error.message}`,
|
|
621
626
|
void 0,
|
|
622
627
|
"STAGED_FILE_UPLOAD_EGRESS_DENIED",
|
|
@@ -627,7 +632,7 @@ async function uploadStagedFileToPresignedUrl(input) {
|
|
|
627
632
|
await sleep(250 * attempt);
|
|
628
633
|
}
|
|
629
634
|
}
|
|
630
|
-
throw lastError instanceof Error ? lastError : new (0,
|
|
635
|
+
throw lastError instanceof Error ? lastError : new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
631
636
|
`Direct storage upload of ${input.logicalPath} failed.`,
|
|
632
637
|
void 0,
|
|
633
638
|
"STAGED_FILE_UPLOAD_FAILED",
|
|
@@ -642,7 +647,7 @@ async function stagePlayFilesViaMultipart(http, files, reason = "mint-unsupporte
|
|
|
642
647
|
for (const file of files) {
|
|
643
648
|
if (file.bytes > STAGE_LEGACY_MULTIPART_MAX_BYTES) {
|
|
644
649
|
const reasonMessage = reason === "direct-egress-denied" ? "direct storage is blocked by this environment's network egress policy" : "the connected Deepline server does not support direct-to-storage uploads";
|
|
645
|
-
throw new (0,
|
|
650
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
646
651
|
`Cannot stage ${file.logicalPath} (${formatMegabytes(file.bytes)}): ${reasonMessage}, and this file exceeds the ~4.5MB request-body limit the legacy upload path is subject to.`,
|
|
647
652
|
413,
|
|
648
653
|
"STAGED_FILE_TOO_LARGE_FOR_LEGACY_UPLOAD",
|
|
@@ -716,7 +721,7 @@ async function stagePlayFiles(http, files) {
|
|
|
716
721
|
stagedUploadIdentity(file.logicalPath, file.contentHash)
|
|
717
722
|
);
|
|
718
723
|
if (!upload) {
|
|
719
|
-
throw new (0,
|
|
724
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
720
725
|
`The staging server did not return an upload target for ${file.logicalPath}.`,
|
|
721
726
|
void 0,
|
|
722
727
|
"STAGED_FILE_MINT_INCOMPLETE"
|
|
@@ -752,7 +757,7 @@ async function stagePlayFiles(http, files) {
|
|
|
752
757
|
"direct-egress-denied"
|
|
753
758
|
);
|
|
754
759
|
if (!ref) {
|
|
755
|
-
throw new (0,
|
|
760
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
756
761
|
`The staging server did not return an upload target for ${result.fallbackFile.logicalPath}.`,
|
|
757
762
|
void 0,
|
|
758
763
|
"STAGED_FILE_MINT_INCOMPLETE"
|
|
@@ -780,7 +785,7 @@ async function stageFileInputs(input) {
|
|
|
780
785
|
if (localFiles.length === 0) {
|
|
781
786
|
return { inputFile: null, packagedFiles: [] };
|
|
782
787
|
}
|
|
783
|
-
_optionalChain([input, 'access',
|
|
788
|
+
_optionalChain([input, 'access', _42 => _42.onStaging, 'optionalCall', _43 => _43(localFiles.length)]);
|
|
784
789
|
const uploads = await Promise.all(
|
|
785
790
|
localFiles.map(
|
|
786
791
|
async ({ file }) => createStagedFileUpload(file.logicalPath, await file.read(), input.codec)
|
|
@@ -820,7 +825,7 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
|
|
|
820
825
|
} catch (e) {
|
|
821
826
|
}
|
|
822
827
|
if (!response.ok) {
|
|
823
|
-
throw new (0,
|
|
828
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
824
829
|
_chunkXNYIZMNQjs.apiErrorMessage.call(void 0, parsed, response.status),
|
|
825
830
|
response.status,
|
|
826
831
|
_chunkXNYIZMNQjs.apiErrorCodeFromResponse.call(void 0, parsed),
|
|
@@ -835,7 +840,7 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
|
|
|
835
840
|
method: "POST",
|
|
836
841
|
headers: { "content-type": "application/json", ...headers },
|
|
837
842
|
body: JSON.stringify(body),
|
|
838
|
-
..._optionalChain([options, 'optionalAccess',
|
|
843
|
+
..._optionalChain([options, 'optionalAccess', _44 => _44.signal]) ? { signal: options.signal } : {}
|
|
839
844
|
}),
|
|
840
845
|
postFormData: (path, formData) => send(path, {
|
|
841
846
|
method: "POST",
|