deepline 0.3.560 → 0.3.562
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/runner-backends/backends/modal.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox-egress.ts +57 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +24 -2
- package/dist/cli/auth-FM3JO6FN.js +44 -0
- package/dist/cli/{auth-5DIOQ3MO.mjs → auth-OFHWBJ2W.mjs} +5 -5
- package/dist/cli/{billing-N5NS5CU6.js → billing-BORJ3ZHJ.js} +99 -99
- package/dist/cli/{billing-K7EJAM55.mjs → billing-PPOC7TAY.mjs} +8 -8
- package/dist/cli/{chunk-4CQ7LVRT.js → chunk-3BV2OD25.js} +48 -48
- package/dist/cli/{chunk-SCM6BR4Q.mjs → chunk-3OJLUVOS.mjs} +1 -1
- package/dist/cli/{chunk-5VC6K4NJ.js → chunk-4O47WP3B.js} +26 -26
- package/dist/cli/{chunk-ZXB2Y3SG.js → chunk-5COJEZSB.js} +4 -4
- package/dist/cli/{chunk-4PBYS3PS.mjs → chunk-5KMZR36E.mjs} +1 -1
- package/dist/cli/{chunk-V7ZOAXZ4.js → chunk-5NGS4RLF.js} +23 -23
- package/dist/cli/{chunk-GKONGPVW.mjs → chunk-5VXK34DQ.mjs} +5 -5
- package/dist/cli/{chunk-JQDVX3D4.mjs → chunk-5XS5BTMC.mjs} +4 -4
- package/dist/cli/{chunk-BQ2Z6PSE.mjs → chunk-5YQVEV7I.mjs} +5 -5
- package/dist/cli/{chunk-Q77PM7U2.js → chunk-6BGEW3KU.js} +20 -20
- package/dist/cli/{chunk-A62A73U6.mjs → chunk-7DRCIDPW.mjs} +3 -3
- package/dist/cli/{chunk-I7CQJ7JP.js → chunk-7HFWEQ6Y.js} +2 -2
- package/dist/cli/{chunk-OPT36HX4.js → chunk-7IHSJ3RD.js} +53 -53
- package/dist/cli/{chunk-V7OFUYMO.mjs → chunk-AAIYXQRJ.mjs} +2 -2
- package/dist/cli/{chunk-JYT6P2M2.js → chunk-AASSDBQ3.js} +2 -2
- package/dist/cli/{chunk-CQS5E6D2.js → chunk-CIEMDAJE.js} +100 -100
- package/dist/cli/{chunk-NNKZ4JYP.mjs → chunk-EHUUHKWY.mjs} +5 -5
- package/dist/cli/{chunk-7ZE6DF6B.js → chunk-EVZDU7CF.js} +3 -3
- package/dist/cli/{chunk-DOAD7ZCA.mjs → chunk-GAMCJW6E.mjs} +1 -1
- package/dist/cli/{chunk-LMY7CGI7.js → chunk-GAN6UYEN.js} +5 -5
- package/dist/cli/{chunk-UTPANENL.js → chunk-GH5R65SB.js} +12 -12
- package/dist/cli/{chunk-GTRGJITW.mjs → chunk-GWJ4EOW2.mjs} +11 -11
- package/dist/cli/{chunk-Y5CZWGO4.js → chunk-IQJQB7J6.js} +1 -1
- package/dist/cli/{chunk-E76MM3SC.js → chunk-J5P7VGV5.js} +20 -20
- package/dist/cli/{chunk-4MAY2TA3.mjs → chunk-J7XEUV5W.mjs} +2 -2
- package/dist/cli/{chunk-GR5WG72L.mjs → chunk-KJDS2X5S.mjs} +2 -2
- package/dist/cli/{chunk-AMUMEL4C.mjs → chunk-L4KUAJFR.mjs} +1 -1
- package/dist/cli/{chunk-4GRIMNDO.js → chunk-LJXFCEP2.js} +41 -41
- package/dist/cli/{chunk-JHS7WKRS.mjs → chunk-LK4LR4K7.mjs} +3 -3
- package/dist/cli/{chunk-F5CZ3Q2I.mjs → chunk-LXL7OZOG.mjs} +1 -1
- package/dist/cli/{chunk-24GZT76F.js → chunk-P6XJRHLF.js} +7 -7
- package/dist/cli/{chunk-YDWFE7MX.js → chunk-PDHLHEUL.js} +2 -2
- package/dist/cli/{chunk-UI7BBF2O.mjs → chunk-QC3NTBF7.mjs} +5 -5
- package/dist/cli/{chunk-KP4B3JOT.js → chunk-QWB4VW4T.js} +13 -13
- package/dist/cli/{chunk-TE2NSUT5.js → chunk-R5PPP3JU.js} +5 -5
- package/dist/cli/{chunk-5QMEJPN5.js → chunk-RFB52LP5.js} +8 -8
- package/dist/cli/{chunk-G33LSF4T.mjs → chunk-RKB536LB.mjs} +2 -2
- package/dist/cli/{chunk-BW4NVW5T.js → chunk-RYWWBTDB.js} +3 -3
- package/dist/cli/{chunk-OS3FDGKX.mjs → chunk-SQFWIUNP.mjs} +4 -4
- package/dist/cli/{chunk-A4X2O75M.mjs → chunk-UC2ATYB3.mjs} +2 -2
- package/dist/cli/{chunk-ZSDZ3Q5P.mjs → chunk-USA6QRDO.mjs} +1 -1
- package/dist/cli/{chunk-MBLPUJ5I.js → chunk-UVZQR7I6.js} +5 -5
- package/dist/cli/{chunk-ZJJUVUP6.mjs → chunk-UZ4ELBHM.mjs} +2 -2
- package/dist/cli/{chunk-WOZKGI6H.mjs → chunk-WDKU7NOR.mjs} +1 -1
- package/dist/cli/{chunk-XLM7L4UY.mjs → chunk-WFVL6A7I.mjs} +1 -1
- package/dist/cli/{chunk-CQJMFUMK.mjs → chunk-XHZFA67G.mjs} +1 -1
- package/dist/cli/{chunk-RQKCNQ5Q.mjs → chunk-YAXYFPBF.mjs} +2 -2
- package/dist/cli/{chunk-ZY64JRBV.js → chunk-YB6N6WKX.js} +10 -10
- package/dist/cli/{chunk-FW2WRBZO.js → chunk-YT4WIYFT.js} +9 -9
- package/dist/cli/{chunk-MCGR7NG3.js → chunk-YX47WHVT.js} +6 -6
- package/dist/cli/{chunk-Z4FWF237.js → chunk-Z2FC6UQQ.js} +15 -15
- package/dist/cli/{chunk-5XMABMQU.mjs → chunk-ZQLEEOZR.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-TCB2EKTR.mjs → concurrent-runs-help-IRM4PNIE.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-RGKC4GDM.js +22 -0
- package/dist/cli/{csv-R45YJYUO.mjs → csv-6T4CONXY.mjs} +4 -4
- package/dist/cli/{csv-DWC44DLD.js → csv-UEFHJV5P.js} +13 -13
- package/dist/cli/{db-XZXNKW7B.mjs → db-P6SN3JUE.mjs} +6 -6
- package/dist/cli/{db-XIN3KF47.js → db-PNDYQRRC.js} +27 -27
- package/dist/cli/describe-DDP4Q7SK.js +50 -0
- package/dist/cli/{describe-6KSAHJBD.mjs → describe-U2ZIQ4JH.mjs} +18 -18
- package/dist/cli/{executions-C3UZLR7Y.js → executions-7AOZES2Z.js} +8 -8
- package/dist/cli/{executions-RSPQRWYL.mjs → executions-WELIUVIV.mjs} +6 -6
- package/dist/cli/{feedback-7RCSKLW4.mjs → feedback-66WWUWIR.mjs} +6 -6
- package/dist/cli/{feedback-A7WP67XL.js → feedback-XTTK5GLD.js} +14 -14
- package/dist/cli/git-53OSBVPB.js +26 -0
- package/dist/cli/{git-JE6TFEK4.mjs → git-S23WMQAB.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-DEU3ZW5P.mjs → integrations-DEHG2ILN.mjs} +7 -7
- package/dist/cli/{integrations-L2D3EY3H.js → integrations-MPKN5JRT.js} +20 -20
- package/dist/cli/{legacy-noops-TL5PBCVQ.mjs → legacy-noops-7TU2COQH.mjs} +6 -6
- package/dist/cli/{legacy-noops-AHTEO6EF.js → legacy-noops-IKVIOTDJ.js} +9 -9
- package/dist/cli/{mcp-KXR7YJEG.js → mcp-5ZFZKBX2.js} +24 -24
- package/dist/cli/{mcp-PVRF5CGK.mjs → mcp-BGUKF2AA.mjs} +4 -4
- package/dist/cli/{monitors-BMGSROH3.mjs → monitors-2QZUTM7K.mjs} +7 -7
- package/dist/cli/{monitors-YHF6RQGU.js → monitors-EUSWYOUL.js} +100 -100
- package/dist/cli/{org-OO6LQPS6.mjs → org-FDA5EGQC.mjs} +6 -6
- package/dist/cli/{org-IQJO6DJ7.js → org-W4S2QIOX.js} +121 -121
- package/dist/cli/{outcomes-6QO6NEKO.mjs → outcomes-KZ7SM5TM.mjs} +6 -6
- package/dist/cli/{outcomes-NAEAOCNT.js → outcomes-WF34PZAX.js} +14 -14
- package/dist/cli/{play-MZQSOYVV.mjs → play-XHHJYBBZ.mjs} +19 -19
- package/dist/cli/{play-TYIBTW4E.js → play-XYJBKWRX.js} +324 -324
- package/dist/cli/{providers-JDSSPMWH.js → providers-SCT2LUCO.js} +9 -9
- package/dist/cli/{providers-JR4OWXRX.mjs → providers-WHPZMDA6.mjs} +6 -6
- package/dist/cli/{quickstart-T363ASLH.js → quickstart-IXLB34QZ.js} +6 -6
- package/dist/cli/{quickstart-JBX6BKGZ.mjs → quickstart-L45XFREM.mjs} +4 -4
- package/dist/cli/{run-J3KWBIXA.js → run-EZCUNFI7.js} +44 -44
- package/dist/cli/{run-6PWTGRJI.mjs → run-SAWTV6NP.mjs} +23 -23
- package/dist/cli/{search-XQG7UXAE.mjs → search-GW2P4KNN.mjs} +7 -7
- package/dist/cli/search-S5KQIDCG.js +32 -0
- package/dist/cli/{search-output-DNONJFPF.mjs → search-output-ASU6D6XX.mjs} +4 -4
- package/dist/cli/{search-output-YZYLNDU6.js → search-output-WRDJJFBW.js} +6 -6
- package/dist/cli/{secrets-SCKPXIT7.js → secrets-AAV7JKPF.js} +15 -15
- package/dist/cli/{secrets-MR7VXG74.mjs → secrets-N5EAETGP.mjs} +6 -6
- package/dist/cli/sessions-H33DKDTF.js +23 -0
- package/dist/cli/{sessions-MPIJTGWQ.mjs → sessions-WYISBB4D.mjs} +6 -6
- package/dist/cli/{settings-YPKR5JFF.js → settings-WOIN3AIB.js} +85 -85
- package/dist/cli/{settings-Y5NW74ER.mjs → settings-X7BTX2N3.mjs} +12 -12
- package/dist/cli/{setup-5RJCLRZI.mjs → setup-APLGF5BY.mjs} +9 -9
- package/dist/cli/{setup-673Q3LGR.js → setup-J3RS6UKU.js} +49 -49
- package/dist/cli/skills-7PT2KDQN.js +37 -0
- package/dist/cli/{skills-2QVBD4LD.mjs → skills-UGPVOIYQ.mjs} +7 -7
- package/dist/cli/{tools-627KG34F.mjs → tools-6WNR75VQ.mjs} +17 -17
- package/dist/cli/tools-Q2PVYNUE.js +57 -0
- package/dist/cli/update-C64JFIMU.js +37 -0
- package/dist/cli/{update-535TTARD.mjs → update-XG2EJRAG.mjs} +9 -9
- package/dist/cli/{views-FQNWZUWB.js → views-FSB6OV5N.js} +21 -21
- package/dist/cli/{views-3M24ZTXA.mjs → views-LUNVYDBY.mjs} +6 -6
- package/dist/cli/{workflow-H6F7WAOE.js → workflow-RWTUI4GA.js} +17 -17
- package/dist/cli/{workflow-CN46XZPG.mjs → workflow-TEJ7J2EQ.mjs} +7 -7
- 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-R2S7KYAA.js +0 -44
- package/dist/cli/concurrent-runs-help-TKAZVMA4.js +0 -22
- package/dist/cli/describe-WLRAQDYC.js +0 -50
- package/dist/cli/git-E6XV5MEY.js +0 -26
- package/dist/cli/search-DPVHT5MJ.js +0 -32
- package/dist/cli/sessions-VNWLXJR2.js +0 -23
- package/dist/cli/skills-YGFFPGCR.js +0 -37
- package/dist/cli/tools-2BC7K3ZU.js +0 -57
- package/dist/cli/update-HWEOSPDS.js +0 -37
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
concurrentRunsLine
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-AAIYXQRJ.mjs";
|
|
4
|
+
import "./chunk-LK4LR4K7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
DeeplineClient
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YAXYFPBF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
PUBLIC_PLAN_SKUS,
|
|
10
10
|
iterateCursorPages,
|
|
11
11
|
requireBillingIdempotencyKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LXL7OZOG.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-RKB536LB.mjs";
|
|
36
|
+
import "./chunk-XHZFA67G.mjs";
|
|
37
|
+
import "./chunk-L4KUAJFR.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-WFVL6A7I.mjs";
|
|
48
48
|
import "./chunk-WZYKRD7T.mjs";
|
|
49
49
|
import "./chunk-KRD6H754.mjs";
|
|
50
50
|
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkRYWWBTDBjs = require('./chunk-RYWWBTDB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -18,20 +18,20 @@ var _chunkE76MM3SCjs = require('./chunk-E76MM3SC.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk5COJEZSBjs = require('./chunk-5COJEZSB.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkIQJQB7J6js = require('./chunk-IQJQB7J6.js');
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
var _crypto = require('crypto');
|
|
@@ -66,7 +66,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
66
66
|
return value === "1" || value === "true" || value === "yes";
|
|
67
67
|
}
|
|
68
68
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
69
|
-
return _path.join.call(void 0,
|
|
69
|
+
return _path.join.call(void 0, _chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
70
70
|
}
|
|
71
71
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
72
72
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -74,9 +74,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
74
74
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
75
75
|
return JSON.stringify({
|
|
76
76
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
77
|
-
version:
|
|
78
|
-
apiContract:
|
|
79
|
-
apiMajor:
|
|
77
|
+
version: _chunk5COJEZSBjs.SDK_VERSION,
|
|
78
|
+
apiContract: _chunk5COJEZSBjs.SDK_API_CONTRACT,
|
|
79
|
+
apiMajor: _chunk5COJEZSBjs.SDK_API_MAJOR,
|
|
80
80
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
81
81
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
82
82
|
});
|
|
@@ -84,8 +84,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
84
84
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
85
85
|
return JSON.stringify({
|
|
86
86
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
87
|
-
version:
|
|
88
|
-
apiContract:
|
|
87
|
+
version: _chunk5COJEZSBjs.SDK_VERSION,
|
|
88
|
+
apiContract: _chunk5COJEZSBjs.SDK_API_CONTRACT,
|
|
89
89
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
90
90
|
});
|
|
91
91
|
}
|
|
@@ -110,7 +110,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
110
110
|
}
|
|
111
111
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
112
112
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
113
|
-
const path = _path.join.call(void 0,
|
|
113
|
+
const path = _path.join.call(void 0, _chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
114
114
|
try {
|
|
115
115
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
116
116
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -195,7 +195,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
195
195
|
const timeout = setTimeout(() => controller.abort(), timeoutMs);
|
|
196
196
|
try {
|
|
197
197
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
198
|
-
url.searchParams.set("version",
|
|
198
|
+
url.searchParams.set("version", _chunk5COJEZSBjs.SDK_VERSION);
|
|
199
199
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
200
200
|
url.searchParams.set("command", options.command.trim());
|
|
201
201
|
}
|
|
@@ -203,7 +203,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
203
203
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
204
204
|
url.searchParams.set(
|
|
205
205
|
"skills_cli_capability",
|
|
206
|
-
String(
|
|
206
|
+
String(_chunkIQJQB7J6js.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
207
207
|
);
|
|
208
208
|
}
|
|
209
209
|
if (options.catalog) {
|
|
@@ -215,14 +215,14 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
215
215
|
const response = await fetch(url, {
|
|
216
216
|
method: "GET",
|
|
217
217
|
headers: {
|
|
218
|
-
...
|
|
219
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
220
|
-
"X-Deepline-SDK-Version":
|
|
221
|
-
"X-Deepline-API-Major": String(
|
|
222
|
-
"X-Deepline-API-Contract":
|
|
218
|
+
..._chunk5COJEZSBjs.deploymentProtectionHeaders.call(void 0, ),
|
|
219
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5COJEZSBjs.SDK_VERSION}`,
|
|
220
|
+
"X-Deepline-SDK-Version": _chunk5COJEZSBjs.SDK_VERSION,
|
|
221
|
+
"X-Deepline-API-Major": String(_chunk5COJEZSBjs.SDK_API_MAJOR),
|
|
222
|
+
"X-Deepline-API-Contract": _chunk5COJEZSBjs.SDK_API_CONTRACT,
|
|
223
223
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
224
224
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
225
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
225
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkEVZDU7CFjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
226
226
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
227
227
|
},
|
|
228
228
|
signal: controller.signal
|
|
@@ -238,7 +238,7 @@ async function attemptSdkCompatibility(baseUrl, options, timeoutMs) {
|
|
|
238
238
|
if (!raw || typeof raw.ok !== "boolean" || typeof raw.status !== "string") {
|
|
239
239
|
return {
|
|
240
240
|
ok: false,
|
|
241
|
-
transient:
|
|
241
|
+
transient: _chunkEVZDU7CFjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
242
242
|
error: new Error(
|
|
243
243
|
`SDK compatibility endpoint returned a non-policy response (HTTP ${response.status}).`
|
|
244
244
|
)
|
|
@@ -309,8 +309,8 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
309
309
|
}
|
|
310
310
|
async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
311
311
|
if (shouldSkipCompatibilityCheck()) return null;
|
|
312
|
-
const maxRetries = _nullishCoalesce(options.maxRetries, () => (
|
|
313
|
-
const backoffMs = _nullishCoalesce(options.backoffMs, () => (
|
|
312
|
+
const maxRetries = _nullishCoalesce(options.maxRetries, () => ( _chunkEVZDU7CFjs.DEFAULT_MAX_RETRIES));
|
|
313
|
+
const backoffMs = _nullishCoalesce(options.backoffMs, () => ( _chunkEVZDU7CFjs.defaultRetryBackoffMs));
|
|
314
314
|
let attempt;
|
|
315
315
|
let attempts = 0;
|
|
316
316
|
for (; ; ) {
|
|
@@ -318,7 +318,7 @@ async function requireSdkCompatibility(baseUrl, options = {}) {
|
|
|
318
318
|
attempt = await attemptSdkCompatibility(
|
|
319
319
|
baseUrl,
|
|
320
320
|
options,
|
|
321
|
-
_nullishCoalesce(options.attemptTimeoutMs, () => (
|
|
321
|
+
_nullishCoalesce(options.attemptTimeoutMs, () => ( _chunkEVZDU7CFjs.DEFAULT_TIMEOUT))
|
|
322
322
|
);
|
|
323
323
|
if (attempt.ok) return acceptSdkCompatibility(baseUrl, options, attempt);
|
|
324
324
|
if (!attempt.transient || attempts > maxRetries) break;
|
|
@@ -467,7 +467,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
467
467
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
468
468
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
469
469
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
470
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
470
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkEVZDU7CFjs.DEFAULT_SKILL_AGENTS));
|
|
471
471
|
const values = {
|
|
472
472
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
473
473
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -598,25 +598,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
598
598
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
599
599
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
600
600
|
function shouldSkipSkillsSync() {
|
|
601
|
-
if (
|
|
601
|
+
if (_chunk5COJEZSBjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
602
602
|
return true;
|
|
603
603
|
}
|
|
604
604
|
const value = _optionalChain([process, 'access', _62 => _62.env, 'access', _63 => _63.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65(), 'access', _66 => _66.toLowerCase, 'call', _67 => _67()]);
|
|
605
605
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
606
606
|
}
|
|
607
607
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
608
|
-
return _path.join.call(void 0,
|
|
608
|
+
return _path.join.call(void 0, _chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
609
609
|
}
|
|
610
610
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
611
611
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
612
|
-
var agentLeaseSegment =
|
|
612
|
+
var agentLeaseSegment = _chunkEVZDU7CFjs.skillsAgentPathSegment;
|
|
613
613
|
function sortedLeaseAgents(agents) {
|
|
614
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
614
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkEVZDU7CFjs.KNOWN_SKILL_AGENTS] : agents;
|
|
615
615
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
616
616
|
}
|
|
617
617
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
618
618
|
return _path.join.call(void 0,
|
|
619
|
-
|
|
619
|
+
_chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
620
620
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
621
621
|
);
|
|
622
622
|
}
|
|
@@ -775,7 +775,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
775
775
|
constructor(baseUrl, error) {
|
|
776
776
|
const detail = error instanceof Error ? error.message : String(error);
|
|
777
777
|
super(
|
|
778
|
-
`Could not save skills state in ${
|
|
778
|
+
`Could not save skills state in ${_chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
779
779
|
);
|
|
780
780
|
this.name = "SkillsStateUnavailableError";
|
|
781
781
|
}
|
|
@@ -860,7 +860,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
860
860
|
}
|
|
861
861
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
862
862
|
return _path.join.call(void 0,
|
|
863
|
-
|
|
863
|
+
_chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
864
864
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
865
865
|
);
|
|
866
866
|
}
|
|
@@ -894,8 +894,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
894
894
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
895
895
|
}
|
|
896
896
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
897
|
-
if (shouldSkipSkillsSync() ||
|
|
898
|
-
const agents =
|
|
897
|
+
if (shouldSkipSkillsSync() || _chunkEVZDU7CFjs.hasActivePluginSkills.call(void 0, )) return;
|
|
898
|
+
const agents = _chunkEVZDU7CFjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
899
899
|
if (agents.length === 0) return;
|
|
900
900
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
901
901
|
}
|
|
@@ -918,7 +918,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
918
918
|
}
|
|
919
919
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
920
920
|
return _path.join.call(void 0,
|
|
921
|
-
|
|
921
|
+
_chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
922
922
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
923
923
|
);
|
|
924
924
|
}
|
|
@@ -947,7 +947,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
947
947
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
948
948
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
949
949
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
950
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
950
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _71 => _71.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkEVZDU7CFjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
951
951
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _72 => _72.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
952
952
|
notice(
|
|
953
953
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1035,7 +1035,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1035
1035
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1036
1036
|
}
|
|
1037
1037
|
function isDefaultAgentSet(agents) {
|
|
1038
|
-
return agents.length ===
|
|
1038
|
+
return agents.length === _chunkEVZDU7CFjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkEVZDU7CFjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1039
1039
|
}
|
|
1040
1040
|
function safeSkillFilePath(value) {
|
|
1041
1041
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1192,10 +1192,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1192
1192
|
method: "POST",
|
|
1193
1193
|
headers: { "Content-Type": "application/json" },
|
|
1194
1194
|
body: JSON.stringify({
|
|
1195
|
-
sdk_cli: { version:
|
|
1195
|
+
sdk_cli: { version: _chunk5COJEZSBjs.SDK_VERSION },
|
|
1196
1196
|
skills: {
|
|
1197
1197
|
version: localVersion,
|
|
1198
|
-
capability:
|
|
1198
|
+
capability: _chunkIQJQB7J6js.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1199
1199
|
}
|
|
1200
1200
|
}),
|
|
1201
1201
|
signal: controller.signal
|
|
@@ -1234,7 +1234,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
function noInstallerProbePath(baseUrl) {
|
|
1236
1236
|
return _path.join.call(void 0,
|
|
1237
|
-
|
|
1237
|
+
_chunkEVZDU7CFjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1238
1238
|
"skills-sync-no-installer-unknown.json"
|
|
1239
1239
|
);
|
|
1240
1240
|
}
|
|
@@ -1314,7 +1314,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1314
1314
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1315
1315
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1316
1316
|
}
|
|
1317
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1317
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkEVZDU7CFjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1318
1318
|
const commands = [];
|
|
1319
1319
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1320
1320
|
if (probes.bunx === "available") {
|
|
@@ -1458,7 +1458,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1458
1458
|
}
|
|
1459
1459
|
}
|
|
1460
1460
|
function writeSdkSkillsStatusLine(line) {
|
|
1461
|
-
const progress =
|
|
1461
|
+
const progress = _chunkRYWWBTDBjs.getActiveCliProgress.call(void 0, );
|
|
1462
1462
|
if (progress) {
|
|
1463
1463
|
progress.writeLine(line);
|
|
1464
1464
|
return;
|
|
@@ -1469,11 +1469,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1469
1469
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1470
1470
|
const skip = shouldSkipSkillsSync();
|
|
1471
1471
|
if (skip && !options.claim) return;
|
|
1472
|
-
const usingPluginSkills =
|
|
1472
|
+
const usingPluginSkills = _chunkEVZDU7CFjs.hasActivePluginSkills.call(void 0, );
|
|
1473
1473
|
if (usingPluginSkills) {
|
|
1474
1474
|
return;
|
|
1475
1475
|
}
|
|
1476
|
-
const agents =
|
|
1476
|
+
const agents = _chunkEVZDU7CFjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1477
1477
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1478
1478
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1479
1479
|
}
|
|
@@ -1510,7 +1510,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1510
1510
|
return;
|
|
1511
1511
|
}
|
|
1512
1512
|
try {
|
|
1513
|
-
const localVersion =
|
|
1513
|
+
const localVersion = _chunkEVZDU7CFjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1514
1514
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1515
1515
|
needsUpdate: options.update.needs_update,
|
|
1516
1516
|
remoteVersion: options.update.remote.version
|
|
@@ -1632,7 +1632,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1632
1632
|
update.remoteVersion,
|
|
1633
1633
|
agents
|
|
1634
1634
|
);
|
|
1635
|
-
void
|
|
1635
|
+
void _chunkJ5P7VGV5js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1636
1636
|
baseUrl,
|
|
1637
1637
|
remoteSkillsVersion: update.remoteVersion,
|
|
1638
1638
|
agents,
|
|
@@ -1663,7 +1663,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1663
1663
|
notice(
|
|
1664
1664
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1665
1665
|
);
|
|
1666
|
-
void
|
|
1666
|
+
void _chunkJ5P7VGV5js.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1667
1667
|
baseUrl,
|
|
1668
1668
|
remoteSkillsVersion: update.remoteVersion,
|
|
1669
1669
|
agents,
|
|
@@ -1676,7 +1676,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
}
|
|
1678
1678
|
runLegacySkillsCleanup(agents);
|
|
1679
|
-
if (!
|
|
1679
|
+
if (!_chunkEVZDU7CFjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1680
1680
|
notice(
|
|
1681
1681
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1682
1682
|
);
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEVZDU7CFjs = require('./chunk-EVZDU7CF.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkEVZDU7CFjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkJ5P7VGV5js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkJ5P7VGV5js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkJ5P7VGV5js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -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 _chunkIQJQB7J6js = require('./chunk-IQJQB7J6.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 = _chunkIQJQB7J6js.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunkIQJQB7J6js.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkIQJQB7J6js.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');
|