deepline 0.3.492 → 0.3.494
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 +11 -5
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +11 -4
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +25 -9
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +36 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/crustdata-company-identify-batching.ts +162 -0
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-sandbox-reaper.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-batching-registry.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/receipt-sql.ts +17 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sandbox-placement-policy.ts +75 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +412 -59
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +38 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-ledger-reconciliation.ts +19 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-operation.ts +165 -12
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/work-receipt-state-machine.ts +358 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-5F5PZB77.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-IN74SDSC.mjs} +7 -7
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-3KVFOKPR.js} +73 -59
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-4A5WXQJK.js} +17 -17
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-OGNIB64W.js → chunk-4ZKZS43N.js} +23 -15
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-65NMOP4T.mjs} +23 -9
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-6DMLWM7L.mjs} +5 -5
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-7B7A36XZ.js} +14 -14
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-AARXOBVD.js} +35 -11
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-BLHQRETG.mjs} +187 -187
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-E47VAVAR.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-C5R3UH5V.mjs} +29 -2
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-CK5MA6S6.js} +32 -32
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-DKKAJ3U2.mjs} +6 -6
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-YNWET57Z.js → chunk-GBICEYUA.js} +13 -13
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-SE23YSBK.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-GSCCDGGT.js} +261 -261
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-H46X7YDU.mjs} +35 -11
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-HHTVRICE.js → chunk-I42EOZKQ.js} +44 -17
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-IPWYDANJ.mjs} +13 -5
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-J2HOVZOE.mjs} +3 -3
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-KSHAFYYG.mjs} +2 -2
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-KVCQL6SP.mjs} +99 -24
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-L2P2XRPO.mjs} +38 -6
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-L4QPBQUX.mjs} +3 -3
- package/dist/cli/{chunk-4RB74KJX.js → chunk-L6KA4ENU.js} +47 -15
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-TLQXN4ZZ.mjs} +12 -12
- package/dist/cli/{chunk-O2FB42N2.js → chunk-USWLB4KV.js} +234 -234
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-WP45PUPW.js} +132 -57
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-ZZD245Z2.js} +10 -10
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-W52WJ6E5.js → db-AARR3WYD.js} +28 -28
- package/dist/cli/{db-OYG27ZBM.mjs → db-QFDXKIVD.mjs} +7 -7
- package/dist/cli/describe-OBVIAC2H.mjs +50 -0
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-IZYUDYTZ.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-KXY7KMZY.js} +9 -9
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +12 -10
- package/dist/cli/getting-started.d.ts +12 -10
- package/dist/cli/getting-started.js +4 -2
- package/dist/cli/getting-started.mjs +3 -1
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-QIFEYQGY.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-GHWZ5AZS.js} +169 -129
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-ZGANC7JY.mjs} +49 -9
- package/dist/cli/{org-JRUKUOUF.mjs → org-CUS42N2T.mjs} +7 -7
- package/dist/cli/{org-E7A6QLBW.js → org-S7JWP264.js} +73 -73
- package/dist/cli/{pages-K76HA473.mjs → pages-IH56T6L6.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-QXRZDEJW.js} +18 -18
- package/dist/cli/{play-UWHNUJRA.js → play-4C5PYS62.js} +661 -566
- package/dist/cli/{play-DG2N66SV.mjs → play-Z65ZFOQH.mjs} +147 -52
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-FSZSJX4Z.mjs} +7 -7
- package/dist/cli/{providers-DZX6TTC6.js → providers-XYQGYF3O.js} +10 -10
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-DHWVE32I.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-ZA25RJT3.js} +13 -13
- package/dist/cli/{run-5UNF4FHG.js → run-5MP6LEHM.js} +45 -44
- package/dist/cli/{run-MOJWQYFQ.mjs → run-WRPPEPLG.mjs} +30 -29
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-A6NVJPKX.mjs} +8 -8
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-PAOUMVXY.mjs} +7 -4
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-YA6TXWGO.js} +9 -6
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-AZYOGH3I.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-ZGF7JOBI.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-LMEZNLBB.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-NO5KXQJF.mjs} +13 -13
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-GCYB4IFS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-XKTZPYYH.js} +57 -57
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-TY4HHIKH.mjs} +10 -10
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-RDTHHYJ3.mjs} +21 -21
- package/dist/cli/{update-SXT4QW7S.mjs → update-BRLLTTCS.mjs} +10 -10
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-F72EVZWM.mjs} +8 -8
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-YHA4WE3K.js} +18 -18
- package/dist/{client-Cb1ej1Vr.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-BRZrY13B.d.ts} +15 -8
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-Dl6xgfLq.d.mts} +15 -8
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +27 -19
- package/dist/index.mjs +16 -8
- package/dist/install-integrity.json +123 -122
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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 +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +2 -2
- package/dist/release.d.ts +2 -2
- 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 +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-7BCLZU6K.js +0 -43
- package/dist/cli/describe-FIXCRO5N.mjs +0 -50
- package/dist/cli/describe-G3O6OUBG.js +0 -50
- package/dist/cli/git-QBAR46NW.js +0 -25
- package/dist/cli/search-3DAEJL6S.js +0 -32
- package/dist/cli/skills-BBLIML5M.js +0 -36
- package/dist/cli/tools-X5SQXUMM.js +0 -57
- package/dist/cli/update-AEJ2ZSZQ.js +0 -34
|
@@ -20,7 +20,7 @@ var _chunkE4CABWXLjs = require('./chunk-E4CABWXL.js');
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkPKV5CD3Wjs = require('./chunk-PKV5CD3W.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkHINVMRGQjs = require('./chunk-HINVMRGQ.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkHINVMRGQjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1033
1033
|
return {
|
|
1034
|
-
[
|
|
1035
|
-
...receivers ? { [
|
|
1034
|
+
[_chunkHINVMRGQjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunkHINVMRGQjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1066,10 +1066,10 @@ function isRecord2(value) {
|
|
|
1066
1066
|
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
1067
1067
|
}
|
|
1068
1068
|
function normalizePlayStatus(raw) {
|
|
1069
|
-
const runPackage =
|
|
1069
|
+
const runPackage = _chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, raw) ? raw : _chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, raw.package) ? raw.package : null;
|
|
1070
1070
|
const packageRun = _optionalChain([runPackage, 'optionalAccess', _57 => _57.run]);
|
|
1071
1071
|
const rawStatus = typeof raw.status === "string" ? raw.status : typeof _optionalChain([packageRun, 'optionalAccess', _58 => _58.status]) === "string" ? packageRun.status : null;
|
|
1072
|
-
const status =
|
|
1072
|
+
const status = _chunkPKV5CD3Wjs.decodePlayRunPublicStatus.call(void 0, rawStatus);
|
|
1073
1073
|
if (!status) {
|
|
1074
1074
|
throw new Error(
|
|
1075
1075
|
`Invalid play run lifecycle status in API response: ${JSON.stringify(rawStatus)}.`
|
|
@@ -1100,10 +1100,10 @@ var PlayClient = class {
|
|
|
1100
1100
|
async startPlayRun(request, options) {
|
|
1101
1101
|
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
1102
1102
|
const headers = runtimeSelectionHeaders(resolved.runtime, this.environment);
|
|
1103
|
-
return
|
|
1103
|
+
return _chunkPKV5CD3Wjs.startPlayRun.call(void 0,
|
|
1104
1104
|
this.http,
|
|
1105
1105
|
resolved.request,
|
|
1106
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1106
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkHINVMRGQjs.SDK_API_MAJOR) } : headers,
|
|
1107
1107
|
options
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -2669,7 +2669,7 @@ var TERMINAL_STATUS_BY_EVENT_TYPE = {
|
|
|
2669
2669
|
|
|
2670
2670
|
// ../play-runtime/run-snapshot-stream.ts
|
|
2671
2671
|
function isTerminalPlayRunLiveStatus(status) {
|
|
2672
|
-
return
|
|
2672
|
+
return _chunkPKV5CD3Wjs.isTerminalPlayRunLifecycleStatus.call(void 0, status);
|
|
2673
2673
|
}
|
|
2674
2674
|
function makeRunStreamEvent(input) {
|
|
2675
2675
|
return {
|
|
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3200
3200
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3201
3201
|
);
|
|
3202
3202
|
}
|
|
3203
|
-
return { [
|
|
3203
|
+
return { [_chunkHINVMRGQjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3204
3204
|
}
|
|
3205
3205
|
function sleep(ms) {
|
|
3206
3206
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3331,7 +3331,7 @@ function playLiveRunStatus(event) {
|
|
|
3331
3331
|
return null;
|
|
3332
3332
|
}
|
|
3333
3333
|
const payload = getPlayLiveEventPayload(event);
|
|
3334
|
-
return _nullishCoalesce(
|
|
3334
|
+
return _nullishCoalesce(_chunkPKV5CD3Wjs.decodePlayRunPublicStatus.call(void 0, payload.status), () => ( (_chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, payload) ? _chunkPKV5CD3Wjs.decodePlayRunPublicStatus.call(void 0, payload.run.status) : null)));
|
|
3335
3335
|
}
|
|
3336
3336
|
function appendPlayLiveLogLines(state, payload) {
|
|
3337
3337
|
const lines = readStringArray(payload.lines);
|
|
@@ -3363,7 +3363,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3363
3363
|
if (event.type !== "play.run.snapshot" && event.type !== "play.run.status" && event.type !== "play.run.final_status") {
|
|
3364
3364
|
return null;
|
|
3365
3365
|
}
|
|
3366
|
-
const runId = typeof payload.runId === "string" && payload.runId ? payload.runId :
|
|
3366
|
+
const runId = typeof payload.runId === "string" && payload.runId ? payload.runId : _chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, payload) ? payload.run.id : state.runId;
|
|
3367
3367
|
const status = _nullishCoalesce(playLiveRunStatus(event), () => ( state.status));
|
|
3368
3368
|
const progressPayload = isRecord3(payload.progress) ? payload.progress : {};
|
|
3369
3369
|
if (event.type === "play.run.final_status" && state.logs.length === 0 && state.lastLogSeq === 0) {
|
|
@@ -3376,7 +3376,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3376
3376
|
}
|
|
3377
3377
|
if ("result" in payload) {
|
|
3378
3378
|
state.result = payload.result;
|
|
3379
|
-
} else if (
|
|
3379
|
+
} else if (_chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, payload)) {
|
|
3380
3380
|
state.result = payload;
|
|
3381
3381
|
}
|
|
3382
3382
|
if (typeof payload.error === "string" && payload.error.trim()) {
|
|
@@ -3389,7 +3389,7 @@ function updatePlayLiveStatusState(state, event) {
|
|
|
3389
3389
|
...payload,
|
|
3390
3390
|
runId,
|
|
3391
3391
|
status,
|
|
3392
|
-
...
|
|
3392
|
+
..._chunkPKV5CD3Wjs.isPlayRunPackage.call(void 0, payload) ? { package: payload, outputs: payload.outputs } : {},
|
|
3393
3393
|
progress: {
|
|
3394
3394
|
...progressRecord,
|
|
3395
3395
|
status: typeof progressRecord.status === "string" ? progressRecord.status : status,
|
|
@@ -3988,7 +3988,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3988
3988
|
*/
|
|
3989
3989
|
async preparePlayRunAdmission(request, options) {
|
|
3990
3990
|
const resolved = resolveStartPlayRunRequest(request, this.environment);
|
|
3991
|
-
const prepared = await
|
|
3991
|
+
const prepared = await _chunkPKV5CD3Wjs.preparePlayRunAdmission.call(void 0,
|
|
3992
3992
|
this.http,
|
|
3993
3993
|
resolved.request,
|
|
3994
3994
|
_optionalChain([options, 'optionalAccess', _180 => _180.onSubmission]),
|
|
@@ -4001,7 +4001,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4001
4001
|
);
|
|
4002
4002
|
const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
|
|
4003
4003
|
...runtimeHeaders,
|
|
4004
|
-
"X-Deepline-API-Major": String(
|
|
4004
|
+
"X-Deepline-API-Major": String(_chunkHINVMRGQjs.SDK_API_MAJOR)
|
|
4005
4005
|
} : runtimeHeaders;
|
|
4006
4006
|
const http = this.http;
|
|
4007
4007
|
let submitted = false;
|
|
@@ -4017,7 +4017,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4017
4017
|
}
|
|
4018
4018
|
if (submitted) {
|
|
4019
4019
|
if (!_optionalChain([options, 'optionalAccess', _182 => _182.callerIntentV2])) {
|
|
4020
|
-
await
|
|
4020
|
+
await _chunkPKV5CD3Wjs.preparePlayRunAdmission.call(void 0,
|
|
4021
4021
|
http,
|
|
4022
4022
|
JSON.parse(bodyJson),
|
|
4023
4023
|
void 0,
|
|
@@ -4027,7 +4027,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
submitted = true;
|
|
4029
4029
|
try {
|
|
4030
|
-
return await
|
|
4030
|
+
return await _chunkPKV5CD3Wjs.submitPreparedPlayRunAdmission.call(void 0,
|
|
4031
4031
|
http,
|
|
4032
4032
|
JSON.parse(bodyJson),
|
|
4033
4033
|
prepared.workflowId,
|
|
@@ -4040,7 +4040,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
);
|
|
4042
4042
|
} catch (error) {
|
|
4043
|
-
if (error instanceof
|
|
4043
|
+
if (error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError || error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
4044
4044
|
submitted = false;
|
|
4045
4045
|
}
|
|
4046
4046
|
throw error;
|
|
@@ -4056,7 +4056,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
if (submitted) {
|
|
4058
4058
|
if (!_optionalChain([options, 'optionalAccess', _190 => _190.callerIntentV2])) {
|
|
4059
|
-
await
|
|
4059
|
+
await _chunkPKV5CD3Wjs.preparePlayRunAdmission.call(void 0,
|
|
4060
4060
|
http,
|
|
4061
4061
|
JSON.parse(bodyJson),
|
|
4062
4062
|
void 0,
|
|
@@ -4065,7 +4065,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4065
4065
|
}
|
|
4066
4066
|
}
|
|
4067
4067
|
submitted = true;
|
|
4068
|
-
const streamPath = _optionalChain([options, 'optionalAccess', _192 => _192.callerIntentV2]) ?
|
|
4068
|
+
const streamPath = _optionalChain([options, 'optionalAccess', _192 => _192.callerIntentV2]) ? _chunkPKV5CD3Wjs.CLI_PLAY_RUN_CALLER_INTENT_V2_START_STREAM_PATH : _optionalChain([options, 'optionalAccess', _193 => _193.cliAdmission]) ? _chunkPKV5CD3Wjs.CLI_PLAY_RUN_START_STREAM_PATH : _chunkPKV5CD3Wjs.PLAY_RUN_START_STREAM_PATH;
|
|
4069
4069
|
let cliAdmissionSupported = false;
|
|
4070
4070
|
try {
|
|
4071
4071
|
for await (const event of http.streamSse(streamPath, {
|
|
@@ -4076,7 +4076,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4076
4076
|
exactUrlOnly: true,
|
|
4077
4077
|
..._optionalChain([options, 'optionalAccess', _195 => _195.cliAdmission]) ? {
|
|
4078
4078
|
onResponse: (response) => {
|
|
4079
|
-
cliAdmissionSupported = response.headers.get(
|
|
4079
|
+
cliAdmissionSupported = response.headers.get(_chunkPKV5CD3Wjs.CLI_PLAY_RUN_SUPPORTED_HEADER) === "true";
|
|
4080
4080
|
}
|
|
4081
4081
|
} : {}
|
|
4082
4082
|
})) {
|
|
@@ -4086,12 +4086,12 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4086
4086
|
if (_optionalChain([options, 'optionalAccess', _196 => _196.cliAdmission]) && !cliAdmissionSupported && error instanceof _chunkDIAWYWT5js.DeeplineError && (error.statusCode === 404 || error.statusCode === 405)) {
|
|
4087
4087
|
if (options.callerIntentV2) {
|
|
4088
4088
|
submitted = false;
|
|
4089
|
-
throw new (0,
|
|
4089
|
+
throw new (0, _chunkPKV5CD3Wjs.CliPlayAdmissionCallerIntentV2UnsupportedError)(
|
|
4090
4090
|
error.statusCode
|
|
4091
4091
|
);
|
|
4092
4092
|
}
|
|
4093
4093
|
submitted = false;
|
|
4094
|
-
throw new (0,
|
|
4094
|
+
throw new (0, _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError)(error.statusCode);
|
|
4095
4095
|
}
|
|
4096
4096
|
throw error;
|
|
4097
4097
|
}
|
|
@@ -4104,7 +4104,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4104
4104
|
* @internal
|
|
4105
4105
|
*/
|
|
4106
4106
|
async prefetchPlayRunAdmissionCapability(options) {
|
|
4107
|
-
return
|
|
4107
|
+
return _chunkPKV5CD3Wjs.readPlayRunAdmissionCapability.call(void 0, this.http, options);
|
|
4108
4108
|
}
|
|
4109
4109
|
/**
|
|
4110
4110
|
* Submit a play run through the legacy event response.
|
|
@@ -4378,7 +4378,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4378
4378
|
* ```
|
|
4379
4379
|
*/
|
|
4380
4380
|
async stagePlayFiles(files) {
|
|
4381
|
-
return
|
|
4381
|
+
return _chunkPKV5CD3Wjs.stagePlayFiles.call(void 0, this.http, files);
|
|
4382
4382
|
}
|
|
4383
4383
|
/**
|
|
4384
4384
|
* Mint short-lived presigned upload targets for staged play files.
|
|
@@ -4387,7 +4387,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4387
4387
|
* For other files, the server returns a presigned PUT URL. Upload the file body to that URL.
|
|
4388
4388
|
*/
|
|
4389
4389
|
async mintStagedPlayFileUploads(files) {
|
|
4390
|
-
return
|
|
4390
|
+
return _chunkPKV5CD3Wjs.mintStagedPlayFileUploads.call(void 0, this.http, files);
|
|
4391
4391
|
}
|
|
4392
4392
|
/**
|
|
4393
4393
|
* Resolve staged play files by content hash without uploading bytes.
|
|
@@ -4498,7 +4498,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
})) {
|
|
4500
4500
|
_optionalChain([options, 'optionalAccess', _234 => _234.onEvent, 'optionalCall', _235 => _235(event)]);
|
|
4501
|
-
if (
|
|
4501
|
+
if (_chunkPKV5CD3Wjs.isTerminalPlayRunLifecycleStatus.call(void 0, playLiveRunStatus(event))) {
|
|
4502
4502
|
terminalObserved = true;
|
|
4503
4503
|
}
|
|
4504
4504
|
}
|
|
@@ -4506,7 +4506,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4506
4506
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)("Run watch aborted.", void 0, "ABORTED");
|
|
4507
4507
|
}
|
|
4508
4508
|
const refreshed = await _asyncNullishCoalesce(terminalStatus, async () => ( await this.getRunStatus(runId)));
|
|
4509
|
-
if (terminalObserved ||
|
|
4509
|
+
if (terminalObserved || _chunkPKV5CD3Wjs.isTerminalPlayRunLifecycleStatus.call(void 0, refreshed.status)) {
|
|
4510
4510
|
return refreshed;
|
|
4511
4511
|
}
|
|
4512
4512
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
@@ -5987,7 +5987,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5987
5987
|
if (event.type !== "play.run.status" || status.status !== previousStatus) {
|
|
5988
5988
|
_optionalChain([options, 'optionalAccess', _336 => _336.onProgress, 'optionalCall', _337 => _337(status)]);
|
|
5989
5989
|
}
|
|
5990
|
-
if (
|
|
5990
|
+
if (_chunkPKV5CD3Wjs.isTerminalPlayRunLifecycleStatus.call(void 0, status.status)) {
|
|
5991
5991
|
terminalObserved = status;
|
|
5992
5992
|
}
|
|
5993
5993
|
}
|
|
@@ -6966,7 +6966,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
6966
6966
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
6967
6967
|
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _400 => _400.timeoutMs]), () => ( 10 * 6e4)));
|
|
6968
6968
|
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _401 => _401.pollIntervalMs]), () => ( 2e3)));
|
|
6969
|
-
const terminal = _optionalChain([options, 'optionalAccess', _402 => _402.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated"]);
|
|
6969
|
+
const terminal = _optionalChain([options, 'optionalAccess', _402 => _402.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set(["converged", "degraded", "deactivated", "billing_suspended"]);
|
|
6970
6970
|
const startedAt = Date.now();
|
|
6971
6971
|
let latest = await this.getMonitorFleet(fleetId);
|
|
6972
6972
|
while (true) {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EG3OSUBO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KVCQL6SP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BLHQRETG.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6DMLWM7L.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1319,7 +1319,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1319
1319
|
stderr.write(
|
|
1320
1320
|
`Deepline SDK/CLI update completed, but the optional local agent-skills refresh failed. Your CLI update succeeded; this does not affect authentication, data, billing, or the command result.
|
|
1321
1321
|
Skills refresh detail: ${detail}
|
|
1322
|
-
To retry with full installer output, run: deepline skills
|
|
1322
|
+
To retry with full installer output, run: deepline skills install
|
|
1323
1323
|
`
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
@@ -391,6 +391,7 @@ function normalizePlayRunStart(raw) {
|
|
|
391
391
|
name: runPackage.run.playName,
|
|
392
392
|
status,
|
|
393
393
|
...runPackage.run.dashboardUrl ? { dashboardUrl: runPackage.run.dashboardUrl } : {},
|
|
394
|
+
...runPackage.run.runUrl ? { runUrl: runPackage.run.runUrl } : {},
|
|
394
395
|
...runPackage.rateLimited ? { rateLimited: runPackage.rateLimited } : {},
|
|
395
396
|
...isTerminalPlayRunLifecycleStatus(status) ? raw.finalStatusView === "full" && raw.runId === runPackage.run.id ? { finalStatus: raw, finalStatusView: "full" } : { finalStatus: runPackage } : {},
|
|
396
397
|
package: runPackage
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -16,7 +16,7 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkBLMB4N63js = require('./chunk-BLMB4N63.js');
|
|
20
20
|
|
|
21
21
|
// src/cli/described-tool.ts
|
|
22
22
|
function isPlayLikeTool(tool) {
|
|
@@ -161,12 +161,12 @@ function schemaNodeAt(schema, path) {
|
|
|
161
161
|
return node;
|
|
162
162
|
}
|
|
163
163
|
var NAMED_VALUE_SHAPES = {
|
|
164
|
-
email_status: { shape: "EmailStatus", schema:
|
|
165
|
-
job_change: { shape: "JobChange", schema:
|
|
164
|
+
email_status: { shape: "EmailStatus", schema: _chunkBLMB4N63js.EMAIL_STATUS_JSON_SCHEMA },
|
|
165
|
+
job_change: { shape: "JobChange", schema: _chunkBLMB4N63js.JOB_CHANGE_JSON_SCHEMA }
|
|
166
166
|
};
|
|
167
167
|
function extractorValueType(name) {
|
|
168
|
-
if (!
|
|
169
|
-
const definition =
|
|
168
|
+
if (!_chunkBLMB4N63js.isDeeplineExtractorTarget.call(void 0, name)) return void 0;
|
|
169
|
+
const definition = _chunkBLMB4N63js.DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS[name];
|
|
170
170
|
if (definition.enum) {
|
|
171
171
|
return {
|
|
172
172
|
type: definition.enum.map((value) => JSON.stringify(value)).join(" | ")
|
|
@@ -174,7 +174,7 @@ function extractorValueType(name) {
|
|
|
174
174
|
}
|
|
175
175
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
176
176
|
if (!named) return { type: "string" };
|
|
177
|
-
const { type, fields } =
|
|
177
|
+
const { type, fields } = _chunkJO5FFSR7js.schemaField.call(void 0, name, named.schema, true);
|
|
178
178
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
179
179
|
}
|
|
180
180
|
function jsonSchemaOf(wrapper) {
|
|
@@ -211,7 +211,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
211
211
|
description,
|
|
212
212
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
213
213
|
guidance: [],
|
|
214
|
-
inputs:
|
|
214
|
+
inputs: _chunkJO5FFSR7js.schemaFields.call(void 0,
|
|
215
215
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
216
216
|
),
|
|
217
217
|
outputs: [],
|
|
@@ -248,11 +248,11 @@ function describedTool(tool, requestedToolId) {
|
|
|
248
248
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
249
249
|
);
|
|
250
250
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
251
|
-
const { fields, ...typed } =
|
|
251
|
+
const { fields, ...typed } = _chunkJO5FFSR7js.schemaField.call(void 0, name, node, true);
|
|
252
252
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
253
253
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
254
254
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
255
|
-
const means = kind === "extractedValues" ?
|
|
255
|
+
const means = kind === "extractedValues" ? _chunkBLMB4N63js.fieldOfName.call(void 0,
|
|
256
256
|
name,
|
|
257
257
|
stringField(_nullishCoalesce(declared[name], () => ( {})), "means") || void 0
|
|
258
258
|
) : void 0;
|
|
@@ -308,13 +308,13 @@ function describedTool(tool, requestedToolId) {
|
|
|
308
308
|
],
|
|
309
309
|
rateLimit: withPlanRateLimit(
|
|
310
310
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
311
|
-
|
|
311
|
+
_chunkJO5FFSR7js.rateLimitSummary.call(void 0,
|
|
312
312
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
313
313
|
)
|
|
314
314
|
),
|
|
315
|
-
inputs:
|
|
315
|
+
inputs: _chunkJO5FFSR7js.schemaFields.call(void 0, inputSchema),
|
|
316
316
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
317
|
-
rawResponse:
|
|
317
|
+
rawResponse: _chunkJO5FFSR7js.schemaFields.call(void 0, outputSchema),
|
|
318
318
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
319
319
|
};
|
|
320
320
|
}
|
|
@@ -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(); } } 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
|
-
var
|
|
3
|
+
var _chunkUSWLB4KVjs = require('./chunk-USWLB4KV.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkUSWLB4KVjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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 _chunkZZD245Z2js = require('./chunk-ZZD245Z2.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 && !_chunkZZD245Z2js.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 (_chunkZZD245Z2js.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-J2HOVZOE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KR2XEI5T.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|