deepline 0.3.571 → 0.3.573
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +28 -17
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +360 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +274 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +35 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +32 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +67 -43
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +23 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +11 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +54 -5
- package/dist/cli/auth-DGR7ZQJL.js +44 -0
- package/dist/cli/{auth-ARGNQK7A.mjs → auth-XX3HLRQ2.mjs} +5 -5
- package/dist/cli/{billing-KAKODYTN.js → billing-6TY2HMC6.js} +99 -99
- package/dist/cli/{billing-QRZTHCBX.mjs → billing-QASEPOBL.mjs} +8 -8
- package/dist/cli/{chunk-C27FK36H.js → chunk-2USXCXPZ.js} +5 -5
- package/dist/cli/{chunk-GRD3DLH7.mjs → chunk-4K6UVILG.mjs} +2 -2
- package/dist/cli/{chunk-7HAYEKC4.mjs → chunk-4LWBURSS.mjs} +1 -1
- package/dist/cli/{chunk-J5KW2ZDB.mjs → chunk-5MCC4D25.mjs} +1 -1
- package/dist/cli/{chunk-UTGHPC5D.mjs → chunk-5NEJOCOK.mjs} +1 -1
- package/dist/cli/{chunk-YDM5WSXO.mjs → chunk-6JTJP3WO.mjs} +5 -5
- package/dist/cli/{chunk-C6XV2DPY.mjs → chunk-ANSHNREL.mjs} +3 -3
- package/dist/cli/{chunk-PO3NOBHU.mjs → chunk-C52RRBYB.mjs} +1 -1
- package/dist/cli/{chunk-IXFFOZZQ.js → chunk-CY3BUFMG.js} +2 -2
- package/dist/cli/{chunk-YQ36Z23U.js → chunk-DIZI5YGW.js} +2 -2
- package/dist/cli/{chunk-7JGHNZTD.js → chunk-DLWVJ66I.js} +4 -4
- package/dist/cli/{chunk-QRMTITKL.mjs → chunk-DSE45YP4.mjs} +2 -2
- package/dist/cli/{chunk-A3IVPA6Q.mjs → chunk-ENLJ67CZ.mjs} +1 -1
- package/dist/cli/{chunk-Z3DSCE5F.mjs → chunk-ESKNCTFI.mjs} +1 -1
- package/dist/cli/{chunk-WOU2WS6S.js → chunk-FUVVTHXE.js} +23 -23
- package/dist/cli/{chunk-RBPR5ZNN.js → chunk-FXLVMWWA.js} +100 -100
- package/dist/cli/{chunk-A5HDA22N.js → chunk-GWPXWKQR.js} +3 -3
- package/dist/cli/{chunk-Z6OUUAIV.mjs → chunk-IXCGWJJZ.mjs} +2 -2
- package/dist/cli/{chunk-6N3NTEJ6.js → chunk-IZK2BLBW.js} +20 -20
- package/dist/cli/{chunk-YGGHPEWP.js → chunk-JAW75RAO.js} +15 -15
- package/dist/cli/{chunk-GCE5KOJJ.mjs → chunk-JCVAVHDP.mjs} +11 -11
- package/dist/cli/{chunk-C3FHMJ4A.js → chunk-KART6FR6.js} +2 -2
- package/dist/cli/{chunk-VLQB65HI.js → chunk-KQLIG4YR.js} +9 -9
- package/dist/cli/{chunk-IFKZQCPX.js → chunk-KQZBN7TB.js} +1 -1
- package/dist/cli/{chunk-336AHC7H.mjs → chunk-LPYUGPTF.mjs} +4 -4
- package/dist/cli/{chunk-A3B54QEW.mjs → chunk-M2UJWUWX.mjs} +3 -3
- package/dist/cli/{chunk-CR6IPQBB.mjs → chunk-MQOJ7SP4.mjs} +1 -1
- package/dist/cli/{chunk-XD4MT4BH.js → chunk-N3VZTISZ.js} +8 -8
- package/dist/cli/{chunk-H6QMUX7Y.mjs → chunk-N5VL6BHF.mjs} +2 -2
- package/dist/cli/{chunk-YDULFKDL.mjs → chunk-NJTTRJ32.mjs} +2 -2
- package/dist/cli/{chunk-ETGM6PIR.mjs → chunk-NUH56LTU.mjs} +5 -5
- package/dist/cli/{chunk-SJYLLHHZ.js → chunk-OG3YWDYA.js} +13 -13
- package/dist/cli/{chunk-HGER4CJA.js → chunk-OPD6XUIG.js} +5 -5
- package/dist/cli/{chunk-WZOUXILM.mjs → chunk-PW3PADXI.mjs} +1 -1
- package/dist/cli/{chunk-UBNRPJKO.mjs → chunk-QDQOXHXQ.mjs} +5 -5
- package/dist/cli/{chunk-CFMIWRGD.mjs → chunk-QFDT35HF.mjs} +2 -2
- package/dist/cli/{chunk-VULSFPD4.mjs → chunk-ROSPYLDN.mjs} +5 -5
- package/dist/cli/{chunk-FQP5VSVF.mjs → chunk-T2QI52F2.mjs} +1 -1
- package/dist/cli/{chunk-NAGGCF6Y.js → chunk-TJSKDOXN.js} +5 -5
- package/dist/cli/{chunk-CITDBSXI.js → chunk-TNCJ2J76.js} +26 -26
- package/dist/cli/{chunk-73P76DCN.js → chunk-UBTEDSIK.js} +20 -20
- package/dist/cli/{chunk-PTM5V5FV.js → chunk-UNTBQY64.js} +7 -7
- package/dist/cli/{chunk-GACQOGRS.js → chunk-UZLTBBAG.js} +15 -15
- package/dist/cli/{chunk-6OP5UW7C.js → chunk-WQEGXOUT.js} +48 -48
- package/dist/cli/{chunk-TJU2BECV.mjs → chunk-WSXRJ2RZ.mjs} +3 -3
- package/dist/cli/{chunk-AOMVAXGX.js → chunk-X3BGF6UU.js} +10 -10
- package/dist/cli/{chunk-CF6CSAMJ.mjs → chunk-XAIXTB74.mjs} +4 -4
- package/dist/cli/{chunk-AD7BGMTL.mjs → chunk-XLN4Z654.mjs} +2 -2
- package/dist/cli/{chunk-2IZOCGOA.js → chunk-XVFRNNL2.js} +53 -53
- package/dist/cli/{chunk-MFBFQUQK.js → chunk-XWO4J34B.js} +6 -6
- package/dist/cli/{chunk-GOUKX6XD.js → chunk-YKHXWO7N.js} +3 -3
- package/dist/cli/{chunk-ILKUKEWX.js → chunk-Z6KWSBOX.js} +41 -41
- package/dist/cli/concurrent-runs-help-HEIDXAM2.js +22 -0
- package/dist/cli/{concurrent-runs-help-VPYB4ODC.mjs → concurrent-runs-help-IILHMHBX.mjs} +6 -6
- package/dist/cli/{csv-GHGDSFNV.js → csv-OSJQVDAS.js} +13 -13
- package/dist/cli/{csv-RALLG3MG.mjs → csv-VGYW2PQZ.mjs} +4 -4
- package/dist/cli/{db-722SKSIB.js → db-2IMS6K2F.js} +27 -27
- package/dist/cli/{db-HB65VYRR.mjs → db-3IQYT3WD.mjs} +6 -6
- package/dist/cli/{describe-Q6M7PUBU.mjs → describe-IGJ4CHUC.mjs} +18 -18
- package/dist/cli/describe-LBU4I6SU.js +50 -0
- package/dist/cli/{executions-G3M75HW2.mjs → executions-6F3PLVCR.mjs} +6 -6
- package/dist/cli/{executions-GQNV3LNU.js → executions-VOJN4NPF.js} +8 -8
- package/dist/cli/{feedback-B43F2FBL.js → feedback-5N7GKSMC.js} +14 -14
- package/dist/cli/{feedback-CSDBYSRS.mjs → feedback-BP5G27DT.mjs} +6 -6
- package/dist/cli/{git-IZ4Y3RAW.mjs → git-FHNCP7QA.mjs} +5 -5
- package/dist/cli/git-JUSPUUOH.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-OLCUWZ6Z.js → integrations-JZV55BZT.js} +29 -29
- package/dist/cli/{integrations-DT7EGM2Y.mjs → integrations-KKCEEWDU.mjs} +7 -7
- package/dist/cli/{legacy-noops-FTGNTO3U.js → legacy-noops-OVOHF47E.js} +9 -9
- package/dist/cli/{legacy-noops-4TPT534L.mjs → legacy-noops-YOPWDLRG.mjs} +6 -6
- package/dist/cli/{mcp-3IDWLBKK.js → mcp-F2XGBA6W.js} +24 -24
- package/dist/cli/{mcp-5KDJJT7M.mjs → mcp-SJAXFYTI.mjs} +4 -4
- package/dist/cli/{monitors-EOAA5RQO.mjs → monitors-PFH3FQLD.mjs} +7 -7
- package/dist/cli/{monitors-7GOZBKJR.js → monitors-RQRNQRYB.js} +100 -100
- package/dist/cli/{org-H5I56A4F.mjs → org-PZC6SUZD.mjs} +6 -6
- package/dist/cli/{org-UJ5SWQJ5.js → org-WPOEKMTG.js} +121 -121
- package/dist/cli/{outcomes-24KFY2X5.js → outcomes-EXOCNHOC.js} +14 -14
- package/dist/cli/{outcomes-MG57YXJX.mjs → outcomes-ZS7XD3KQ.mjs} +6 -6
- package/dist/cli/{play-PPPACSQE.js → play-JS2TEEE7.js} +324 -324
- package/dist/cli/{play-MXPXRAUM.mjs → play-UKSRFVIU.mjs} +19 -19
- package/dist/cli/{providers-LTYNEXLB.js → providers-3U4MWBLU.js} +9 -9
- package/dist/cli/{providers-5ZN3MO6E.mjs → providers-U6IODPMJ.mjs} +6 -6
- package/dist/cli/{quickstart-ENDTTNLE.mjs → quickstart-G5QN5CUE.mjs} +4 -4
- package/dist/cli/{quickstart-UBDHX7PT.js → quickstart-SHBAEDX6.js} +6 -6
- package/dist/cli/{run-QJJSP35C.mjs → run-3ZOJ6V7C.mjs} +23 -23
- package/dist/cli/{run-6O6LQVWD.js → run-SZRKNLUT.js} +44 -44
- package/dist/cli/{search-PXZPVXDK.mjs → search-2VX5WNMJ.mjs} +7 -7
- package/dist/cli/search-TAFMLK4K.js +32 -0
- package/dist/cli/{search-output-KRR4YOJX.mjs → search-output-U5N2O6IA.mjs} +4 -4
- package/dist/cli/{search-output-H3ZQLJUF.js → search-output-WGDHYYHX.js} +6 -6
- package/dist/cli/{secrets-HIGERL4N.mjs → secrets-SQKP5ILO.mjs} +6 -6
- package/dist/cli/{secrets-QZMXBI64.js → secrets-UITJOGVQ.js} +15 -15
- package/dist/cli/{sessions-4SGQAX3F.mjs → sessions-LSXO2OKX.mjs} +6 -6
- package/dist/cli/sessions-RA6FBIHJ.js +23 -0
- package/dist/cli/{settings-FFTTVDRV.js → settings-VZI675JG.js} +85 -85
- package/dist/cli/{settings-UQLHVBOP.mjs → settings-YGYRDPOK.mjs} +12 -12
- package/dist/cli/{setup-R5MBUG5M.mjs → setup-GXGXRWKN.mjs} +9 -9
- package/dist/cli/{setup-SS3MABJP.js → setup-OJ33NOWK.js} +49 -49
- package/dist/cli/{skills-X6PNEVWX.mjs → skills-3VDYIFAX.mjs} +7 -7
- package/dist/cli/skills-J5QVWKLQ.js +37 -0
- package/dist/cli/tools-3PQXQGXL.js +57 -0
- package/dist/cli/{tools-YFW3FXAB.mjs → tools-3TKEGDBP.mjs} +17 -17
- package/dist/cli/update-CA3DZ75E.js +37 -0
- package/dist/cli/{update-HX5BNFLQ.mjs → update-K6A4QXTC.mjs} +9 -9
- package/dist/cli/{views-FH5XL2PU.mjs → views-2PPIVWDK.mjs} +6 -6
- package/dist/cli/{views-BGCRC22G.js → views-SGGO77XS.js} +21 -21
- package/dist/cli/{workflow-VLNDGNJI.mjs → workflow-JTG6QEFO.mjs} +7 -7
- package/dist/cli/{workflow-UY5PZBIK.js → workflow-YSFOOTPB.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-FKYYYCME.js +0 -44
- package/dist/cli/concurrent-runs-help-VUMIMYO7.js +0 -22
- package/dist/cli/describe-SG2N62VE.js +0 -50
- package/dist/cli/git-IJHKRWTR.js +0 -26
- package/dist/cli/search-TYPJWK4I.js +0 -32
- package/dist/cli/sessions-OS4ZBU4K.js +0 -23
- package/dist/cli/skills-FVDSEEUL.js +0 -37
- package/dist/cli/tools-ORTGWD63.js +0 -57
- package/dist/cli/update-RWVNNNHN.js +0 -37
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-QFDT35HF.mjs";
|
|
4
|
+
import "./chunk-ANSHNREL.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4K6UVILG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PUBLIC_PLAN_SKUS,
|
|
10
10
|
iterateCursorPages,
|
|
11
11
|
requireBillingIdempotencyKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-PW3PADXI.mjs";
|
|
13
13
|
import "./chunk-FZHMNK6F.mjs";
|
|
14
14
|
import "./chunk-5TYLSS4Q.mjs";
|
|
15
15
|
import "./chunk-PSX3WHIH.mjs";
|
|
@@ -32,9 +32,9 @@ import {
|
|
|
32
32
|
openInBrowser,
|
|
33
33
|
printCommandEnvelope,
|
|
34
34
|
shouldEmitJson
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-DSE45YP4.mjs";
|
|
36
|
+
import "./chunk-MQOJ7SP4.mjs";
|
|
37
|
+
import "./chunk-ENLJ67CZ.mjs";
|
|
38
38
|
import {
|
|
39
39
|
AuthError,
|
|
40
40
|
ConfigError
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
DeeplineError
|
|
45
45
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
46
46
|
import "./chunk-2MGZAI54.mjs";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-ESKNCTFI.mjs";
|
|
48
48
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
49
|
import "./chunk-KRD6H754.mjs";
|
|
50
50
|
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkN3VZTISZjs = require('./chunk-N3VZTISZ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGWPXWKQRjs = require('./chunk-GWPXWKQR.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkGWPXWKQRjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkN3VZTISZjs.PlayClient)(
|
|
142
|
+
new (0, _chunkGWPXWKQRjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PW3PADXI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MQOJ7SP4.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C52RRBYB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LPYUGPTF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NUH56LTU.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DSE45YP4.mjs";
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MAX_RETRIES,
|
|
16
16
|
DEFAULT_TIMEOUT,
|
|
17
17
|
TRANSIENT_HTTP_STATUSES,
|
|
18
18
|
autoDetectBaseUrl,
|
|
19
19
|
defaultRetryBackoffMs
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MQOJ7SP4.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DSE45YP4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-MQOJ7SP4.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-ENLJ67CZ.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -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 _chunkWQEGXOUTjs = require('./chunk-WQEGXOUT.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 = _chunkWQEGXOUTjs.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
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -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 _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.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
|
+
_chunkIZK2BLBWjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
21
21
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkKQZBN7TBjs = require('./chunk-KQZBN7TB.js');
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION =
|
|
28
|
-
var SDK_API_MAJOR =
|
|
29
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
27
|
+
var SDK_VERSION = _chunkKQZBN7TBjs.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunkKQZBN7TBjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkKQZBN7TBjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
30
30
|
|
|
31
31
|
// src/agent-runtime.ts
|
|
32
32
|
var _fs = require('fs');
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MQOJ7SP4.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime,
|
|
13
13
|
readToolFailureHint
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ENLJ67CZ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.573",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUBTEDSIKjs = require('./chunk-UBTEDSIK.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkWQEGXOUTjs = require('./chunk-WQEGXOUT.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkGWPXWKQRjs = require('./chunk-GWPXWKQR.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkDLWVJ66Ijs = require('./chunk-DLWVJ66I.js');
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
46
46
|
async function reportAutoUpdateEvent(input) {
|
|
47
47
|
let apiKey = "";
|
|
48
48
|
try {
|
|
49
|
-
apiKey =
|
|
49
|
+
apiKey = _chunkGWPXWKQRjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
50
50
|
} catch (e2) {
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
62
62
|
headers: {
|
|
63
63
|
Authorization: `Bearer ${apiKey}`,
|
|
64
64
|
"Content-Type": "application/json",
|
|
65
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
65
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDLWVJ66Ijs.SDK_VERSION}`,
|
|
66
66
|
"X-Deepline-Client-Family": "sdk",
|
|
67
67
|
"X-Deepline-CLI-Family": "sdk",
|
|
68
|
-
"X-Deepline-CLI-Version":
|
|
69
|
-
"X-Deepline-SDK-Version":
|
|
68
|
+
"X-Deepline-CLI-Version": _chunkDLWVJ66Ijs.SDK_VERSION,
|
|
69
|
+
"X-Deepline-SDK-Version": _chunkDLWVJ66Ijs.SDK_VERSION
|
|
70
70
|
},
|
|
71
71
|
body: JSON.stringify({
|
|
72
72
|
event: input.event,
|
|
73
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
73
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkDLWVJ66Ijs.SDK_VERSION,
|
|
74
74
|
target_version: input.response.latest,
|
|
75
75
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
76
76
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -89,19 +89,19 @@ function envTruthy(name) {
|
|
|
89
89
|
return value === "1" || value === "true" || value === "yes";
|
|
90
90
|
}
|
|
91
91
|
function shouldSkipSelfUpdate(policy) {
|
|
92
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
92
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkUBTEDSIKjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkWQEGXOUTjs.isCiEnvironment.call(void 0, );
|
|
93
93
|
}
|
|
94
94
|
function isDowngradeAutoUpdateResponse(response) {
|
|
95
95
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
96
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
96
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkDLWVJ66Ijs.SDK_VERSION;
|
|
97
97
|
if (!target) return false;
|
|
98
|
-
return
|
|
98
|
+
return _chunkUBTEDSIKjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
99
99
|
}
|
|
100
100
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
101
101
|
return new Promise((resolve) => {
|
|
102
102
|
const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
|
|
103
103
|
const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
|
|
104
|
-
const launch = plan.kind === "python-sidecar" ?
|
|
104
|
+
const launch = plan.kind === "python-sidecar" ? _chunkWQEGXOUTjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
|
|
105
105
|
command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
|
|
106
106
|
args: argv.slice(1),
|
|
107
107
|
shell: false
|
|
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
148
148
|
}
|
|
149
149
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
150
150
|
const target = response.latest;
|
|
151
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
151
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkDLWVJ66Ijs.SDK_VERSION;
|
|
152
152
|
process.stderr.write(
|
|
153
153
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
154
154
|
`
|
|
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
156
156
|
return false;
|
|
157
157
|
}
|
|
158
158
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
159
|
-
const plan =
|
|
159
|
+
const plan = _chunkUBTEDSIKjs.resolveUpdatePlan.call(void 0, {
|
|
160
160
|
packageSpec,
|
|
161
161
|
requireVerifiedNpmOwnership: true,
|
|
162
162
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
163
163
|
});
|
|
164
|
-
if (!
|
|
164
|
+
if (!_chunkUBTEDSIKjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
165
165
|
return false;
|
|
166
166
|
}
|
|
167
167
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
168
168
|
deferredAutoUpdate = async () => {
|
|
169
169
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
170
170
|
};
|
|
171
|
-
if (
|
|
171
|
+
if (_chunkIZK2BLBWjs.isJsonOutputMode.call(void 0, )) {
|
|
172
172
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
173
|
-
|
|
173
|
+
_chunkIZK2BLBWjs.addJsonNotice.call(void 0, {
|
|
174
174
|
code: "sdk_update_queued",
|
|
175
175
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
176
176
|
});
|
|
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
183
183
|
return true;
|
|
184
184
|
}
|
|
185
185
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
186
|
-
if (!
|
|
186
|
+
if (!_chunkUBTEDSIKjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
187
187
|
const autoUpdate = response.auto_update;
|
|
188
188
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
189
189
|
process.stderr.write(
|
|
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
196
196
|
event: "started",
|
|
197
197
|
installKind: plan.kind
|
|
198
198
|
});
|
|
199
|
-
const updateResult = await
|
|
199
|
+
const updateResult = await _chunkUBTEDSIKjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
200
200
|
if (updateResult.status === "skipped_previous_failure") {
|
|
201
201
|
void reportAutoUpdateEvent({
|
|
202
202
|
baseUrl,
|
|
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
234
234
|
exitCode: 0
|
|
235
235
|
});
|
|
236
236
|
try {
|
|
237
|
-
await
|
|
237
|
+
await _chunkWQEGXOUTjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
238
238
|
mode: "detached",
|
|
239
239
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
240
240
|
afterCliUpdate: {
|
|
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
|
|
|
261
261
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
262
262
|
var activeToolExecuteCommand = null;
|
|
263
263
|
function progressLine(line) {
|
|
264
|
-
if (!
|
|
264
|
+
if (!_chunkIZK2BLBWjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
265
265
|
}
|
|
266
266
|
function beginToolExecuteCommand() {
|
|
267
267
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|