deepline 0.3.411 → 0.3.412
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/observability/scheduled-jobs.json +11 -11
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +0 -1
- package/dist/cli/{auth-YD6ZTMB2.mjs → auth-5WYYDPSS.mjs} +4 -4
- package/dist/cli/auth-74ZWRI3Y.js +40 -0
- package/dist/cli/{billing-2L3MOB42.js → billing-Q4IGAZM4.js} +73 -73
- package/dist/cli/{billing-ZT46GV4C.mjs → billing-W6GVSCH5.mjs} +4 -4
- package/dist/cli/{chunk-5LRWWMRV.mjs → chunk-4MGLO7M4.mjs} +5 -5
- package/dist/cli/{chunk-U5AQKE3T.js → chunk-6C76C6Y2.js} +10 -10
- package/dist/cli/{chunk-FRVPOXGB.js → chunk-6RFLMMPH.js} +79 -79
- package/dist/cli/{chunk-VGHWJL4W.js → chunk-7BSHG3ZS.js} +8 -8
- package/dist/cli/{chunk-PO2VU6WV.mjs → chunk-7GHGSZWQ.mjs} +2 -2
- package/dist/cli/{chunk-RMINBDYY.js → chunk-DB3MSMSY.js} +1 -1
- package/dist/cli/{chunk-E4KBNNNB.mjs → chunk-DM73SDE2.mjs} +1 -1
- package/dist/cli/{chunk-RFES6Q2J.mjs → chunk-F33BPBKI.mjs} +8 -8
- package/dist/cli/{chunk-XJD6LZCO.mjs → chunk-FGSO6IAE.mjs} +1 -1
- package/dist/cli/{chunk-LWBM5FFL.js → chunk-FHTZ3R4G.js} +50 -50
- package/dist/cli/{chunk-IPGV6VFA.mjs → chunk-FIFKM6G3.mjs} +3 -3
- package/dist/cli/{chunk-XAB47ZRV.mjs → chunk-FOIP7GXL.mjs} +4 -4
- package/dist/cli/{chunk-4O4WNFFC.js → chunk-FYDJ6NSG.js} +16 -16
- package/dist/cli/{chunk-TPFD4F5S.js → chunk-GK3JUYPD.js} +52 -52
- package/dist/cli/{chunk-2WUY3VNK.js → chunk-JA7XAQBY.js} +2 -2
- package/dist/cli/{chunk-JQMZUWNM.mjs → chunk-JALHTLZM.mjs} +2 -2
- package/dist/cli/{chunk-4BA6ATHA.mjs → chunk-JDIAC2BK.mjs} +2 -2
- package/dist/cli/{chunk-M6OASCVL.mjs → chunk-M6NQSTJM.mjs} +2 -2
- package/dist/cli/{chunk-UAEVKAUR.mjs → chunk-MBKEAA6L.mjs} +1 -1
- package/dist/cli/{chunk-BJV3VSKE.mjs → chunk-NVHWQTA4.mjs} +1 -1
- package/dist/cli/{chunk-5IGDNBG7.js → chunk-OVLRV3NQ.js} +26 -26
- package/dist/cli/{chunk-OZSC6CEW.js → chunk-PULUIGSP.js} +4 -4
- package/dist/cli/{chunk-JYHSEGRM.js → chunk-QC32WGLZ.js} +8 -8
- package/dist/cli/{chunk-IR3AKJAY.mjs → chunk-QZAULZCB.mjs} +3 -3
- package/dist/cli/{chunk-G43JLBDE.mjs → chunk-RH56MSI7.mjs} +3 -3
- package/dist/cli/{chunk-6AUE6JXY.js → chunk-S5O4LO6W.js} +6 -6
- package/dist/cli/{chunk-NQWIZ5PZ.js → chunk-SYT7RJRI.js} +20 -20
- package/dist/cli/{chunk-7DSMMCXP.js → chunk-TGUN2XDX.js} +35 -35
- package/dist/cli/{chunk-2NI6DHN7.js → chunk-TZT3V6LW.js} +2 -2
- package/dist/cli/{chunk-OGSXENOF.mjs → chunk-UXELXDNZ.mjs} +1 -1
- package/dist/cli/{chunk-E52TKKVI.mjs → chunk-UYZBTMDO.mjs} +1 -1
- package/dist/cli/{chunk-ZHWBU36H.js → chunk-YOV67QUS.js} +6 -6
- package/dist/cli/{csv-SVDP2EU7.js → csv-GNFJ6RKP.js} +12 -12
- package/dist/cli/{csv-BKNRRW7D.mjs → csv-Q7PJOSBH.mjs} +3 -3
- package/dist/cli/{db-LU4KLRM6.mjs → db-CKW53ES3.mjs} +4 -4
- package/dist/cli/{db-OQ6S7TTZ.js → db-FP6S3MI2.js} +25 -25
- package/dist/cli/{describe-U4KOGDRA.mjs → describe-H75P2IBB.mjs} +12 -12
- package/dist/cli/{describe-45TGETKR.js → describe-QIMJDGX7.js} +16 -16
- package/dist/cli/{executions-2GAAUXLA.mjs → executions-J45V36FF.mjs} +4 -4
- package/dist/cli/{executions-VZN56VRC.js → executions-KDW4JKCD.js} +6 -6
- package/dist/cli/{feedback-XW5IWA5R.mjs → feedback-5PCSAM2L.mjs} +3 -3
- package/dist/cli/{feedback-NS76B5GU.js → feedback-QFLKEJR4.js} +7 -7
- package/dist/cli/{git-CLI66XP6.mjs → git-CR7TNVT5.mjs} +4 -4
- package/dist/cli/git-QITMGUCQ.js +24 -0
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-HCFB3ZOV.js → legacy-noops-C7I7R5LI.js} +7 -7
- package/dist/cli/{legacy-noops-ODDOMLBL.mjs → legacy-noops-Z3MKA3CJ.mjs} +4 -4
- package/dist/cli/{monitors-7WXQ7JFT.js → monitors-2DXNU4BI.js} +84 -84
- package/dist/cli/{monitors-ZXX456TE.mjs → monitors-J4CWREBM.mjs} +4 -4
- package/dist/cli/{org-YLX5PHBQ.js → org-CDAGTXYJ.js} +64 -64
- package/dist/cli/{org-YUN3TLNP.mjs → org-IQ3QRJKF.mjs} +4 -4
- package/dist/cli/{play-LL73A7EP.mjs → play-M5ENSOBU.mjs} +10 -10
- package/dist/cli/{play-YGOXL52D.js → play-XEP6F74B.js} +283 -283
- package/dist/cli/{providers-RHCIU2PX.js → providers-DQRKIVHT.js} +7 -7
- package/dist/cli/{providers-35QSAUHL.mjs → providers-HILDAJMX.mjs} +4 -4
- package/dist/cli/{quickstart-6BN3LCZH.mjs → quickstart-MCONKXHJ.mjs} +3 -3
- package/dist/cli/{quickstart-ORMM4NRK.js → quickstart-ZRQ4AXWU.js} +5 -5
- package/dist/cli/{search-GAERWLSE.mjs → search-UW4Y5XR5.mjs} +5 -5
- package/dist/cli/search-WE3HU2GC.js +30 -0
- package/dist/cli/{secrets-3AFCTGT7.js → secrets-LGQIOXNO.js} +13 -13
- package/dist/cli/{secrets-FCL5PALY.mjs → secrets-V7SPGC2S.mjs} +4 -4
- package/dist/cli/{sessions-RSSL7I7O.mjs → sessions-B2PAQIKT.mjs} +4 -4
- package/dist/cli/{sessions-3OEHEQG7.js → sessions-N3FBI7JX.js} +5 -5
- package/dist/cli/{settings-RX5K4I7H.js → settings-2X4EYOZI.js} +75 -75
- package/dist/cli/{settings-GE4NRE7Y.mjs → settings-BJCYMO6H.mjs} +8 -8
- package/dist/cli/{setup-N3ZNAEL5.js → setup-C3HP5VZ7.js} +42 -42
- package/dist/cli/{setup-X3RXGG4F.mjs → setup-X7AN2BVT.mjs} +7 -7
- package/dist/cli/{skills-5JEAJBDE.mjs → skills-FNU3JALS.mjs} +5 -5
- package/dist/cli/skills-PUR6FRM3.js +29 -0
- package/dist/cli/{tools-JOKUWEBZ.mjs → tools-MYGGTMP3.mjs} +12 -12
- package/dist/cli/tools-Z2HU65ZF.js +44 -0
- package/dist/cli/update-NG3YIH3A.js +31 -0
- package/dist/cli/{update-UBHEVFR3.mjs → update-OEEMTBYF.mjs} +7 -7
- package/dist/cli/{workflow-SZAVOHN6.js → workflow-6T7PM6BK.js} +15 -15
- package/dist/cli/{workflow-FR6EXAXF.mjs → workflow-XM3P2CDD.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +78 -78
- 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/package.json +1 -1
- package/dist/cli/auth-M7TBLW55.js +0 -40
- package/dist/cli/git-VGYRGFEN.js +0 -24
- package/dist/cli/search-EWDMUPHR.js +0 -30
- package/dist/cli/skills-VAAQVEQC.js +0 -29
- package/dist/cli/tools-BYYOT2DU.js +0 -44
- package/dist/cli/update-36G4ZD7B.js +0 -31
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYOV67QUSjs = require('./chunk-YOV67QUS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkPULUIGSPjs = require('./chunk-PULUIGSP.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkDB3MSMSYjs = require('./chunk-DB3MSMSY.js');
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
var _crypto = require('crypto');
|
|
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
58
58
|
return value === "1" || value === "true" || value === "yes";
|
|
59
59
|
}
|
|
60
60
|
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, )) {
|
|
61
|
-
return _path.join.call(void 0,
|
|
61
|
+
return _path.join.call(void 0, _chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
62
62
|
}
|
|
63
63
|
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, )) {
|
|
64
64
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
66
66
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
67
67
|
return JSON.stringify({
|
|
68
68
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
69
|
-
version:
|
|
70
|
-
apiContract:
|
|
71
|
-
apiMajor:
|
|
69
|
+
version: _chunkPULUIGSPjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkPULUIGSPjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkPULUIGSPjs.SDK_API_MAJOR,
|
|
72
72
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
73
73
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
74
74
|
});
|
|
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
76
76
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
77
77
|
return JSON.stringify({
|
|
78
78
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
79
|
-
version:
|
|
80
|
-
apiContract:
|
|
79
|
+
version: _chunkPULUIGSPjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkPULUIGSPjs.SDK_API_CONTRACT,
|
|
81
81
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
102
102
|
}
|
|
103
103
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
104
104
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
105
|
-
const path = _path.join.call(void 0,
|
|
105
|
+
const path = _path.join.call(void 0, _chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
106
106
|
try {
|
|
107
107
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
108
108
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
186
186
|
);
|
|
187
187
|
try {
|
|
188
188
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
189
|
-
url.searchParams.set("version",
|
|
189
|
+
url.searchParams.set("version", _chunkPULUIGSPjs.SDK_VERSION);
|
|
190
190
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
191
191
|
url.searchParams.set("command", options.command.trim());
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
194
194
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
195
195
|
url.searchParams.set(
|
|
196
196
|
"skills_cli_capability",
|
|
197
|
-
String(
|
|
197
|
+
String(_chunkDB3MSMSYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
if (options.catalog) {
|
|
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
206
206
|
const response = await fetch(url, {
|
|
207
207
|
method: "GET",
|
|
208
208
|
headers: {
|
|
209
|
-
...
|
|
210
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
211
|
-
"X-Deepline-SDK-Version":
|
|
212
|
-
"X-Deepline-API-Major": String(
|
|
213
|
-
"X-Deepline-API-Contract":
|
|
209
|
+
..._chunkPULUIGSPjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkPULUIGSPjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkPULUIGSPjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkPULUIGSPjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkPULUIGSPjs.SDK_API_CONTRACT,
|
|
214
214
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
215
215
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
216
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
216
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkPULUIGSPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
217
217
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
218
218
|
},
|
|
219
219
|
signal: controller.signal
|
|
@@ -370,7 +370,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
370
370
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
371
371
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
372
372
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
373
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
373
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkPULUIGSPjs.DEFAULT_SKILL_AGENTS));
|
|
374
374
|
const values = {
|
|
375
375
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
376
376
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -409,7 +409,7 @@ var CliProgress = (_class = class {
|
|
|
409
409
|
|
|
410
410
|
// --json output is one JSON document: progress never renders under it.
|
|
411
411
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
|
|
412
|
-
this.enabled = enabled && !
|
|
412
|
+
this.enabled = enabled && !_chunkYOV67QUSjs.isJsonOutputMode.call(void 0, );
|
|
413
413
|
}
|
|
414
414
|
phase(message) {
|
|
415
415
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -434,7 +434,7 @@ var CliProgress = (_class = class {
|
|
|
434
434
|
this.settle("\u2717");
|
|
435
435
|
}
|
|
436
436
|
writeLogLine(line) {
|
|
437
|
-
if (
|
|
437
|
+
if (_chunkYOV67QUSjs.isJsonOutputMode.call(void 0, )) return;
|
|
438
438
|
if (!this.enabled) {
|
|
439
439
|
process.stderr.write(`${line}
|
|
440
440
|
`);
|
|
@@ -736,7 +736,7 @@ function buildEnvironmentContext() {
|
|
|
736
736
|
node_version: process.version,
|
|
737
737
|
runtime: "Node.js",
|
|
738
738
|
hostname: _os.hostname.call(void 0, ),
|
|
739
|
-
agent_runtime:
|
|
739
|
+
agent_runtime: _chunkPULUIGSPjs.detectAgentRuntime.call(void 0, )
|
|
740
740
|
};
|
|
741
741
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
742
742
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -758,15 +758,15 @@ function buildEnvironmentContext() {
|
|
|
758
758
|
}
|
|
759
759
|
function failureReportHeaders(apiKey) {
|
|
760
760
|
return {
|
|
761
|
-
...
|
|
761
|
+
..._chunkPULUIGSPjs.deploymentProtectionHeaders.call(void 0, ),
|
|
762
762
|
Authorization: `Bearer ${apiKey}`,
|
|
763
763
|
"Content-Type": "application/json",
|
|
764
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
764
|
+
"User-Agent": `deepline-ts-sdk/${_chunkPULUIGSPjs.SDK_VERSION}`,
|
|
765
765
|
"X-Deepline-Client-Family": "sdk",
|
|
766
766
|
"X-Deepline-CLI-Family": "sdk",
|
|
767
|
-
"X-Deepline-Agent-Runtime":
|
|
768
|
-
"X-Deepline-CLI-Version":
|
|
769
|
-
"X-Deepline-SDK-Version":
|
|
767
|
+
"X-Deepline-Agent-Runtime": _chunkPULUIGSPjs.detectAgentRuntime.call(void 0, ),
|
|
768
|
+
"X-Deepline-CLI-Version": _chunkPULUIGSPjs.SDK_VERSION,
|
|
769
|
+
"X-Deepline-SDK-Version": _chunkPULUIGSPjs.SDK_VERSION
|
|
770
770
|
};
|
|
771
771
|
}
|
|
772
772
|
async function postFailureReport(input) {
|
|
@@ -794,7 +794,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
794
794
|
if (isFailureReportingDisabled()) return false;
|
|
795
795
|
let apiKey = "";
|
|
796
796
|
try {
|
|
797
|
-
apiKey =
|
|
797
|
+
apiKey = _chunkPULUIGSPjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
798
798
|
} catch (e9) {
|
|
799
799
|
return false;
|
|
800
800
|
}
|
|
@@ -821,7 +821,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
821
821
|
failure_code: failureCode2,
|
|
822
822
|
failure_stage: failureStage,
|
|
823
823
|
error_body: "Automatic Deepline skills installation failed.",
|
|
824
|
-
cli_version:
|
|
824
|
+
cli_version: _chunkPULUIGSPjs.SDK_VERSION,
|
|
825
825
|
context: {
|
|
826
826
|
environment: buildEnvironmentContext(),
|
|
827
827
|
skills_sync: {
|
|
@@ -941,7 +941,7 @@ function buildFailureReport(input) {
|
|
|
941
941
|
failure_kind: failureKind,
|
|
942
942
|
failure_code: code,
|
|
943
943
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
944
|
-
cli_version:
|
|
944
|
+
cli_version: _chunkPULUIGSPjs.SDK_VERSION,
|
|
945
945
|
context: {
|
|
946
946
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
947
947
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -961,8 +961,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
961
961
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
962
962
|
const exitCode = resolvedExitCode(input);
|
|
963
963
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
964
|
-
const baseUrl =
|
|
965
|
-
const apiKey =
|
|
964
|
+
const baseUrl = _chunkPULUIGSPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
965
|
+
const apiKey = _chunkPULUIGSPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
966
966
|
if (!apiKey) return false;
|
|
967
967
|
return postFailureReport({
|
|
968
968
|
baseUrl,
|
|
@@ -999,25 +999,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
999
999
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1000
1000
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1001
1001
|
function shouldSkipSkillsSync() {
|
|
1002
|
-
if (
|
|
1002
|
+
if (_chunkPULUIGSPjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1003
1003
|
return true;
|
|
1004
1004
|
}
|
|
1005
1005
|
const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
|
|
1006
1006
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1007
1007
|
}
|
|
1008
1008
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1009
|
-
return _path.join.call(void 0,
|
|
1009
|
+
return _path.join.call(void 0, _chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1010
1010
|
}
|
|
1011
1011
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1012
1012
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1013
|
-
var agentLeaseSegment =
|
|
1013
|
+
var agentLeaseSegment = _chunkPULUIGSPjs.skillsAgentPathSegment;
|
|
1014
1014
|
function sortedLeaseAgents(agents) {
|
|
1015
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1015
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkPULUIGSPjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1016
1016
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1017
1017
|
}
|
|
1018
1018
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1019
1019
|
return _path.join.call(void 0,
|
|
1020
|
-
|
|
1020
|
+
_chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1021
1021
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
@@ -1176,7 +1176,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1176
1176
|
constructor(baseUrl, error) {
|
|
1177
1177
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1178
1178
|
super(
|
|
1179
|
-
`Could not save skills state in ${
|
|
1179
|
+
`Could not save skills state in ${_chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1180
1180
|
);
|
|
1181
1181
|
this.name = "SkillsStateUnavailableError";
|
|
1182
1182
|
}
|
|
@@ -1261,7 +1261,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1263
1263
|
return _path.join.call(void 0,
|
|
1264
|
-
|
|
1264
|
+
_chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1265
1265
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1266
1266
|
);
|
|
1267
1267
|
}
|
|
@@ -1295,8 +1295,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1295
1295
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1296
1296
|
}
|
|
1297
1297
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1298
|
-
if (shouldSkipSkillsSync() ||
|
|
1299
|
-
const agents =
|
|
1298
|
+
if (shouldSkipSkillsSync() || _chunkPULUIGSPjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1299
|
+
const agents = _chunkPULUIGSPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1300
1300
|
if (agents.length === 0) return;
|
|
1301
1301
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1302
1302
|
}
|
|
@@ -1312,7 +1312,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1312
1312
|
}
|
|
1313
1313
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1314
1314
|
return _path.join.call(void 0,
|
|
1315
|
-
|
|
1315
|
+
_chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1316
1316
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1317
1317
|
);
|
|
1318
1318
|
}
|
|
@@ -1341,7 +1341,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1341
1341
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1342
1342
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1343
1343
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1344
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1344
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkPULUIGSPjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1345
1345
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.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.`;
|
|
1346
1346
|
notice(
|
|
1347
1347
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1429,7 +1429,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1429
1429
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1430
1430
|
}
|
|
1431
1431
|
function isDefaultAgentSet(agents) {
|
|
1432
|
-
return agents.length ===
|
|
1432
|
+
return agents.length === _chunkPULUIGSPjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkPULUIGSPjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1433
1433
|
}
|
|
1434
1434
|
function safeSkillFilePath(value) {
|
|
1435
1435
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1586,10 +1586,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1586
1586
|
method: "POST",
|
|
1587
1587
|
headers: { "Content-Type": "application/json" },
|
|
1588
1588
|
body: JSON.stringify({
|
|
1589
|
-
sdk_cli: { version:
|
|
1589
|
+
sdk_cli: { version: _chunkPULUIGSPjs.SDK_VERSION },
|
|
1590
1590
|
skills: {
|
|
1591
1591
|
version: localVersion,
|
|
1592
|
-
capability:
|
|
1592
|
+
capability: _chunkDB3MSMSYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1593
1593
|
}
|
|
1594
1594
|
}),
|
|
1595
1595
|
signal: controller.signal
|
|
@@ -1628,7 +1628,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
function noInstallerProbePath(baseUrl) {
|
|
1630
1630
|
return _path.join.call(void 0,
|
|
1631
|
-
|
|
1631
|
+
_chunkPULUIGSPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1632
1632
|
"skills-sync-no-installer-unknown.json"
|
|
1633
1633
|
);
|
|
1634
1634
|
}
|
|
@@ -1707,7 +1707,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1707
1707
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1708
1708
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1709
1709
|
}
|
|
1710
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1710
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkPULUIGSPjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1711
1711
|
const commands = [];
|
|
1712
1712
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1713
1713
|
if (probes.bunx === "available") {
|
|
@@ -1859,11 +1859,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1861
1861
|
if (shouldSkipSkillsSync()) return;
|
|
1862
|
-
const usingPluginSkills =
|
|
1862
|
+
const usingPluginSkills = _chunkPULUIGSPjs.hasActivePluginSkills.call(void 0, );
|
|
1863
1863
|
if (usingPluginSkills) {
|
|
1864
1864
|
return;
|
|
1865
1865
|
}
|
|
1866
|
-
const agents =
|
|
1866
|
+
const agents = _chunkPULUIGSPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1867
1867
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1868
1868
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1869
1869
|
}
|
|
@@ -1891,7 +1891,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1891
1891
|
return;
|
|
1892
1892
|
}
|
|
1893
1893
|
try {
|
|
1894
|
-
const localVersion =
|
|
1894
|
+
const localVersion = _chunkPULUIGSPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1895
1895
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1896
1896
|
needsUpdate: options.update.needs_update,
|
|
1897
1897
|
remoteVersion: options.update.remote.version
|
|
@@ -2057,7 +2057,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
}
|
|
2059
2059
|
runLegacySkillsCleanup(agents);
|
|
2060
|
-
if (!
|
|
2060
|
+
if (!_chunkPULUIGSPjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2061
2061
|
notice(
|
|
2062
2062
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2063
2063
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkYOV67QUSjs = require('./chunk-YOV67QUS.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkYOV67QUSjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NVHWQTA4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-QZAULZCB.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FGSO6IAE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UYZBTMDO.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FGSO6IAE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UYZBTMDO.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkYOV67QUSjs = require('./chunk-YOV67QUS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPULUIGSPjs = require('./chunk-PULUIGSP.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkYOV67QUSjs.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 = _chunkPULUIGSPjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkYOV67QUSjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.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
|
+
_chunkYOV67QUSjs.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 } = _chunkYOV67QUSjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkYOV67QUSjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkDB3MSMSYjs = require('./chunk-DB3MSMSY.js');
|
|
21
21
|
|
|
22
22
|
// src/config.ts
|
|
23
23
|
|
|
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
// src/version.ts
|
|
652
|
-
var SDK_VERSION =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunkDB3MSMSYjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunkDB3MSMSYjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkDB3MSMSYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|