deepline 0.3.492 → 0.3.493
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 +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +6 -0
- 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/work-receipt-state-machine.ts +358 -0
- package/dist/cli/{auth-4I6QY5WX.mjs → auth-3NAY3AST.mjs} +5 -5
- package/dist/cli/auth-KYQLDI6V.js +43 -0
- package/dist/cli/{billing-2H4GOJZY.js → billing-FSB4BBBO.js} +80 -80
- package/dist/cli/{billing-4F6L4JSI.mjs → billing-SBWQCC7B.mjs} +7 -7
- package/dist/cli/{chunk-MQ2LQOAM.mjs → chunk-2BRTYIAH.mjs} +23 -9
- package/dist/cli/{chunk-E47VAVAR.js → chunk-2H4OFVR5.js} +5 -5
- package/dist/cli/{chunk-ZDTPSVGF.js → chunk-2I7VN65H.js} +10 -10
- package/dist/cli/{chunk-LCCFGSV7.mjs → chunk-2IHGVAGT.mjs} +2 -2
- package/dist/cli/{chunk-BDUFZSUL.js → chunk-2NGIBJM2.js} +8 -8
- package/dist/cli/{chunk-OTUT3XTX.mjs → chunk-3QGUWB6E.mjs} +4 -4
- package/dist/cli/{chunk-3BRDP4UP.mjs → chunk-4IJFQV3O.mjs} +1 -1
- package/dist/cli/{chunk-PIC6M4X3.mjs → chunk-4NIGNT7X.mjs} +1 -1
- package/dist/cli/{chunk-YVOYZPMY.mjs → chunk-5DIZ2G74.mjs} +2 -2
- package/dist/cli/{chunk-TKLDKIJU.mjs → chunk-5JPKRDFC.mjs} +7 -5
- package/dist/cli/{chunk-FTXIJTV2.mjs → chunk-5WOPBX3H.mjs} +1 -1
- package/dist/cli/{chunk-R5MP3CIY.mjs → chunk-67ZG7XZV.mjs} +3 -3
- package/dist/cli/{chunk-W4FEX5ZF.js → chunk-7HABWOMB.js} +261 -261
- package/dist/cli/{chunk-FPLN7PHP.js → chunk-AGTXL6LZ.js} +5 -5
- package/dist/cli/{chunk-SE23YSBK.js → chunk-AWMCZAUR.js} +3 -3
- package/dist/cli/{chunk-HHTVRICE.js → chunk-C2MRDPA5.js} +17 -17
- package/dist/cli/{chunk-ONONSV2Q.mjs → chunk-DVQHG6AM.mjs} +1 -0
- package/dist/cli/{chunk-O3K22ZC7.js → chunk-DWJ4RXSA.js} +34 -11
- package/dist/cli/{chunk-6YO4OJPM.mjs → chunk-DYP27IWC.mjs} +99 -24
- package/dist/cli/{chunk-EANFUHRM.mjs → chunk-E5ILCMKQ.mjs} +1 -1
- package/dist/cli/{chunk-Y7QCMOGZ.mjs → chunk-EBAS3UT2.mjs} +6 -6
- package/dist/cli/{chunk-DJOLMS2A.js → chunk-EFO5GVYS.js} +1 -1
- package/dist/cli/{chunk-NF7NUKWF.js → chunk-EYG336YV.js} +132 -57
- package/dist/cli/{chunk-OKHBAAJG.mjs → chunk-GSC35TPZ.mjs} +2 -2
- package/dist/cli/{chunk-MPITIXW4.mjs → chunk-HLM2UFQ5.mjs} +13 -5
- package/dist/cli/{chunk-TVUE4CPW.js → chunk-HTUSTPP4.js} +32 -32
- package/dist/cli/{chunk-GDSZWTJK.mjs → chunk-IJJ6D5WL.mjs} +12 -12
- package/dist/cli/{chunk-3TISK5RQ.js → chunk-IJOHWGPF.js} +6 -6
- package/dist/cli/{chunk-NBL6JMIY.js → chunk-IOBPR2VO.js} +17 -17
- package/dist/cli/{chunk-EFFHRXKB.js → chunk-IOMEJKGK.js} +2 -2
- package/dist/cli/{chunk-A7ZMG2QZ.mjs → chunk-IRDYBMA7.mjs} +34 -11
- package/dist/cli/{chunk-B2JE3HD6.js → chunk-JO2JZUBR.js} +3 -3
- package/dist/cli/{chunk-4IP5MLWU.js → chunk-JO5FFSR7.js} +6 -1
- package/dist/cli/{chunk-O2FB42N2.js → chunk-KCDZWS2B.js} +56 -56
- package/dist/cli/{chunk-CGDUFVNE.mjs → chunk-KGDDQMI7.mjs} +2 -2
- package/dist/cli/{chunk-UUH4GQRL.mjs → chunk-KKSKYZO4.mjs} +1 -1
- package/dist/cli/{chunk-OTDX4A4W.js → chunk-LGTZYI5B.js} +21 -21
- package/dist/cli/{chunk-JJAHWKJ2.js → chunk-MLEUOTEQ.js} +73 -59
- package/dist/cli/{chunk-YOCEY4EI.mjs → chunk-NALJJTPS.mjs} +5 -5
- package/dist/cli/{chunk-HFEJ7JJT.js → chunk-NPNAEPY4.js} +26 -26
- package/dist/cli/{chunk-3IBKEOL4.js → chunk-NWIDPT7H.js} +4 -4
- package/dist/cli/{chunk-AUQQVDAB.js → chunk-PKV5CD3W.js} +1 -0
- package/dist/cli/{chunk-4RB74KJX.js → chunk-QTPS5RLG.js} +15 -15
- package/dist/cli/{chunk-4OLXMJ2L.js → chunk-RLX5ZFNX.js} +8 -6
- package/dist/cli/{chunk-DEJIN4DF.mjs → chunk-SAW3FBCA.mjs} +5 -0
- package/dist/cli/{chunk-RC366IJS.mjs → chunk-SXD2EYAH.mjs} +6 -6
- package/dist/cli/{chunk-YNWET57Z.js → chunk-TIFRRLZT.js} +7 -7
- package/dist/cli/{chunk-ZCKUNXXR.mjs → chunk-TNQOR6XQ.mjs} +1 -1
- package/dist/cli/{chunk-OGNIB64W.js → chunk-UCMY2SO2.js} +23 -15
- package/dist/cli/{chunk-O65HDVA7.mjs → chunk-VFHIYWMC.mjs} +5 -5
- package/dist/cli/{chunk-JHBRJDUC.js → chunk-WCZFCOMZ.js} +7 -7
- package/dist/cli/{chunk-FFOJRD53.mjs → chunk-WTFI7BVH.mjs} +3 -3
- package/dist/cli/{chunk-42Z6VC2Q.js → chunk-XLE7KXE7.js} +2 -2
- package/dist/cli/{chunk-Q3CCCTRQ.js → chunk-XQX476QK.js} +14 -14
- package/dist/cli/{chunk-F6EQWY4E.mjs → chunk-Y3NN2UAF.mjs} +2 -2
- package/dist/cli/{chunk-MJFVF5AW.mjs → chunk-ZQH4TXM2.mjs} +2 -2
- package/dist/cli/{chunk-DVGCPOEA.mjs → chunk-ZVW7EWTC.mjs} +7 -7
- package/dist/cli/{chunk-4GJIJHRQ.mjs → chunk-ZVXB7OU7.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-JGJNDRSA.js → csv-DKYZE2KM.js} +13 -13
- package/dist/cli/{csv-VGXGV7YM.mjs → csv-XR22YQXT.mjs} +4 -4
- package/dist/cli/{db-OYG27ZBM.mjs → db-EOKG36YN.mjs} +7 -7
- package/dist/cli/{db-W52WJ6E5.js → db-RNYRTCMV.js} +28 -28
- package/dist/cli/describe-ICFXOQBW.mjs +50 -0
- package/dist/cli/describe-RS75I33X.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-EVE4KUGL.mjs → executions-3RAOACNS.mjs} +7 -7
- package/dist/cli/{executions-LAJHZGPY.js → executions-OBWPSWH7.js} +9 -9
- package/dist/cli/{feedback-75QB7KVG.mjs → feedback-6EQRVBKF.mjs} +4 -4
- package/dist/cli/{feedback-ZABCN7RT.js → feedback-6GPEUBLF.js} +8 -8
- 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-QIFEYQGY.mjs → git-CVQ24DTR.mjs} +5 -5
- package/dist/cli/git-DEFE4SSB.js +25 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-PNTWBBGY.mjs → legacy-noops-QULJZYNH.mjs} +5 -5
- package/dist/cli/{legacy-noops-2TBIAMCM.js → legacy-noops-XPOATG5V.js} +8 -8
- package/dist/cli/{monitors-LOHUYJEI.mjs → monitors-AFT5YJPZ.mjs} +49 -9
- package/dist/cli/{monitors-UKBOEGBS.js → monitors-OJ4CMREE.js} +169 -129
- package/dist/cli/{org-E7A6QLBW.js → org-RKT52CSL.js} +73 -73
- package/dist/cli/{org-JRUKUOUF.mjs → org-WHKNXANG.mjs} +7 -7
- package/dist/cli/{pages-K76HA473.mjs → pages-EEAQFGVD.mjs} +7 -7
- package/dist/cli/{pages-EUDFFLLD.js → pages-SOE3R667.js} +18 -18
- package/dist/cli/{play-DG2N66SV.mjs → play-LXFWHUBP.mjs} +147 -52
- package/dist/cli/{play-UWHNUJRA.js → play-OTJJ4E4T.js} +661 -566
- package/dist/cli/{providers-DZX6TTC6.js → providers-RU4HIAT3.js} +10 -10
- package/dist/cli/{providers-RUTTPUZD.mjs → providers-U3CPKTMM.mjs} +7 -7
- package/dist/cli/{quickstart-RGZZN2YE.mjs → quickstart-75AO2AJC.mjs} +5 -5
- package/dist/cli/{quickstart-U4NMD7KX.js → quickstart-N72IVA2Y.js} +13 -13
- package/dist/cli/{run-MOJWQYFQ.mjs → run-IGWFL6WH.mjs} +29 -28
- package/dist/cli/{run-5UNF4FHG.js → run-MMYES3IW.js} +44 -43
- package/dist/cli/search-EQURI7SZ.js +32 -0
- package/dist/cli/{search-5B3ZDU7H.mjs → search-FIYESBLZ.mjs} +8 -8
- package/dist/cli/{search-output-VQWJS3FN.js → search-output-2FXN4ZWD.js} +9 -6
- package/dist/cli/{search-output-QS4IWWHA.mjs → search-output-3I5KSW36.mjs} +7 -4
- package/dist/cli/{secrets-S3PJMEAC.js → secrets-HCZQ6JNP.js} +16 -16
- package/dist/cli/{secrets-V5XVDBIS.mjs → secrets-O7IUQ3VT.mjs} +7 -7
- package/dist/cli/{sessions-Y5QMEZ3D.js → sessions-5AYTT4IW.js} +6 -6
- package/dist/cli/{sessions-5V3X24XI.mjs → sessions-KY7A3EZO.mjs} +5 -5
- package/dist/cli/{settings-3U6RRO5F.js → settings-P4VFYWJK.js} +80 -80
- package/dist/cli/{settings-LHZYY5PT.mjs → settings-WSMRR2GS.mjs} +13 -13
- package/dist/cli/{setup-MLLIGO2S.js → setup-J7CA3EJL.js} +57 -57
- package/dist/cli/{setup-AJLWXYAN.mjs → setup-YTVKVQC7.mjs} +13 -13
- package/dist/cli/skills-KKPEGLAR.js +36 -0
- package/dist/cli/{skills-5O2MUWKK.mjs → skills-W5WY764N.mjs} +10 -10
- package/dist/cli/tools-65Y4QTW6.js +57 -0
- package/dist/cli/{tools-PWNMI5CD.mjs → tools-YECI6N3N.mjs} +20 -20
- package/dist/cli/{update-SXT4QW7S.mjs → update-BIFBIEII.mjs} +10 -10
- package/dist/cli/update-WDG7VFOW.js +34 -0
- package/dist/cli/{workflow-3WTF5IYT.js → workflow-D2TUFFH6.js} +18 -18
- package/dist/cli/{workflow-KPRM6ARO.mjs → workflow-XZVDNARC.mjs} +8 -8
- package/dist/{client-Cb1ej1Vr.d.ts → client-BDB_VbE4.d.ts} +1 -1
- package/dist/{client-vWpbLNCB.d.mts → client-CNzJ1LTF.d.mts} +1 -1
- package/dist/{client-core-CoBTvsXG.d.mts → client-core-CSv3DlPD.d.mts} +10 -3
- package/dist/{client-core-BmVs6SP0.d.ts → client-core-xEa9x3pl.d.ts} +10 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +115 -114
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- 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 +2 -2
- package/dist/server.d.ts +2 -2
- 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 _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.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(_chunkNWIDPT7Hjs.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
|
+
[_chunkNWIDPT7Hjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunkNWIDPT7Hjs.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(_chunkNWIDPT7Hjs.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 { [_chunkNWIDPT7Hjs.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(_chunkNWIDPT7Hjs.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) {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-HLM2UFQ5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-3QGUWB6E.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
toolInputFieldsForDisplay,
|
|
26
26
|
toolMetadataJsonForDescribe,
|
|
27
27
|
toolOutputFieldsForDisplay
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5WOPBX3H.mjs";
|
|
29
29
|
import {
|
|
30
30
|
rateLimitQualifier
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SAW3FBCA.mjs";
|
|
32
32
|
import {
|
|
33
33
|
shellQuote
|
|
34
34
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-GSC35TPZ.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-WTFI7BVH.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-NALJJTPS.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-ZVXB7OU7.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-ZVW7EWTC.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-VFHIYWMC.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-4NIGNT7X.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-ICFXOQBW.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -1,11 +1,11 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIOMEJKGKjs = require('./chunk-IOMEJKGK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkKCDZWS2Bjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkIOMEJKGKjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkKCDZWS2Bjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkKCDZWS2Bjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -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 _chunkXLE7KXE7js = require('./chunk-XLE7KXE7.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEYG336YVjs = require('./chunk-EYG336YV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKCDZWS2Bjs = require('./chunk-KCDZWS2B.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJO2JZUBRjs = require('./chunk-JO2JZUBR.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 = _chunkKCDZWS2Bjs.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 ? _chunkXLE7KXE7js.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkXLE7KXE7js.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()]) || _chunkJO2JZUBRjs.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 = _chunkKCDZWS2Bjs.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, () => ( _chunkJO2JZUBRjs.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 _chunkEYG336YVjs.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
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunk2I7VN65Hjs.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
|
+
_chunk2I7VN65Hjs.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}
|
|
@@ -1319,12 +1319,12 @@ 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
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunk2I7VN65Hjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -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 _chunk2I7VN65Hjs = require('./chunk-2I7VN65H.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunk2I7VN65Hjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -170,9 +170,9 @@ Auth in non-interactive shells:
|
|
|
170
170
|
until it happens, so an unattended agent must not call it.
|
|
171
171
|
|
|
172
172
|
Skills:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
skills install reinstalls the Deepline skill files on disk. To see which
|
|
174
|
+
skills are installed without changing anything, run skills install
|
|
175
|
+
--dry-run and read the plan.
|
|
176
176
|
]]
|
|
177
177
|
`
|
|
178
178
|
},
|
|
@@ -1089,7 +1089,8 @@ Input:
|
|
|
1089
1089
|
[[cli:
|
|
1090
1090
|
Output (JSON, printed when the run ends):
|
|
1091
1091
|
run {id, playName, status ("completed", "failed", "stopped")},
|
|
1092
|
-
|
|
1092
|
+
runUrl (the Play page with this run selected; link it when you report the
|
|
1093
|
+
run), dashboardUrl, steps[] with per-step progress, rowOutcomes, warnings,
|
|
1093
1094
|
datasets[] {datasetId, name, storage {schema, table}}, and actions holding
|
|
1094
1095
|
exact follow-up commands: getRunCmd, getFullRunCmd, getBillingCmd,
|
|
1095
1096
|
getLogsCmd, exportDatasetCmds[], queryTableSqlCmds[]. Rows are not in this
|
|
@@ -1102,7 +1103,7 @@ Output (JSON, printed when the run ends):
|
|
|
1102
1103
|
[[mcp:
|
|
1103
1104
|
Output:
|
|
1104
1105
|
The run package deepline_get_run returns, once the run ends: run {id,
|
|
1105
|
-
playName, status, dashboardUrl}, steps[] with per-step progress,
|
|
1106
|
+
playName, status, runUrl, dashboardUrl}, steps[] with per-step progress,
|
|
1106
1107
|
rowOutcomes, warnings, datasets[] {tableNamespace, sqlQualifiedTableName,
|
|
1107
1108
|
actions}, and next {inspect, full, billing, logs}, each naming the MCP call
|
|
1108
1109
|
for that follow-up. Pass a dataset's tableNamespace as table_namespace to
|
|
@@ -1322,14 +1323,15 @@ When:
|
|
|
1322
1323
|
Input:
|
|
1323
1324
|
The run id. --full resolves a full-only result and adds diagnostics with
|
|
1324
1325
|
billing and timeline (large). --log-failed attaches the failure log window.
|
|
1326
|
+
--web opens the run page in a browser; --web-url prints only its URL.
|
|
1325
1327
|
--input prints the original input (may contain customer data). --json
|
|
1326
1328
|
prints JSON; --json run.status,datasets.name selects fields.
|
|
1327
1329
|
To parse the output (also with --full), add --json; stdout is then one JSON document.
|
|
1328
1330
|
]]
|
|
1329
1331
|
[[cli:
|
|
1330
1332
|
Output (JSON):
|
|
1331
|
-
kind "run_overview",
|
|
1332
|
-
durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1333
|
+
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1334
|
+
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1333
1335
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1334
1336
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1335
1337
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1341,9 +1343,9 @@ Output (JSON):
|
|
|
1341
1343
|
]]
|
|
1342
1344
|
[[mcp:
|
|
1343
1345
|
Output:
|
|
1344
|
-
The run package (kind "play_run"): run {id, playName, status
|
|
1345
|
-
rowOutcomes, warnings, datasets[] {tableNamespace,
|
|
1346
|
-
actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1346
|
+
The run package (kind "play_run"): run {id, playName, status, runUrl},
|
|
1347
|
+
steps[], rowOutcomes, warnings, datasets[] {tableNamespace,
|
|
1348
|
+
sqlQualifiedTableName, actions}, and next.*.command, each naming the MCP call for a follow-up.
|
|
1347
1349
|
With full: true the package is under package, beside the diagnostics.
|
|
1348
1350
|
]]
|
|
1349
1351
|
Cost:
|
|
@@ -1875,6 +1877,27 @@ Cost:
|
|
|
1875
1877
|
},
|
|
1876
1878
|
skills: {
|
|
1877
1879
|
core: `
|
|
1880
|
+
Purpose:
|
|
1881
|
+
Read the Deepline agent skills (deepline-gtm and its siblings) without
|
|
1882
|
+
installing anything.
|
|
1883
|
+
When:
|
|
1884
|
+
Before starting GTM work, read the skill: skills show prints
|
|
1885
|
+
deepline-gtm, skills list names every skill, skills show <name> prints one.
|
|
1886
|
+
[[cli:
|
|
1887
|
+
Input:
|
|
1888
|
+
list | show [name] | install; --json. With no verb, prints this help.
|
|
1889
|
+
]]
|
|
1890
|
+
Output:
|
|
1891
|
+
list prints one name and description per line; show prints the skill's
|
|
1892
|
+
SKILL.md as markdown. Neither writes anything.
|
|
1893
|
+
Cost:
|
|
1894
|
+
Free.
|
|
1895
|
+
Avoid:
|
|
1896
|
+
To install or refresh skill files use [[skills install]].
|
|
1897
|
+
`
|
|
1898
|
+
},
|
|
1899
|
+
"skills install": {
|
|
1900
|
+
core: `
|
|
1878
1901
|
Purpose:
|
|
1879
1902
|
Reinstall the Deepline agent skill files (deepline-gtm and its siblings)
|
|
1880
1903
|
from the current release. It writes to disk.
|
|
@@ -1891,7 +1914,7 @@ Output (JSON):
|
|
|
1891
1914
|
Cost:
|
|
1892
1915
|
Free.
|
|
1893
1916
|
Avoid:
|
|
1894
|
-
|
|
1917
|
+
Without --dry-run it replaces skill files; in a sandbox or a task that said
|
|
1895
1918
|
not to change skills, use [[--dry-run]].
|
|
1896
1919
|
`
|
|
1897
1920
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkNWIDPT7Hjs = require('./chunk-NWIDPT7H.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkNWIDPT7Hjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkNWIDPT7Hjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|