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
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
stagePlayFiles,
|
|
21
21
|
startPlayRun,
|
|
22
22
|
submitPreparedPlayRunAdmission
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-Z2XA6YU4.mjs";
|
|
24
24
|
import {
|
|
25
25
|
describePlayDetail,
|
|
26
26
|
describePlayListItem
|
|
@@ -31,16 +31,16 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-YRLAUGQY.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CQBIO6HW.mjs";
|
|
38
38
|
import {
|
|
39
39
|
DeeplineError,
|
|
40
40
|
TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
|
|
41
41
|
TOOL_EXECUTION_ERROR_SCHEMA_VERSION,
|
|
42
42
|
ToolExecutionError
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JL2OTMSG.mjs";
|
|
44
44
|
|
|
45
45
|
// src/pagination.ts
|
|
46
46
|
async function* iterateCursorPages(fetchPage) {
|
|
@@ -3537,7 +3537,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3537
3537
|
usageEvent: (requestId) => this.getBillingUsageEvent(requestId),
|
|
3538
3538
|
usageEvents: (options) => this.getBillingUsageEvents(options),
|
|
3539
3539
|
usage: (options) => this.getBillingUsage(options),
|
|
3540
|
-
targetPlans: () => this.getTargetBillingPlans(),
|
|
3540
|
+
targetPlans: (options) => this.getTargetBillingPlans(options),
|
|
3541
3541
|
targetStatus: () => this.getTargetBillingStatus(),
|
|
3542
3542
|
autoRecharge: {
|
|
3543
3543
|
get: () => this.getTargetAutoRecharge(),
|
|
@@ -3552,6 +3552,37 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3552
3552
|
),
|
|
3553
3553
|
update: (options) => this.updateTargetAutoRecharge(options)
|
|
3554
3554
|
},
|
|
3555
|
+
cards: {
|
|
3556
|
+
list: (options) => {
|
|
3557
|
+
const query = new URLSearchParams();
|
|
3558
|
+
if (options?.limit !== void 0) {
|
|
3559
|
+
query.set("limit", String(options.limit));
|
|
3560
|
+
}
|
|
3561
|
+
if (options?.cursor) query.set("cursor", options.cursor);
|
|
3562
|
+
const suffix = query.size > 0 ? `?${query.toString()}` : "";
|
|
3563
|
+
return this.http.get(
|
|
3564
|
+
`/api/v2/billing/payment-methods${suffix}`
|
|
3565
|
+
);
|
|
3566
|
+
},
|
|
3567
|
+
add: (options) => this.http.post(
|
|
3568
|
+
"/api/v2/billing/payment-method/setup",
|
|
3569
|
+
{ make_default: options?.makeDefault === true }
|
|
3570
|
+
),
|
|
3571
|
+
setDefault: (options) => this.http.post(
|
|
3572
|
+
"/api/v2/billing/payment-methods/default",
|
|
3573
|
+
{
|
|
3574
|
+
card_id: options.cardId,
|
|
3575
|
+
change_id: options.changeId ?? globalThis.crypto.randomUUID()
|
|
3576
|
+
}
|
|
3577
|
+
),
|
|
3578
|
+
remove: (options) => this.http.post(
|
|
3579
|
+
"/api/v2/billing/payment-methods/remove",
|
|
3580
|
+
{
|
|
3581
|
+
card_id: options.cardId,
|
|
3582
|
+
change_id: options.changeId ?? globalThis.crypto.randomUUID()
|
|
3583
|
+
}
|
|
3584
|
+
)
|
|
3585
|
+
},
|
|
3555
3586
|
purchaseCredits: (options) => this.purchaseTargetBillingCredits(options),
|
|
3556
3587
|
recoverCreditPurchase: (options) => this.recoverTargetBillingCreditPurchase(options),
|
|
3557
3588
|
transitionPlan: (options) => this.transitionTargetBillingPlan(options),
|
|
@@ -3677,75 +3708,6 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3677
3708
|
// ——————————————————————————————————————————————————————————
|
|
3678
3709
|
// Secrets
|
|
3679
3710
|
// ——————————————————————————————————————————————————————————
|
|
3680
|
-
/** List this workspace's hosted pages, newest update first. */
|
|
3681
|
-
async listPages(input) {
|
|
3682
|
-
const params = new URLSearchParams();
|
|
3683
|
-
if (input?.cursor) params.set("cursor", input.cursor);
|
|
3684
|
-
if (input?.limit) params.set("limit", String(input.limit));
|
|
3685
|
-
const query = params.size > 0 ? `?${params}` : "";
|
|
3686
|
-
return await this.http.get(`/api/v2/pages${query}`);
|
|
3687
|
-
}
|
|
3688
|
-
/** Read one hosted page's metadata. */
|
|
3689
|
-
async getPage(name) {
|
|
3690
|
-
return await this.http.get(
|
|
3691
|
-
`/api/v2/pages/${encodeURIComponent(name)}`
|
|
3692
|
-
);
|
|
3693
|
-
}
|
|
3694
|
-
/** Replace a page's whole content. `public` says who the write is for. */
|
|
3695
|
-
async writePage(name, input) {
|
|
3696
|
-
return await this.http.put(
|
|
3697
|
-
`/api/v2/pages/${encodeURIComponent(name)}`,
|
|
3698
|
-
{
|
|
3699
|
-
public: input.public,
|
|
3700
|
-
content_base64: input.contentBase64,
|
|
3701
|
-
content_type: input.contentType,
|
|
3702
|
-
description: input.description
|
|
3703
|
-
}
|
|
3704
|
-
);
|
|
3705
|
-
}
|
|
3706
|
-
/** Delete a page, its content, and its links. Safe to repeat. */
|
|
3707
|
-
async deletePage(name) {
|
|
3708
|
-
return await this.http.delete(
|
|
3709
|
-
`/api/v2/pages/${encodeURIComponent(name)}`
|
|
3710
|
-
);
|
|
3711
|
-
}
|
|
3712
|
-
/** Replace the origins allowed to read this page in a browser when public. */
|
|
3713
|
-
async setPageAllowedOrigins(name, origins) {
|
|
3714
|
-
return await this.http.put(
|
|
3715
|
-
`/api/v2/pages/${encodeURIComponent(name)}/origins`,
|
|
3716
|
-
{ allowed_origins: origins }
|
|
3717
|
-
);
|
|
3718
|
-
}
|
|
3719
|
-
/** The explicit way to change who can see an existing page. */
|
|
3720
|
-
async setPageVisibility(name, isPublic) {
|
|
3721
|
-
return await this.http.post(
|
|
3722
|
-
`/api/v2/pages/${encodeURIComponent(name)}/visibility`,
|
|
3723
|
-
{ public: isPublic }
|
|
3724
|
-
);
|
|
3725
|
-
}
|
|
3726
|
-
/** List a page's links. Their URLs cannot be shown again. */
|
|
3727
|
-
async listPageLinks(name) {
|
|
3728
|
-
return await this.http.get(
|
|
3729
|
-
`/api/v2/pages/${encodeURIComponent(name)}/links`
|
|
3730
|
-
);
|
|
3731
|
-
}
|
|
3732
|
-
/** The returned URL is shown once. Either expiry or `permanent` is required. */
|
|
3733
|
-
async createPageLink(name, input) {
|
|
3734
|
-
return await this.http.post(
|
|
3735
|
-
`/api/v2/pages/${encodeURIComponent(name)}/links`,
|
|
3736
|
-
{
|
|
3737
|
-
expires_in_seconds: input.expiresInSeconds,
|
|
3738
|
-
permanent: input.permanent,
|
|
3739
|
-
label: input.label
|
|
3740
|
-
}
|
|
3741
|
-
);
|
|
3742
|
-
}
|
|
3743
|
-
/** Stop a link working. Safe to repeat. */
|
|
3744
|
-
async revokePageLink(name, linkId) {
|
|
3745
|
-
return await this.http.delete(
|
|
3746
|
-
`/api/v2/pages/${encodeURIComponent(name)}/links/${encodeURIComponent(linkId)}`
|
|
3747
|
-
);
|
|
3748
|
-
}
|
|
3749
3711
|
// ——————————————————————————————————————————————————————————
|
|
3750
3712
|
// Views
|
|
3751
3713
|
// ——————————————————————————————————————————————————————————
|
|
@@ -3781,6 +3743,32 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3781
3743
|
{ access }
|
|
3782
3744
|
);
|
|
3783
3745
|
}
|
|
3746
|
+
/** The view's share links, newest first. Their tokens are never returned. */
|
|
3747
|
+
async listViewShareLinks(id) {
|
|
3748
|
+
return await this.http.get(
|
|
3749
|
+
`/api/v2/views/${encodeURIComponent(id)}/links`
|
|
3750
|
+
);
|
|
3751
|
+
}
|
|
3752
|
+
/**
|
|
3753
|
+
* Create a share link. `url` in the result is the only copy of the link;
|
|
3754
|
+
* keep it. With `emails`, Deepline also emails it to those people, except
|
|
3755
|
+
* `not_emailed` addresses that bounced or complained before. One
|
|
3756
|
+
* Idempotency-Key per call, so a retried request returns the same link
|
|
3757
|
+
* (with `url: null`) instead of making and emailing a second one.
|
|
3758
|
+
*/
|
|
3759
|
+
async createViewShareLink(id, input) {
|
|
3760
|
+
return await this.http.post(
|
|
3761
|
+
`/api/v2/views/${encodeURIComponent(id)}/links`,
|
|
3762
|
+
input,
|
|
3763
|
+
{ "Idempotency-Key": `view-link-${globalThis.crypto.randomUUID()}` }
|
|
3764
|
+
);
|
|
3765
|
+
}
|
|
3766
|
+
/** Revoke a share link. It stops opening the view at once. */
|
|
3767
|
+
async revokeViewShareLink(id, linkId) {
|
|
3768
|
+
return await this.http.delete(
|
|
3769
|
+
`/api/v2/views/${encodeURIComponent(id)}/links/${encodeURIComponent(linkId)}`
|
|
3770
|
+
);
|
|
3771
|
+
}
|
|
3784
3772
|
/** Every run of the view's Play, newest first. */
|
|
3785
3773
|
async listViewRuns(id, input) {
|
|
3786
3774
|
const params = new URLSearchParams();
|
|
@@ -5509,6 +5497,22 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5509
5497
|
`/api/v2/plays/${encodeURIComponent(playName)}/settings`
|
|
5510
5498
|
);
|
|
5511
5499
|
}
|
|
5500
|
+
/** Register an editing attempt so the author's open working canvas can show a rejected save. */
|
|
5501
|
+
async beginWorkingPlaySave(playName) {
|
|
5502
|
+
return this.http.post(
|
|
5503
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5504
|
+
{ action: "begin" },
|
|
5505
|
+
void 0,
|
|
5506
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
5507
|
+
);
|
|
5508
|
+
}
|
|
5509
|
+
/** Report a save outcome for that specific editing attempt. */
|
|
5510
|
+
async finishWorkingPlaySave(playName, attemptId, action) {
|
|
5511
|
+
return this.http.post(
|
|
5512
|
+
`/api/v2/plays/${encodeURIComponent(playName)}/pipeline`,
|
|
5513
|
+
{ action, attemptId }
|
|
5514
|
+
);
|
|
5515
|
+
}
|
|
5512
5516
|
/** Retry-safe field patch; omitted fields retain their current value. */
|
|
5513
5517
|
async updatePlaySettings(playName, patch) {
|
|
5514
5518
|
return this.http.patch(
|
|
@@ -5554,6 +5558,13 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5554
5558
|
async listWorkspaceIntegrationConnections() {
|
|
5555
5559
|
return this.http.get("/api/v2/integrations/connections");
|
|
5556
5560
|
}
|
|
5561
|
+
/** List workspace members' personal HubSpot connection status as an admin. */
|
|
5562
|
+
async listPersonalHubSpotMembers(cursor) {
|
|
5563
|
+
const path = "/api/v2/integrations/connections/hubspot-members";
|
|
5564
|
+
return this.http.get(
|
|
5565
|
+
cursor ? `${path}?${new URLSearchParams({ cursor })}` : path
|
|
5566
|
+
);
|
|
5567
|
+
}
|
|
5557
5568
|
/** Manage a workspace-owned OAuth connection. Consent completes in the browser. */
|
|
5558
5569
|
async manageWorkspaceIntegrationConnection(input) {
|
|
5559
5570
|
return this.http.post("/api/v2/integrations/connections", {
|
|
@@ -6439,8 +6450,10 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6439
6450
|
);
|
|
6440
6451
|
}
|
|
6441
6452
|
/** List the reviewed target plans and whether new acquisition is enabled. */
|
|
6442
|
-
async getTargetBillingPlans() {
|
|
6443
|
-
return this.http.get(
|
|
6453
|
+
async getTargetBillingPlans(options) {
|
|
6454
|
+
return this.http.get(
|
|
6455
|
+
options?.promoCode ? `/api/v2/billing/plans?promo_code=${encodeURIComponent(options.promoCode)}` : "/api/v2/billing/plans"
|
|
6456
|
+
);
|
|
6444
6457
|
}
|
|
6445
6458
|
/** Read the workspace's normalized target plan, payment, and balance state. */
|
|
6446
6459
|
async getTargetBillingStatus() {
|
|
@@ -6531,7 +6544,8 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
6531
6544
|
{
|
|
6532
6545
|
action: options.action,
|
|
6533
6546
|
...options.action === "start_or_change" && options.billingEmail ? { billing_email: options.billingEmail } : {},
|
|
6534
|
-
...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {}
|
|
6547
|
+
...options.targetPlanSku ? { target_plan_sku: options.targetPlanSku } : {},
|
|
6548
|
+
...options.action === "start_or_change" && options.promoCode ? { promo_code: options.promoCode } : {}
|
|
6535
6549
|
},
|
|
6536
6550
|
{ "Idempotency-Key": idempotencyKey },
|
|
6537
6551
|
{ maxRetries: 0, exactUrlOnly: true }
|
|
@@ -7112,6 +7126,13 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7112
7126
|
"Idempotency-Key": idempotencyKey?.trim() || this.monitorFleetIdempotencyKey(operation)
|
|
7113
7127
|
};
|
|
7114
7128
|
}
|
|
7129
|
+
/**
|
|
7130
|
+
* Fleet writes plan against the whole fleet inside one request, so they
|
|
7131
|
+
* wait as long as the server lets those routes run (300 s) plus transit,
|
|
7132
|
+
* not the client's default. A ten-thousand-member deploy took 62 s; giving
|
|
7133
|
+
* up at 60 s reported a timeout for a plan the server then committed.
|
|
7134
|
+
*/
|
|
7135
|
+
static MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4;
|
|
7115
7136
|
monitorFleetPath(fleetId) {
|
|
7116
7137
|
return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
|
|
7117
7138
|
}
|
|
@@ -7137,6 +7158,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7137
7158
|
{
|
|
7138
7159
|
method: "PUT",
|
|
7139
7160
|
body,
|
|
7161
|
+
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7140
7162
|
headers: this.monitorFleetHeaders("sync", options?.idempotencyKey),
|
|
7141
7163
|
maxRetries: 0,
|
|
7142
7164
|
exactUrlOnly: true
|
|
@@ -7200,6 +7222,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7200
7222
|
{
|
|
7201
7223
|
method: "DELETE",
|
|
7202
7224
|
body: options?.dryRun ? { dry_run: true } : {},
|
|
7225
|
+
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7203
7226
|
headers: this.monitorFleetHeaders(
|
|
7204
7227
|
"deactivate",
|
|
7205
7228
|
options?.idempotencyKey
|
|
@@ -7215,6 +7238,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7215
7238
|
{
|
|
7216
7239
|
method: "POST",
|
|
7217
7240
|
body: {},
|
|
7241
|
+
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7218
7242
|
headers: this.monitorFleetHeaders(
|
|
7219
7243
|
"reactivate",
|
|
7220
7244
|
options?.idempotencyKey
|
|
@@ -368,4 +368,5 @@ function deserializeToolExecutionFailure(message, value, acceptedSchemaVersion)
|
|
|
368
368
|
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
|
|
371
|
+
|
|
372
|
+
exports.TOOL_EXECUTION_ERROR_SCHEMA_VERSION = TOOL_EXECUTION_ERROR_SCHEMA_VERSION; exports.SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS = SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS; exports.TOOL_EXECUTION_ERROR_SCHEMA_HEADER = TOOL_EXECUTION_ERROR_SCHEMA_HEADER; exports.readToolUpstreamResponse = readToolUpstreamResponse; exports.attachToolUpstreamResponse = attachToolUpstreamResponse; exports.DeeplineError = DeeplineError; exports.ToolExecutionError = ToolExecutionError; exports.brandAsToolExecutionError = brandAsToolExecutionError; exports.isProviderTransientFailure = isProviderTransientFailure; exports.ProviderTransientError = ProviderTransientError; exports.getProviderUnavailableReason = getProviderUnavailableReason; exports.isProviderUnavailable = isProviderUnavailable; exports.isProviderWaterfallUnavailableError = isProviderWaterfallUnavailableError; exports.brandAsProviderTransientError = brandAsProviderTransientError; exports.normalizeToolExecutionFailure = normalizeToolExecutionFailure; exports.serializeToolExecutionFailure = serializeToolExecutionFailure; exports.deserializeToolExecutionFailure = deserializeToolExecutionFailure;
|
|
@@ -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",
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.536",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -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",
|