deepline 0.3.547 → 0.3.549
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 +93 -11
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/plays/check-local-play-graph.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/action-actor.ts +203 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +20 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +33 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +19 -3
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-failure-codes.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +83 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +93 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +98 -1
- package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +636 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
- package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
- package/dist/cli/auth-UVEZIP3H.js +43 -0
- package/dist/cli/{auth-WJEY4IDX.mjs → auth-YENF525S.mjs} +5 -5
- package/dist/cli/{billing-IJITDDRQ.js → billing-52GAHIDZ.js} +95 -95
- package/dist/cli/{billing-PHJUDYF3.mjs → billing-XPXB27G7.mjs} +9 -9
- package/dist/cli/{chunk-2HPTLBNB.js → chunk-3IUQNHIG.js} +3 -3
- package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-4AUV5QJF.mjs} +5 -5
- package/dist/cli/{chunk-GZFZZQL4.js → chunk-4DJNXAPH.js} +75 -37
- package/dist/cli/{chunk-DZC7LMYM.js → chunk-4HSSPT73.js} +6 -6
- package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-4QUWXUUJ.mjs} +35 -6
- package/dist/cli/{chunk-SAJWYN4B.js → chunk-5622PYAP.js} +4 -4
- package/dist/cli/{chunk-PBMO36BP.mjs → chunk-5CXE22BI.mjs} +2 -2
- package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-5T37KQNG.mjs} +5 -5
- package/dist/cli/{chunk-YURGAKI3.js → chunk-7FY7AHR6.js} +2 -2
- package/dist/cli/{chunk-PVQCX6KQ.js → chunk-ADWMIZCB.js} +67 -9
- package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-ANOTB6V3.mjs} +4 -4
- package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-AZSVDAXT.mjs} +5 -5
- package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-BDOLPGHD.mjs} +2 -2
- package/dist/cli/{chunk-N63U5CRG.js → chunk-BDUZJX4V.js} +26 -26
- package/dist/cli/{chunk-HFIFKP3A.js → chunk-BPBPY42E.js} +5 -5
- package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-CX4KGWCH.mjs} +3 -3
- package/dist/cli/{chunk-REAFIEV5.js → chunk-CXFOYRI4.js} +99 -99
- package/dist/cli/{chunk-RXRC2COC.mjs → chunk-DCTEH6N5.mjs} +2 -2
- package/dist/cli/{chunk-ABLTVG3J.js → chunk-DIRLEJJX.js} +41 -41
- package/dist/cli/{chunk-VNOQEDVC.js → chunk-ETLEPHLT.js} +7 -7
- package/dist/cli/{chunk-QU3K3IY6.js → chunk-HPSCRVTM.js} +12 -12
- package/dist/cli/{chunk-MBQELFL7.js → chunk-HWCIU3KY.js} +22 -22
- package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-J6FINSAK.mjs} +49 -11
- package/dist/cli/{chunk-K3GMDSUX.js → chunk-KBMBNUUW.js} +5 -5
- package/dist/cli/{chunk-D6OIEH47.js → chunk-KTZ3VU6S.js} +5 -5
- package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-L6UMWAAY.mjs} +1 -1
- package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-LMFTDDAM.mjs} +2 -2
- package/dist/cli/{chunk-56MEAGWA.mjs → chunk-LP2VNGG3.mjs} +2 -2
- package/dist/cli/{chunk-RMCCB3XY.mjs → chunk-MAE3AKDR.mjs} +67 -9
- package/dist/cli/{chunk-L5J6UJ2X.js → chunk-NVALIJQS.js} +15 -15
- package/dist/cli/{chunk-MO7TGNXB.js → chunk-OWX4AAJ4.js} +13 -13
- package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-PLAJ6HPD.mjs} +2 -2
- package/dist/cli/{chunk-G6KW764N.mjs → chunk-PLJCY35C.mjs} +1 -1
- package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-PQX4WTBY.mjs} +1 -1
- package/dist/cli/{chunk-GJOGFWX3.js → chunk-QGKX2WBZ.js} +52 -23
- package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-QIZBUY2N.mjs} +4 -4
- package/dist/cli/{chunk-E2OIYPB4.js → chunk-QUELC3B2.js} +10 -10
- package/dist/cli/{chunk-OVYXYTEP.js → chunk-RMKRZJOS.js} +16 -16
- package/dist/cli/{chunk-GIGAYLY6.js → chunk-SVNAP2QI.js} +9 -9
- package/dist/cli/{chunk-2AHY47SI.js → chunk-TYOAOSDL.js} +3 -3
- package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-U6KHWIAO.mjs} +1 -1
- package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-UGVXHT62.mjs} +1 -1
- package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-V5WPYOAE.mjs} +5 -5
- package/dist/cli/{chunk-FFBXLFKV.js → chunk-V7WMNX4R.js} +1 -1
- package/dist/cli/{chunk-NBYFQZ6O.js → chunk-VLAJGF27.js} +2 -2
- package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-W77LBYF3.mjs} +11 -11
- package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-X4RGDE4J.mjs} +1 -1
- package/dist/cli/{chunk-IVFFCAV2.js → chunk-XPYCNA43.js} +44 -44
- package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XS72HELO.mjs} +1 -1
- package/dist/cli/{chunk-LMLSOHTU.js → chunk-Y5MDCPWA.js} +53 -53
- package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-Y5SKYU5X.mjs} +3 -3
- package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-YX7BX2FA.mjs} +2 -2
- package/dist/cli/{chunk-YVKLF7RW.js → chunk-YZTS3XA7.js} +2 -2
- package/dist/cli/{chunk-IGAK22XO.mjs → chunk-Z3DKJOUL.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-74AFW3BD.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-OYSLW55L.mjs} +6 -6
- package/dist/cli/{csv-X6D4ZELE.js → csv-FRO3UFMQ.js} +13 -13
- package/dist/cli/{csv-VAHQHYYV.mjs → csv-TFCTUYF2.mjs} +4 -4
- package/dist/cli/{db-4G4S2VOV.mjs → db-NHVZBT2H.mjs} +6 -6
- package/dist/cli/{db-YA5ZGVEX.js → db-SNFNRVZJ.js} +27 -27
- package/dist/cli/describe-2JCOC4AK.js +50 -0
- package/dist/cli/{describe-EVXEM2S6.mjs → describe-OVFPRJJL.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-HR6CTN5M.mjs → executions-HWMH2LTC.mjs} +6 -6
- package/dist/cli/{executions-5YC7ABF6.js → executions-RZLKKPZV.js} +8 -8
- package/dist/cli/{feedback-MJHSYLFF.js → feedback-3D5OROCI.js} +14 -14
- package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-WD4JVF77.mjs} +6 -6
- package/dist/cli/git-GCCPCUWJ.js +25 -0
- package/dist/cli/{git-NPFF6QUS.mjs → git-RYUKBCUZ.mjs} +5 -5
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-KJPFCEXL.mjs} +7 -7
- package/dist/cli/{integrations-YPHFI77G.js → integrations-Y7OK23DW.js} +15 -15
- package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-2PU2ZVEP.mjs} +6 -6
- package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-G7ZY7K3K.js} +9 -9
- package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-D7F2RSOI.mjs} +4 -4
- package/dist/cli/{mcp-YTYTW67G.js → mcp-GILBYX72.js} +24 -24
- package/dist/cli/{monitors-73DQKCU7.mjs → monitors-IK5KXY2H.mjs} +32 -8
- package/dist/cli/{monitors-SA6ILD6Z.js → monitors-OXNHOT3C.js} +125 -101
- package/dist/cli/{org-WVQRB2KX.mjs → org-L5D7EISU.mjs} +6 -6
- package/dist/cli/{org-X7ELDV7B.js → org-OYM3UNTP.js} +88 -88
- package/dist/cli/{play-QI6V2EUQ.mjs → play-PK6QO3WX.mjs} +837 -290
- package/dist/cli/{play-QTYOAJPE.js → play-YK22QPYO.js} +1423 -876
- package/dist/cli/{providers-XXFLVREV.js → providers-5CYP7P4N.js} +9 -9
- package/dist/cli/{providers-DPVMVDS4.mjs → providers-Z6MNJDCG.mjs} +6 -6
- package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-2I73XQXB.mjs} +4 -4
- package/dist/cli/{quickstart-33ISXQJU.js → quickstart-2YKETYJY.js} +6 -6
- package/dist/cli/{run-J6FCAKQC.mjs → run-KGQ6TUBB.mjs} +23 -23
- package/dist/cli/{run-BWHZXLTD.js → run-YVSEAVE5.js} +43 -43
- package/dist/cli/{search-Z3UU3WBB.mjs → search-V2HPN6FU.mjs} +7 -7
- package/dist/cli/search-YG3UIZ6A.js +32 -0
- package/dist/cli/{search-output-YIPV74ME.js → search-output-BUSANFRN.js} +6 -6
- package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-OCTOSDEO.mjs} +4 -4
- package/dist/cli/{secrets-UXRJCEN4.js → secrets-VDKTHCVB.js} +15 -15
- package/dist/cli/{secrets-YZZN2WST.mjs → secrets-WZGRBWI5.mjs} +6 -6
- package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-5DTN55DZ.mjs} +6 -6
- package/dist/cli/sessions-NSPT6LHT.js +22 -0
- package/dist/cli/{settings-LAFYMILP.js → settings-A7VSNOLI.js} +85 -85
- package/dist/cli/{settings-ZP2LSVNM.mjs → settings-BK5FPQ3X.mjs} +12 -12
- package/dist/cli/{setup-WEQAQSYC.mjs → setup-LLQVPZTP.mjs} +9 -9
- package/dist/cli/{setup-4AL3XYM5.js → setup-NV27CYQ5.js} +49 -49
- package/dist/cli/{skills-NQH4HFW2.mjs → skills-IV6HK4XA.mjs} +7 -7
- package/dist/cli/skills-UA5E4DA3.js +36 -0
- package/dist/cli/{tools-CXK2GSI4.mjs → tools-4FKPCRD7.mjs} +17 -17
- package/dist/cli/tools-NJVPAG37.js +57 -0
- package/dist/cli/update-DKX27XZB.js +34 -0
- package/dist/cli/{update-3ROF3Z75.mjs → update-MH5M746E.mjs} +9 -9
- package/dist/cli/{views-XJFO5CEH.js → views-JW44TCGL.js} +21 -21
- package/dist/cli/{views-AOUHVGV2.mjs → views-KXC4JDT7.mjs} +6 -6
- package/dist/cli/{workflow-GY3DBHXX.js → workflow-F5AHL2ET.js} +17 -17
- package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-FI4DL7ZI.mjs} +7 -7
- package/dist/{client-D1uWA2Vc.d.mts → client-BEJqhQAj.d.mts} +1 -1
- package/dist/{client-Hz7SsBXs.d.ts → client-Ceo295L2.d.ts} +1 -1
- package/dist/{client-core-D3Ad7Flt.d.ts → client-core-BPYuWfBC.d.ts} +49 -1
- package/dist/{client-core-Db_e63Hb.d.mts → client-core-BqetRxx-.d.mts} +49 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -116
- 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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AC5277PI.js +0 -43
- package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
- package/dist/cli/describe-GYYSLZLV.js +0 -50
- package/dist/cli/git-FZIQZNI4.js +0 -25
- package/dist/cli/search-JCWJX2XD.js +0 -32
- package/dist/cli/sessions-NA4SJH6Q.js +0 -22
- package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
- package/dist/cli/tools-WJQ6Y7E4.js +0 -57
- package/dist/cli/update-ZLRLTBRD.js +0 -34
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-BDOLPGHD.mjs";
|
|
4
|
+
import "./chunk-Y5SKYU5X.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-DCTEH6N5.mjs";
|
|
8
8
|
import {
|
|
9
9
|
iterateCursorPages,
|
|
10
10
|
requireBillingIdempotencyKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-J6FINSAK.mjs";
|
|
12
12
|
import "./chunk-FZHMNK6F.mjs";
|
|
13
13
|
import "./chunk-LX35AXTN.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
15
15
|
import "./chunk-UBKA33KY.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_RUNTIME_PRICING_NOTE
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-MAE3AKDR.mjs";
|
|
19
19
|
import {
|
|
20
20
|
PRICING_PAGE_NOTE
|
|
21
21
|
} from "./chunk-NIPLY25A.mjs";
|
|
@@ -29,9 +29,9 @@ import {
|
|
|
29
29
|
openInBrowser,
|
|
30
30
|
printCommandEnvelope,
|
|
31
31
|
shouldEmitJson
|
|
32
|
-
} from "./chunk-
|
|
33
|
-
import "./chunk-
|
|
34
|
-
import "./chunk-
|
|
32
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
33
|
+
import "./chunk-U6KHWIAO.mjs";
|
|
34
|
+
import "./chunk-X4RGDE4J.mjs";
|
|
35
35
|
import {
|
|
36
36
|
AuthError,
|
|
37
37
|
ConfigError
|
|
@@ -40,7 +40,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
40
40
|
import {
|
|
41
41
|
DeeplineError
|
|
42
42
|
} from "./chunk-JL2OTMSG.mjs";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-L6UMWAAY.mjs";
|
|
44
44
|
import "./chunk-WZYKRD7T.mjs";
|
|
45
45
|
import "./chunk-KRD6H754.mjs";
|
|
46
46
|
|
|
@@ -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 _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunk5622PYAPjs.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 _chunk5622PYAPjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XS72HELO.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ANOTB6V3.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AZSVDAXT.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-U6KHWIAO.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk5622PYAPjs = require('./chunk-5622PYAP.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunkEITMD3A5js = require('./chunk-EITMD3A5.js');
|
|
@@ -689,7 +689,7 @@ var ToolCalls = class {
|
|
|
689
689
|
idempotencyKey,
|
|
690
690
|
onResponse: (response2) => {
|
|
691
691
|
lastResponse = null;
|
|
692
|
-
atomicToolsSupported = response2.headers.get(
|
|
692
|
+
atomicToolsSupported = response2.headers.get(_chunk5622PYAPjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
693
693
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
694
694
|
if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
|
|
695
695
|
try {
|
|
@@ -1076,15 +1076,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1076
1076
|
}
|
|
1077
1077
|
const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1078
1078
|
return {
|
|
1079
|
-
[
|
|
1080
|
-
...receivers ? { [
|
|
1079
|
+
[_chunk5622PYAPjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1080
|
+
...receivers ? { [_chunk5622PYAPjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1081
1081
|
};
|
|
1082
1082
|
}
|
|
1083
1083
|
function playRunStartHeaders(runtime, env) {
|
|
1084
1084
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1085
1085
|
const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
1086
1086
|
if (!experimentSwitches) return headers;
|
|
1087
|
-
return { ...headers, [
|
|
1087
|
+
return { ...headers, [_chunk5622PYAPjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1088
1088
|
}
|
|
1089
1089
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1090
1090
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1154,7 +1154,7 @@ var PlayClient = class {
|
|
|
1154
1154
|
return _chunkSL6MYJYMjs.startPlayRun.call(void 0,
|
|
1155
1155
|
this.http,
|
|
1156
1156
|
resolved.request,
|
|
1157
|
-
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1157
|
+
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk5622PYAPjs.SDK_API_MAJOR) } : headers,
|
|
1158
1158
|
options
|
|
1159
1159
|
);
|
|
1160
1160
|
}
|
|
@@ -3383,7 +3383,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3383
3383
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3384
3384
|
);
|
|
3385
3385
|
}
|
|
3386
|
-
return { [
|
|
3386
|
+
return { [_chunk5622PYAPjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3387
3387
|
}
|
|
3388
3388
|
function sleep(ms) {
|
|
3389
3389
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4298,7 +4298,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4298
4298
|
);
|
|
4299
4299
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4300
4300
|
...runtimeHeaders,
|
|
4301
|
-
"X-Deepline-API-Major": String(
|
|
4301
|
+
"X-Deepline-API-Major": String(_chunk5622PYAPjs.SDK_API_MAJOR)
|
|
4302
4302
|
} : runtimeHeaders;
|
|
4303
4303
|
const http = this.http;
|
|
4304
4304
|
let submitted = false;
|
|
@@ -7336,6 +7336,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7336
7336
|
* up at 60 s reported a timeout for a plan the server then committed.
|
|
7337
7337
|
*/
|
|
7338
7338
|
static __initStatic2() {this.MONITOR_FLEET_WRITE_TIMEOUT_MS = 31e4}
|
|
7339
|
+
/**
|
|
7340
|
+
* The commit budget a sync asks for (#10717): the server stops a staged
|
|
7341
|
+
* commit this long into the request and answers `staged_commit_in_progress`
|
|
7342
|
+
* instead of running into its 300 s limit; the SDK re-sends to continue.
|
|
7343
|
+
* The server caps it at the same value.
|
|
7344
|
+
*/
|
|
7345
|
+
static __initStatic3() {this.MONITOR_FLEET_COMMIT_BUDGET_MS = 24e4}
|
|
7339
7346
|
monitorFleetPath(fleetId) {
|
|
7340
7347
|
return `/api/v2/monitors/fleets/${encodeURIComponent(fleetId)}`;
|
|
7341
7348
|
}
|
|
@@ -7357,17 +7364,48 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7357
7364
|
..._optionalChain([options, 'optionalAccess', _426 => _426.adoptExisting]) ? { adopt_existing: true } : {},
|
|
7358
7365
|
..._optionalChain([options, 'optionalAccess', _427 => _427.expectedGeneration]) !== void 0 ? { expected_generation: options.expectedGeneration } : {}
|
|
7359
7366
|
};
|
|
7360
|
-
|
|
7361
|
-
this.
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7367
|
+
const headers = {
|
|
7368
|
+
...this.monitorFleetHeaders("sync", _optionalChain([options, 'optionalAccess', _428 => _428.idempotencyKey])),
|
|
7369
|
+
"X-Deepline-Fleet-Commit-Budget-Ms": String(
|
|
7370
|
+
_nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.commitBudgetMs]), () => ( _DeeplineClient.MONITOR_FLEET_COMMIT_BUDGET_MS))
|
|
7371
|
+
)
|
|
7372
|
+
};
|
|
7373
|
+
let remainingBefore = Number.POSITIVE_INFINITY;
|
|
7374
|
+
let stalledRequests = 0;
|
|
7375
|
+
for (let attempt = 1; ; attempt += 1) {
|
|
7376
|
+
const result = await this.http.request(
|
|
7377
|
+
this.monitorFleetPath(fleetId),
|
|
7378
|
+
{
|
|
7379
|
+
method: "PUT",
|
|
7380
|
+
body,
|
|
7381
|
+
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7382
|
+
headers,
|
|
7383
|
+
maxRetries: 0,
|
|
7384
|
+
exactUrlOnly: true
|
|
7385
|
+
}
|
|
7386
|
+
);
|
|
7387
|
+
if (result.code !== "staged_commit_in_progress") return result;
|
|
7388
|
+
const staged = _nullishCoalesce(result.staged_commit, () => ( {}));
|
|
7389
|
+
const thisRequest = Number(staged.members_committed_this_request);
|
|
7390
|
+
const remaining = Number(staged.members_total) - Number(staged.members_committed);
|
|
7391
|
+
stalledRequests = remaining < remainingBefore ? 0 : stalledRequests + 1;
|
|
7392
|
+
remainingBefore = remaining;
|
|
7393
|
+
if (!(thisRequest > 0) || stalledRequests >= 2) {
|
|
7394
|
+
throw new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
7395
|
+
`Monitor Fleet '${fleetId}' commit made no progress in request ${attempt}. Re-run the same command to continue from where it stopped.`,
|
|
7396
|
+
202,
|
|
7397
|
+
"MONITOR_FLEET_COMMIT_STALLED",
|
|
7398
|
+
{ response: result }
|
|
7399
|
+
);
|
|
7369
7400
|
}
|
|
7370
|
-
|
|
7401
|
+
_optionalChain([options, 'optionalAccess', _430 => _430.onCommitProgress, 'optionalCall', _431 => _431({
|
|
7402
|
+
fleetId,
|
|
7403
|
+
generation: Number(result.generation),
|
|
7404
|
+
membersCommitted: Number(staged.members_committed),
|
|
7405
|
+
membersTotal: Number(staged.members_total),
|
|
7406
|
+
attempt
|
|
7407
|
+
})]);
|
|
7408
|
+
}
|
|
7371
7409
|
}
|
|
7372
7410
|
async listMonitorFleets() {
|
|
7373
7411
|
return this.http.request("/api/v2/monitors/fleets", {
|
|
@@ -7377,10 +7415,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7377
7415
|
/** The Fleets list. Prefer `client.monitors.fleets.overview()`. */
|
|
7378
7416
|
async listMonitorFleetOverviews(options) {
|
|
7379
7417
|
const params = new URLSearchParams({ view: "overview" });
|
|
7380
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7381
|
-
for (const state of _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7382
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7383
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7418
|
+
if (_optionalChain([options, 'optionalAccess', _432 => _432.q])) params.set("q", options.q);
|
|
7419
|
+
for (const state of _nullishCoalesce(_optionalChain([options, 'optionalAccess', _433 => _433.states]), () => ( []))) params.append("state", state);
|
|
7420
|
+
if (_optionalChain([options, 'optionalAccess', _434 => _434.sort])) params.set("sort", options.sort);
|
|
7421
|
+
if (_optionalChain([options, 'optionalAccess', _435 => _435.window])) params.set("window", options.window);
|
|
7384
7422
|
return this.http.request(
|
|
7385
7423
|
`/api/v2/monitors/fleets?${params.toString()}`,
|
|
7386
7424
|
{ method: "GET" }
|
|
@@ -7389,7 +7427,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7389
7427
|
/** One fleet's overview. Prefer `client.monitors.fleets.overview(fleetId)`. */
|
|
7390
7428
|
async getMonitorFleetOverview(fleetId, options) {
|
|
7391
7429
|
const params = new URLSearchParams({ view: "overview" });
|
|
7392
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7430
|
+
if (_optionalChain([options, 'optionalAccess', _436 => _436.window])) params.set("window", options.window);
|
|
7393
7431
|
return this.http.request(
|
|
7394
7432
|
`${this.monitorFleetPath(fleetId)}?${params.toString()}`,
|
|
7395
7433
|
{ method: "GET" }
|
|
@@ -7398,10 +7436,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7398
7436
|
/** A fleet's problem members. Prefer `client.monitors.fleets.issues(...)`. */
|
|
7399
7437
|
async listMonitorFleetIssues(fleetId, options) {
|
|
7400
7438
|
const params = new URLSearchParams();
|
|
7401
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7402
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7403
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7404
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7439
|
+
if (_optionalChain([options, 'optionalAccess', _437 => _437.group])) params.set("group", options.group);
|
|
7440
|
+
if (_optionalChain([options, 'optionalAccess', _438 => _438.cause])) params.set("cause", options.cause);
|
|
7441
|
+
if (_optionalChain([options, 'optionalAccess', _439 => _439.cursor])) params.set("cursor", options.cursor);
|
|
7442
|
+
if (_optionalChain([options, 'optionalAccess', _440 => _440.limit]) !== void 0)
|
|
7405
7443
|
params.set("limit", String(options.limit));
|
|
7406
7444
|
const query = params.toString();
|
|
7407
7445
|
return this.http.request(
|
|
@@ -7411,8 +7449,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7411
7449
|
}
|
|
7412
7450
|
async getMonitorFleet(fleetId, options) {
|
|
7413
7451
|
const params = new URLSearchParams();
|
|
7414
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7415
|
-
if (_optionalChain([options, 'optionalAccess',
|
|
7452
|
+
if (_optionalChain([options, 'optionalAccess', _441 => _441.drift])) params.set("drift", "1");
|
|
7453
|
+
if (_optionalChain([options, 'optionalAccess', _442 => _442.limit]) !== void 0)
|
|
7416
7454
|
params.set("limit", String(options.limit));
|
|
7417
7455
|
const query = params.toString();
|
|
7418
7456
|
return this.http.request(
|
|
@@ -7425,11 +7463,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7425
7463
|
this.monitorFleetPath(fleetId),
|
|
7426
7464
|
{
|
|
7427
7465
|
method: "DELETE",
|
|
7428
|
-
body: _optionalChain([options, 'optionalAccess',
|
|
7466
|
+
body: _optionalChain([options, 'optionalAccess', _443 => _443.dryRun]) ? { dry_run: true } : {},
|
|
7429
7467
|
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7430
7468
|
headers: this.monitorFleetHeaders(
|
|
7431
7469
|
"deactivate",
|
|
7432
|
-
_optionalChain([options, 'optionalAccess',
|
|
7470
|
+
_optionalChain([options, 'optionalAccess', _444 => _444.idempotencyKey])
|
|
7433
7471
|
),
|
|
7434
7472
|
maxRetries: 0,
|
|
7435
7473
|
exactUrlOnly: true
|
|
@@ -7445,7 +7483,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7445
7483
|
timeout: _DeeplineClient.MONITOR_FLEET_WRITE_TIMEOUT_MS,
|
|
7446
7484
|
headers: this.monitorFleetHeaders(
|
|
7447
7485
|
"reactivate",
|
|
7448
|
-
_optionalChain([options, 'optionalAccess',
|
|
7486
|
+
_optionalChain([options, 'optionalAccess', _445 => _445.idempotencyKey])
|
|
7449
7487
|
),
|
|
7450
7488
|
maxRetries: 0,
|
|
7451
7489
|
exactUrlOnly: true
|
|
@@ -7462,9 +7500,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7462
7500
|
* identical to "the request failed".
|
|
7463
7501
|
*/
|
|
7464
7502
|
async waitForMonitorFleetConvergence(fleetId, options) {
|
|
7465
|
-
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7466
|
-
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
7467
|
-
const terminal = _optionalChain([options, 'optionalAccess',
|
|
7503
|
+
const timeoutMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _446 => _446.timeoutMs]), () => ( 10 * 6e4)));
|
|
7504
|
+
const pollIntervalMs = Math.max(1, _nullishCoalesce(_optionalChain([options, 'optionalAccess', _447 => _447.pollIntervalMs]), () => ( 2e3)));
|
|
7505
|
+
const terminal = _optionalChain([options, 'optionalAccess', _448 => _448.until]) === "deactivated" ? /* @__PURE__ */ new Set(["deactivated", "degraded", "billing_suspended"]) : /* @__PURE__ */ new Set([
|
|
7468
7506
|
"converged",
|
|
7469
7507
|
"degraded",
|
|
7470
7508
|
"deactivated",
|
|
@@ -7473,7 +7511,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7473
7511
|
const startedAt = Date.now();
|
|
7474
7512
|
let latest = await this.getMonitorFleet(fleetId);
|
|
7475
7513
|
while (true) {
|
|
7476
|
-
_optionalChain([options, 'optionalAccess',
|
|
7514
|
+
_optionalChain([options, 'optionalAccess', _449 => _449.onProgress, 'optionalCall', _450 => _450(latest)]);
|
|
7477
7515
|
const status = typeof latest.status === "string" ? latest.status : void 0;
|
|
7478
7516
|
if (status && terminal.has(status)) return latest;
|
|
7479
7517
|
if (Date.now() - startedAt >= timeoutMs) return latest;
|
|
@@ -7509,7 +7547,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
7509
7547
|
async health() {
|
|
7510
7548
|
return this.http.get("/api/v2/health");
|
|
7511
7549
|
}
|
|
7512
|
-
}, _class.__initStatic(), _class.__initStatic2(), _class);
|
|
7550
|
+
}, _class.__initStatic(), _class.__initStatic2(), _class.__initStatic3(), _class);
|
|
7513
7551
|
|
|
7514
7552
|
|
|
7515
7553
|
|
|
@@ -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 _chunkYZTS3XA7js = require('./chunk-YZTS3XA7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXPYCNA43js = require('./chunk-XPYCNA43.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") _chunkXPYCNA43js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkYZTS3XA7js.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkXPYCNA43js.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
|
+
_chunkXPYCNA43js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U6KHWIAO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X4RGDE4J.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DeeplineError,
|
|
16
16
|
normalizeToolExecutionFailure,
|
|
@@ -26,7 +26,7 @@ var RUN_FIELDS = new Set(
|
|
|
26
26
|
);
|
|
27
27
|
var ROOTS = {
|
|
28
28
|
describe: "name playKey reference displayName description pinned toolCategories tags origin ownerType canEdit canClone aliases inputSchema outputSchema staticPipeline csvInput rowOutputSchema runCommand examples cloneEditStarter currentPublishedVersion liveVersion triggerStatus triggerMetadata isDraftDirty latestRunId runtimeLimit activeScheduledPlays dashboardUrl command_context",
|
|
29
|
-
check: "kind target checked scope name exportName valid stage issues diagram inputSchema outputSchema recognized triggers runtimeLimit limits featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
|
|
29
|
+
check: "kind target checked scope name exportName valid stage issues diagram input inputSchema outputSchema recognized triggers runtimeLimit limits runAdmission stages docflow featureFlags sourceHash artifactHash graphHash toolGetterHints exports actions diagnostics reference origin ownerType activeScheduledPlays command_context",
|
|
30
30
|
run: "schemaVersion kind run datasets actions apiVersion rateLimited dashboardUrl runUrl progress rowOutcomes steps errors error warnings result resultState execution command_context diagnostics",
|
|
31
31
|
get: "schemaVersion kind run dashboardUrl runUrl runStatus steps failures errorDetails rowOutcomes warnings failedLogs datasets result resultState actions diagnostics command_context",
|
|
32
32
|
config: "runId contract command_context",
|
|
@@ -1275,12 +1275,40 @@ function withAgentCommandContext(value) {
|
|
|
1275
1275
|
command_context: resolveCliCommandContext()
|
|
1276
1276
|
} : value;
|
|
1277
1277
|
}
|
|
1278
|
-
function printJson(value, fields) {
|
|
1278
|
+
function printJson(value, fields, options = {}) {
|
|
1279
|
+
const payload = withJsonNotices(
|
|
1280
|
+
selectJsonFields(withAgentCommandContext(value), fields)
|
|
1281
|
+
);
|
|
1279
1282
|
process.stdout.write(
|
|
1280
|
-
`${JSON.stringify(
|
|
1283
|
+
`${options.layout === "readable" ? formatReadableJson(payload) : JSON.stringify(payload, null, 2)}
|
|
1281
1284
|
`
|
|
1282
1285
|
);
|
|
1283
1286
|
}
|
|
1287
|
+
var READABLE_JSON_WIDTH = 100;
|
|
1288
|
+
function formatReadableJson(value) {
|
|
1289
|
+
const render = (item, indent) => {
|
|
1290
|
+
const flat = JSON.stringify(item);
|
|
1291
|
+
if (item === null || typeof item !== "object" || indent.length + flat.length <= READABLE_JSON_WIDTH) {
|
|
1292
|
+
return flat;
|
|
1293
|
+
}
|
|
1294
|
+
const inner = `${indent} `;
|
|
1295
|
+
if (Array.isArray(item)) {
|
|
1296
|
+
if (item.length === 0) return "[]";
|
|
1297
|
+
return `[
|
|
1298
|
+
${item.map((entry) => `${inner}${render(entry, inner)}`).join(",\n")}
|
|
1299
|
+
${indent}]`;
|
|
1300
|
+
}
|
|
1301
|
+
const entries = Object.entries(item);
|
|
1302
|
+
if (entries.length === 0) return "{}";
|
|
1303
|
+
return `{
|
|
1304
|
+
${entries.map(
|
|
1305
|
+
([key, entry]) => `${inner}${JSON.stringify(key)}: ${render(entry, inner)}`
|
|
1306
|
+
).join(",\n")}
|
|
1307
|
+
${indent}}`;
|
|
1308
|
+
};
|
|
1309
|
+
const normalized = JSON.stringify(value);
|
|
1310
|
+
return normalized === void 0 ? "null" : render(JSON.parse(normalized), "");
|
|
1311
|
+
}
|
|
1284
1312
|
function printCompactJson(value) {
|
|
1285
1313
|
process.stdout.write(
|
|
1286
1314
|
`${JSON.stringify(withJsonNotices(withAgentCommandContext(value)))}
|
|
@@ -1500,7 +1528,8 @@ function printCommandEnvelope(envelope, options = {}) {
|
|
|
1500
1528
|
if (options.legacyJson)
|
|
1501
1529
|
process.stdout.write(`${JSON.stringify(options.legacyJson.value)}
|
|
1502
1530
|
`);
|
|
1503
|
-
else
|
|
1531
|
+
else
|
|
1532
|
+
printJson(envelope, options.fields, { layout: options.jsonLayout });
|
|
1504
1533
|
return;
|
|
1505
1534
|
}
|
|
1506
1535
|
process.stdout.write(options.text ?? renderCommandEnvelopeText(envelope));
|
|
@@ -17,12 +17,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkV7WMNX4Rjs = require('./chunk-V7WMNX4R.js');
|
|
21
21
|
|
|
22
22
|
// src/version.ts
|
|
23
|
-
var SDK_VERSION =
|
|
24
|
-
var SDK_API_MAJOR =
|
|
25
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
23
|
+
var SDK_VERSION = _chunkV7WMNX4Rjs.SDK_RELEASE.version;
|
|
24
|
+
var SDK_API_MAJOR = _chunkV7WMNX4Rjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
25
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkV7WMNX4Rjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
26
26
|
|
|
27
27
|
// src/agent-runtime.ts
|
|
28
28
|
var _fs = require('fs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DCTEH6N5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -4,21 +4,21 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4AUV5QJF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
syncSdkSkillsIfNeeded
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AZSVDAXT.mjs";
|
|
12
12
|
import {
|
|
13
13
|
addJsonNotice,
|
|
14
14
|
isJsonOutputMode
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-4QUWXUUJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-U6KHWIAO.mjs";
|
|
19
19
|
import {
|
|
20
20
|
SDK_VERSION
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-X4RGDE4J.mjs";
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQGKX2WBZjs = require('./chunk-QGKX2WBZ.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkQGKX2WBZjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1458,17 +1458,40 @@ When:
|
|
|
1458
1458
|
every time.
|
|
1459
1459
|
[[cli:
|
|
1460
1460
|
Input:
|
|
1461
|
-
A local path ending in .play.ts, or a play reference. --
|
|
1462
|
-
|
|
1461
|
+
A local path ending in .play.ts, or a play reference. --json prints JSON.
|
|
1462
|
+
--full also returns the complete check document under diagnostics
|
|
1463
|
+
(static pipeline, authoring contract with the input JSON Schema, every
|
|
1464
|
+
limit, feature flags).
|
|
1463
1465
|
]]
|
|
1464
1466
|
[[cli:
|
|
1465
|
-
Output
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1467
|
+
Output:
|
|
1468
|
+
Text: a verdict line, the file once, then one line each for Input,
|
|
1469
|
+
Datasets, Returns, Steps (kinds of step and the tools), Diagram (its
|
|
1470
|
+
verdict, e.g. 11 boxes, all bound \xB7 2 warnings, then every box in flow
|
|
1471
|
+
order with its line and a decision's arms), Limits (ok unless a limit is
|
|
1472
|
+
not the default or a budget is near its ceiling) and short hashes; then
|
|
1473
|
+
each issue with its fix, diagram issues by box in flow order; then the
|
|
1474
|
+
next commands, with <file> for the path. --full adds every stage and each
|
|
1475
|
+
box's in/out/show.
|
|
1476
|
+
JSON (--json): valid, target, name, issues (every error and warning, with
|
|
1477
|
+
its repair step), diagram (counts), input (one entry per field: name,
|
|
1478
|
+
type, required; nested fields dotted), recognized (datasets, row inputs,
|
|
1479
|
+
outputs, tools), stages (one line each, indented under the stage or
|
|
1480
|
+
conditional arm that runs it), docflow (nodes with id, label, kind, line;
|
|
1481
|
+
edges with from, to, label), sourceHash, artifactHash, graphHash, and
|
|
1482
|
+
actions (runExample.command, publishCmd). runtimeLimit, limits and
|
|
1483
|
+
runAdmission appear only when they are not the default. A named play
|
|
1484
|
+
returns its inputSchema and outputSchema instead.
|
|
1485
|
+
Recognized fields and tools come from static analysis: dataset columns
|
|
1486
|
+
are physical SQL names, CSV passthrough columns are not listed, and a
|
|
1487
|
+
check neither resolves a sample CSV nor proves a provider is available.
|
|
1488
|
+
The run example runs the local file without publishing and may spend
|
|
1489
|
+
credits.
|
|
1490
|
+
]]
|
|
1491
|
+
[[mcp:
|
|
1492
|
+
Output:
|
|
1493
|
+
The same compact view as the CLI's --json; full: true returns the complete
|
|
1494
|
+
check document.
|
|
1472
1495
|
]]
|
|
1473
1496
|
Cost:
|
|
1474
1497
|
Free.
|
|
@@ -2193,6 +2216,41 @@ Cost:
|
|
|
2193
2216
|
Avoid:
|
|
2194
2217
|
Do not use head or wc to inspect a CSV that a play will consume; [[--summary]]
|
|
2195
2218
|
gives the row count and column names in one call.
|
|
2219
|
+
`
|
|
2220
|
+
},
|
|
2221
|
+
"monitors fleets deploy": {
|
|
2222
|
+
core: `
|
|
2223
|
+
Purpose:
|
|
2224
|
+
Apply a table-backed Monitor Fleet definition: plan one monitor per
|
|
2225
|
+
selected Customer DB row and commit that plan. The same definition applied
|
|
2226
|
+
twice is the same operation and answers replayed: true.
|
|
2227
|
+
When:
|
|
2228
|
+
After [[--dry-run]] has shown the plan and credits_due_now. Re-run the same
|
|
2229
|
+
command after any failure; every Fleet command is idempotent.
|
|
2230
|
+
[[cli:
|
|
2231
|
+
Input:
|
|
2232
|
+
--file <fleet.json> (or - for stdin), or a bare <fleet-id> to re-plan the
|
|
2233
|
+
stored definition. --dry-run, --adopt-existing, --wait [--timeout],
|
|
2234
|
+
--expected-generation, --idempotency-key, --json. --commit-budget-ms <ms>
|
|
2235
|
+
shortens each request's commit (default and maximum 240000) when something
|
|
2236
|
+
between you and Deepline cuts requests off sooner.
|
|
2237
|
+
]]
|
|
2238
|
+
Output (JSON):
|
|
2239
|
+
The committed plan: accepted, generation, replayed, plan (creates, updates,
|
|
2240
|
+
removes, blocked, deferred), credits_due_now, next. A Fleet too large to
|
|
2241
|
+
commit inside one request (about 100,000 members on a first deploy) is
|
|
2242
|
+
committed over several: the server stops each at its time budget with
|
|
2243
|
+
code staged_commit_in_progress and the CLI re-sends the same definition
|
|
2244
|
+
until it is committed, printing "Committing Fleet ... members so far" to
|
|
2245
|
+
stderr. Nothing is published until every member is committed; stdout is
|
|
2246
|
+
still the one committed result.
|
|
2247
|
+
Cost:
|
|
2248
|
+
[[--dry-run]] is free. Deploying creates monitors, which spend credits:
|
|
2249
|
+
credits_due_now in the plan is what the creates cost.
|
|
2250
|
+
Avoid:
|
|
2251
|
+
Do not interrupt a multi-request commit and start a different definition:
|
|
2252
|
+
the open stage holds the fleet against another plan for ten minutes. Re-run
|
|
2253
|
+
the same command to continue it.
|
|
2196
2254
|
`
|
|
2197
2255
|
},
|
|
2198
2256
|
"db query": {
|