deepline 0.3.321 → 0.3.323
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 +0 -18
- package/dist/cli/{auth-OXD3QIJW.mjs → auth-4TYSEEPE.mjs} +4 -4
- package/dist/cli/auth-KWPQ4JVV.js +31 -0
- package/dist/cli/{billing-6YZHF6FJ.js → billing-HYX3OWXB.js} +70 -70
- package/dist/cli/{billing-XT3T2V6Z.mjs → billing-QDER3JLM.mjs} +4 -4
- package/dist/cli/{chunk-MMIICHOJ.mjs → chunk-2HYJDTQT.mjs} +2 -2
- package/dist/cli/{chunk-4QF3GTLM.mjs → chunk-3I4KDUKY.mjs} +3 -3
- package/dist/cli/{chunk-P5BBV56E.mjs → chunk-3OTHDXTV.mjs} +1 -1
- package/dist/cli/{chunk-LXVHOTPH.mjs → chunk-BC3E7GEW.mjs} +5 -5
- package/dist/cli/{chunk-23LWIJU5.js → chunk-BEG62AQW.js} +1 -1
- package/dist/cli/{chunk-SIU6LJAM.mjs → chunk-CXJND6CJ.mjs} +2 -2
- package/dist/cli/{chunk-GNXG6BQI.js → chunk-EWFKMQFO.js} +50 -50
- package/dist/cli/{chunk-7V6BVNXM.mjs → chunk-FGD2M25K.mjs} +1 -1
- package/dist/cli/{chunk-PVSES2RR.js → chunk-FNKBVKQX.js} +15 -15
- package/dist/cli/{chunk-WRS3ZBVF.js → chunk-GUPKB4UE.js} +2 -2
- package/dist/cli/{chunk-Q7I47LE7.mjs → chunk-HJN5KR42.mjs} +1 -1
- package/dist/cli/{chunk-FBJSFMZM.js → chunk-HSZD4VBE.js} +4 -4
- package/dist/cli/{chunk-KN5AMK2N.js → chunk-HUQVA5MR.js} +48 -48
- package/dist/cli/{chunk-KZ4S6URN.js → chunk-I7TAO4XH.js} +6 -6
- package/dist/cli/{chunk-TFNUR4VK.mjs → chunk-JGTV5QNG.mjs} +6 -6
- package/dist/cli/{chunk-ZEO3FTS5.js → chunk-KLIHE4X5.js} +6 -6
- package/dist/cli/{chunk-KLY2SA5G.js → chunk-LXUY7LRE.js} +60 -60
- package/dist/cli/{chunk-57VCSLVP.js → chunk-M2WAAIM4.js} +6 -6
- package/dist/cli/{chunk-VF3SOXGE.js → chunk-OQPG3ND3.js} +26 -26
- package/dist/cli/{chunk-QVH4OR5R.mjs → chunk-UE55ECMI.mjs} +1 -1
- package/dist/cli/{chunk-PVHEPQR6.js → chunk-UMUH2FVZ.js} +6 -6
- package/dist/cli/{chunk-SLAJLTYQ.mjs → chunk-VN433ENM.mjs} +2 -2
- package/dist/cli/{chunk-T6BFDDO7.mjs → chunk-W2V624T6.mjs} +1 -1
- package/dist/cli/{chunk-N7FB2EYO.js → chunk-WOG5IKUF.js} +220 -220
- package/dist/cli/{chunk-GCKI434X.mjs → chunk-YY6EASRE.mjs} +4 -4
- package/dist/cli/{chunk-Y2O2LTUU.mjs → chunk-ZF6WOSMW.mjs} +1 -1
- package/dist/cli/{client-GEADN6HT.mjs → client-CEX7EHUM.mjs} +3 -3
- package/dist/cli/client-YMQ2QFV7.js +20 -0
- package/dist/cli/{csv-72X7YZWZ.js → csv-GBPRJ6YU.js} +12 -12
- package/dist/cli/{csv-47ALCDUF.mjs → csv-LR5KWOIK.mjs} +3 -3
- package/dist/cli/{db-LOC34Z5E.mjs → db-4BMCUU34.mjs} +4 -4
- package/dist/cli/{db-22ZO4JUX.js → db-VFKXAHQA.js} +20 -20
- package/dist/cli/{describe-TWBIOBVP.js → describe-BYWGWALB.js} +15 -15
- package/dist/cli/{describe-4W6RA7DZ.mjs → describe-VTLU5KX5.mjs} +8 -8
- package/dist/cli/{executions-7RGT2PNM.js → executions-DU7I6YEU.js} +6 -6
- package/dist/cli/{executions-MVY4577L.mjs → executions-NGREVSY6.mjs} +4 -4
- package/dist/cli/{feedback-IFQH4TNG.mjs → feedback-GUY2CCGF.mjs} +3 -3
- package/dist/cli/{feedback-TQMC2VPS.js → feedback-PHPAWVHC.js} +6 -6
- package/dist/cli/{git-F7G4NWNH.mjs → git-22YV3DFJ.mjs} +4 -4
- package/dist/cli/git-W5NEI2BP.js +23 -0
- package/dist/cli/index.js +75 -75
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-T6TPBUI7.js → legacy-noops-V72GCF5R.js} +7 -7
- package/dist/cli/{legacy-noops-DNGJQ2LB.mjs → legacy-noops-YEQDVI6U.mjs} +4 -4
- package/dist/cli/{monitors-7ZCIBU3A.js → monitors-MVJBQDQG.js} +85 -85
- package/dist/cli/{monitors-6LOEYFPU.mjs → monitors-QOCAMBRV.mjs} +4 -4
- package/dist/cli/{org-QNOMTNYG.mjs → org-A53XV2UQ.mjs} +4 -4
- package/dist/cli/{org-IY5J5UV2.js → org-DMIOMJK6.js} +60 -60
- package/dist/cli/{play-DYYJFFCL.mjs → play-73L74CUW.mjs} +7 -7
- package/dist/cli/play-NBFCGFVC.js +152 -0
- package/dist/cli/{providers-Y54CW33F.mjs → providers-6LDD5X5G.mjs} +4 -4
- package/dist/cli/{providers-MLRLAH37.js → providers-PEOAZYM6.js} +7 -7
- package/dist/cli/{quickstart-EIWX6I5X.js → quickstart-33IPDK2I.js} +5 -5
- package/dist/cli/{quickstart-K2FFBJEQ.mjs → quickstart-PXMC66UG.mjs} +3 -3
- package/dist/cli/{search-2YJQBUPV.mjs → search-FJEJDKPA.mjs} +5 -5
- package/dist/cli/search-FPUK2H6Y.js +26 -0
- package/dist/cli/{secrets-5MY6G5EO.js → secrets-3SCAG3T7.js} +13 -13
- package/dist/cli/{secrets-BBPVDWHE.mjs → secrets-Q3ZWHE5S.mjs} +4 -4
- package/dist/cli/{sessions-LYULGDRK.js → sessions-QJB4LSNZ.js} +5 -5
- package/dist/cli/{sessions-SKSMKVXC.mjs → sessions-RY3SCVN7.mjs} +4 -4
- package/dist/cli/{settings-HTAZHDQ3.js → settings-DLAE6POM.js} +74 -74
- package/dist/cli/{settings-CIV5JY2A.mjs → settings-VTYJKMI6.mjs} +7 -7
- package/dist/cli/{setup-EWRGRIO2.js → setup-LM2VWSFE.js} +41 -41
- package/dist/cli/{setup-UJDC3MCT.mjs → setup-UYQ4V4GP.mjs} +6 -6
- package/dist/cli/{skills-C7YBNTJW.mjs → skills-2OKHLQF7.mjs} +4 -4
- package/dist/cli/skills-5NH6JX5H.js +28 -0
- package/dist/cli/{tools-LHIQZLYY.mjs → tools-F5RYANCG.mjs} +6 -6
- package/dist/cli/tools-ZPGDY3I2.js +38 -0
- package/dist/cli/{update-G5SWXA67.mjs → update-5FDHGSNE.mjs} +6 -6
- package/dist/cli/update-W5KBXMKC.js +28 -0
- package/dist/cli/{workflow-7HKDO6QM.js → workflow-EQMKPCUV.js} +15 -15
- package/dist/cli/{workflow-TJOJJJT5.mjs → workflow-TWQH53ZO.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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/viewer/viewer.js +20 -3
- package/package.json +1 -1
- package/dist/cli/auth-AF2MEC7K.js +0 -31
- package/dist/cli/client-LXTQ44XR.js +0 -20
- package/dist/cli/git-ADCE7DM6.js +0 -23
- package/dist/cli/play-EMBNMGQ6.js +0 -152
- package/dist/cli/search-7EADPPFV.js +0 -26
- package/dist/cli/skills-6BXDE3J6.js +0 -28
- package/dist/cli/tools-VYQ34FFN.js +0 -38
- package/dist/cli/update-4RZHBEJL.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunk57VCSLVPjs = require('./chunk-57VCSLVP.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -116,7 +116,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
116
116
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
117
117
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
118
118
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
119
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
119
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS));
|
|
120
120
|
const values = {
|
|
121
121
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
122
122
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -192,7 +192,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
192
192
|
return value === "1" || value === "true" || value === "yes";
|
|
193
193
|
}
|
|
194
194
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
195
|
-
return _path.join.call(void 0,
|
|
195
|
+
return _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
196
196
|
}
|
|
197
197
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
198
198
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -200,9 +200,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
200
200
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
201
201
|
return JSON.stringify({
|
|
202
202
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
203
|
-
version:
|
|
204
|
-
apiContract:
|
|
205
|
-
apiMajor:
|
|
203
|
+
version: _chunkHSZD4VBEjs.SDK_VERSION,
|
|
204
|
+
apiContract: _chunkHSZD4VBEjs.SDK_API_CONTRACT,
|
|
205
|
+
apiMajor: _chunkHSZD4VBEjs.SDK_API_MAJOR,
|
|
206
206
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
207
207
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
208
208
|
});
|
|
@@ -210,8 +210,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
210
210
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
211
211
|
return JSON.stringify({
|
|
212
212
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
213
|
-
version:
|
|
214
|
-
apiContract:
|
|
213
|
+
version: _chunkHSZD4VBEjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunkHSZD4VBEjs.SDK_API_CONTRACT,
|
|
215
215
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
216
216
|
});
|
|
217
217
|
}
|
|
@@ -304,7 +304,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
304
304
|
);
|
|
305
305
|
try {
|
|
306
306
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
307
|
-
url.searchParams.set("version",
|
|
307
|
+
url.searchParams.set("version", _chunkHSZD4VBEjs.SDK_VERSION);
|
|
308
308
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
309
309
|
url.searchParams.set("command", options.command.trim());
|
|
310
310
|
}
|
|
@@ -317,13 +317,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
317
317
|
const response = await fetch(url, {
|
|
318
318
|
method: "GET",
|
|
319
319
|
headers: {
|
|
320
|
-
...
|
|
321
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
322
|
-
"X-Deepline-SDK-Version":
|
|
323
|
-
"X-Deepline-API-Major": String(
|
|
324
|
-
"X-Deepline-API-Contract":
|
|
320
|
+
..._chunkHSZD4VBEjs.deploymentProtectionHeaders.call(void 0, ),
|
|
321
|
+
"User-Agent": `deepline-ts-sdk/${_chunkHSZD4VBEjs.SDK_VERSION}`,
|
|
322
|
+
"X-Deepline-SDK-Version": _chunkHSZD4VBEjs.SDK_VERSION,
|
|
323
|
+
"X-Deepline-API-Major": String(_chunkHSZD4VBEjs.SDK_API_MAJOR),
|
|
324
|
+
"X-Deepline-API-Contract": _chunkHSZD4VBEjs.SDK_API_CONTRACT,
|
|
325
325
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
326
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
326
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
|
|
327
327
|
},
|
|
328
328
|
signal: controller.signal
|
|
329
329
|
});
|
|
@@ -574,7 +574,7 @@ function buildEnvironmentContext() {
|
|
|
574
574
|
node_version: process.version,
|
|
575
575
|
runtime: "Node.js",
|
|
576
576
|
hostname: _os.hostname.call(void 0, ),
|
|
577
|
-
agent_runtime:
|
|
577
|
+
agent_runtime: _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, )
|
|
578
578
|
};
|
|
579
579
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
580
580
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -598,12 +598,12 @@ function failureReportHeaders(apiKey) {
|
|
|
598
598
|
return {
|
|
599
599
|
Authorization: `Bearer ${apiKey}`,
|
|
600
600
|
"Content-Type": "application/json",
|
|
601
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
601
|
+
"User-Agent": `deepline-ts-sdk/${_chunkHSZD4VBEjs.SDK_VERSION}`,
|
|
602
602
|
"X-Deepline-Client-Family": "sdk",
|
|
603
603
|
"X-Deepline-CLI-Family": "sdk",
|
|
604
|
-
"X-Deepline-Agent-Runtime":
|
|
605
|
-
"X-Deepline-CLI-Version":
|
|
606
|
-
"X-Deepline-SDK-Version":
|
|
604
|
+
"X-Deepline-Agent-Runtime": _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, ),
|
|
605
|
+
"X-Deepline-CLI-Version": _chunkHSZD4VBEjs.SDK_VERSION,
|
|
606
|
+
"X-Deepline-SDK-Version": _chunkHSZD4VBEjs.SDK_VERSION
|
|
607
607
|
};
|
|
608
608
|
}
|
|
609
609
|
async function postFailureReport(input) {
|
|
@@ -631,7 +631,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
631
631
|
if (isFailureReportingDisabled()) return false;
|
|
632
632
|
let apiKey = "";
|
|
633
633
|
try {
|
|
634
|
-
apiKey =
|
|
634
|
+
apiKey = _chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
635
635
|
} catch (e7) {
|
|
636
636
|
return false;
|
|
637
637
|
}
|
|
@@ -658,7 +658,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
658
658
|
failure_code: failureCode2,
|
|
659
659
|
failure_stage: failureStage,
|
|
660
660
|
error_body: "Automatic Deepline skills installation failed.",
|
|
661
|
-
cli_version:
|
|
661
|
+
cli_version: _chunkHSZD4VBEjs.SDK_VERSION,
|
|
662
662
|
context: {
|
|
663
663
|
environment: buildEnvironmentContext(),
|
|
664
664
|
skills_sync: {
|
|
@@ -778,7 +778,7 @@ function buildFailureReport(input) {
|
|
|
778
778
|
failure_kind: failureKind,
|
|
779
779
|
failure_code: code,
|
|
780
780
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
781
|
-
cli_version:
|
|
781
|
+
cli_version: _chunkHSZD4VBEjs.SDK_VERSION,
|
|
782
782
|
context: {
|
|
783
783
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
784
784
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -798,8 +798,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
798
798
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
799
799
|
const exitCode = resolvedExitCode(input);
|
|
800
800
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
801
|
-
const baseUrl =
|
|
802
|
-
const apiKey =
|
|
801
|
+
const baseUrl = _chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
802
|
+
const apiKey = _chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
803
803
|
if (!apiKey) return false;
|
|
804
804
|
return postFailureReport({
|
|
805
805
|
baseUrl,
|
|
@@ -820,25 +820,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
820
820
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
821
821
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
822
822
|
function shouldSkipSkillsSync() {
|
|
823
|
-
if (
|
|
823
|
+
if (_chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
824
824
|
return true;
|
|
825
825
|
}
|
|
826
826
|
const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
|
|
827
827
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
828
828
|
}
|
|
829
829
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
830
|
-
return _path.join.call(void 0,
|
|
830
|
+
return _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
831
831
|
}
|
|
832
832
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
833
833
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
834
|
-
var agentLeaseSegment =
|
|
834
|
+
var agentLeaseSegment = _chunkHSZD4VBEjs.skillsAgentPathSegment;
|
|
835
835
|
function sortedLeaseAgents(agents) {
|
|
836
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
836
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkHSZD4VBEjs.KNOWN_SKILL_AGENTS] : agents;
|
|
837
837
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
838
838
|
}
|
|
839
839
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
840
840
|
return _path.join.call(void 0,
|
|
841
|
-
|
|
841
|
+
_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
842
842
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
843
843
|
);
|
|
844
844
|
}
|
|
@@ -997,7 +997,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
997
997
|
constructor(baseUrl, error) {
|
|
998
998
|
const detail = error instanceof Error ? error.message : String(error);
|
|
999
999
|
super(
|
|
1000
|
-
`Could not save skills state in ${
|
|
1000
|
+
`Could not save skills state in ${_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1001
1001
|
);
|
|
1002
1002
|
this.name = "SkillsStateUnavailableError";
|
|
1003
1003
|
}
|
|
@@ -1082,7 +1082,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1082
1082
|
}
|
|
1083
1083
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1084
1084
|
return _path.join.call(void 0,
|
|
1085
|
-
|
|
1085
|
+
_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1086
1086
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1087
1087
|
);
|
|
1088
1088
|
}
|
|
@@ -1116,8 +1116,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1116
1116
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1117
1117
|
}
|
|
1118
1118
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1119
|
-
if (shouldSkipSkillsSync() ||
|
|
1120
|
-
const agents =
|
|
1119
|
+
if (shouldSkipSkillsSync() || _chunkHSZD4VBEjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1120
|
+
const agents = _chunkHSZD4VBEjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1121
1121
|
if (agents.length === 0) return;
|
|
1122
1122
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1123
1123
|
}
|
|
@@ -1133,7 +1133,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1133
1133
|
}
|
|
1134
1134
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1135
1135
|
return _path.join.call(void 0,
|
|
1136
|
-
|
|
1136
|
+
_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1137
1137
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1138
1138
|
);
|
|
1139
1139
|
}
|
|
@@ -1162,7 +1162,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1162
1162
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1163
1163
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1164
1164
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1165
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1165
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1166
1166
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.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.`;
|
|
1167
1167
|
notice(
|
|
1168
1168
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1250,7 +1250,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1250
1250
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1251
1251
|
}
|
|
1252
1252
|
function isDefaultAgentSet(agents) {
|
|
1253
|
-
return agents.length ===
|
|
1253
|
+
return agents.length === _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1254
1254
|
}
|
|
1255
1255
|
function safeSkillFilePath(value) {
|
|
1256
1256
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1447,7 +1447,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1447
1447
|
}
|
|
1448
1448
|
function noInstallerProbePath(baseUrl) {
|
|
1449
1449
|
return _path.join.call(void 0,
|
|
1450
|
-
|
|
1450
|
+
_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1451
1451
|
"skills-sync-no-installer-unknown.json"
|
|
1452
1452
|
);
|
|
1453
1453
|
}
|
|
@@ -1526,7 +1526,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1526
1526
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1527
1527
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1528
1528
|
}
|
|
1529
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1529
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1530
1530
|
const commands = [];
|
|
1531
1531
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1532
1532
|
if (probes.bunx === "available") {
|
|
@@ -1678,11 +1678,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1680
1680
|
if (shouldSkipSkillsSync()) return;
|
|
1681
|
-
const usingPluginSkills =
|
|
1681
|
+
const usingPluginSkills = _chunkHSZD4VBEjs.hasActivePluginSkills.call(void 0, );
|
|
1682
1682
|
if (usingPluginSkills) {
|
|
1683
1683
|
return;
|
|
1684
1684
|
}
|
|
1685
|
-
const agents =
|
|
1685
|
+
const agents = _chunkHSZD4VBEjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1686
1686
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1687
1687
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1688
1688
|
}
|
|
@@ -1710,7 +1710,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1710
1710
|
return;
|
|
1711
1711
|
}
|
|
1712
1712
|
try {
|
|
1713
|
-
const localVersion =
|
|
1713
|
+
const localVersion = _chunkHSZD4VBEjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1714
1714
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1715
1715
|
needsUpdate: options.update.needs_update,
|
|
1716
1716
|
remoteVersion: options.update.remote.version
|
|
@@ -1876,7 +1876,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
runLegacySkillsCleanup(agents);
|
|
1879
|
-
if (!
|
|
1879
|
+
if (!_chunkHSZD4VBEjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1880
1880
|
notice(
|
|
1881
1881
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1882
1882
|
);
|
|
@@ -1935,7 +1935,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1935
1935
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1936
1936
|
}
|
|
1937
1937
|
function resolveLocalRoot() {
|
|
1938
|
-
const target =
|
|
1938
|
+
const target = _chunkHSZD4VBEjs.resolveProjectPinTarget.call(void 0, );
|
|
1939
1939
|
if (!target.ok) {
|
|
1940
1940
|
throw new Error(
|
|
1941
1941
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1946,7 +1946,7 @@ function resolveLocalRoot() {
|
|
|
1946
1946
|
return target.dir;
|
|
1947
1947
|
}
|
|
1948
1948
|
function detectSkillsAgents(input) {
|
|
1949
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1949
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, )));
|
|
1950
1950
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1951
1951
|
if (knownAgent) return [knownAgent];
|
|
1952
1952
|
const roots = [
|
|
@@ -1961,7 +1961,7 @@ function detectSkillsAgents(input) {
|
|
|
1961
1961
|
return detected.length > 0 ? detected : ["*"];
|
|
1962
1962
|
}
|
|
1963
1963
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1964
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1964
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1965
1965
|
}
|
|
1966
1966
|
function buildSkillsPlan(input) {
|
|
1967
1967
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -2083,7 +2083,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2083
2083
|
scope = normalizeScope(options.scope);
|
|
2084
2084
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
2085
2085
|
} catch (error) {
|
|
2086
|
-
|
|
2086
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2087
2087
|
{
|
|
2088
2088
|
ok: false,
|
|
2089
2089
|
status: "failed",
|
|
@@ -2095,22 +2095,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2095
2095
|
);
|
|
2096
2096
|
return 2;
|
|
2097
2097
|
}
|
|
2098
|
-
const baseUrl =
|
|
2098
|
+
const baseUrl = _chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
2099
2099
|
const catalog = {
|
|
2100
2100
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
2101
|
-
version:
|
|
2101
|
+
version: _chunkHSZD4VBEjs.SDK_VERSION
|
|
2102
2102
|
};
|
|
2103
2103
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
2104
2104
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
2105
2105
|
if (options.dryRun) {
|
|
2106
|
-
|
|
2106
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2107
2107
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
2108
2108
|
{ json: options.json }
|
|
2109
2109
|
);
|
|
2110
2110
|
return 0;
|
|
2111
2111
|
}
|
|
2112
2112
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
2113
|
-
|
|
2113
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2114
2114
|
{
|
|
2115
2115
|
ok: true,
|
|
2116
2116
|
status: "current",
|
|
@@ -2145,7 +2145,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2145
2145
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2146
2146
|
];
|
|
2147
2147
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2148
|
-
|
|
2148
|
+
_chunkHSZD4VBEjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2149
2149
|
".deepline/",
|
|
2150
2150
|
...agentRoots.flatMap(
|
|
2151
2151
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2163,7 +2163,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2163
2163
|
} };
|
|
2164
2164
|
} catch (error) {
|
|
2165
2165
|
if (!(error instanceof SkillsStateUnavailableError)) throw error;
|
|
2166
|
-
|
|
2166
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2167
2167
|
{
|
|
2168
2168
|
ok: false,
|
|
2169
2169
|
status: "failed",
|
|
@@ -2179,7 +2179,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2179
2179
|
return 5;
|
|
2180
2180
|
}
|
|
2181
2181
|
if (!lease) {
|
|
2182
|
-
|
|
2182
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2183
2183
|
{
|
|
2184
2184
|
ok: false,
|
|
2185
2185
|
status: "failed",
|
|
@@ -2225,7 +2225,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2225
2225
|
throw new Error("Could not install the current Deepline skills.");
|
|
2226
2226
|
}
|
|
2227
2227
|
} catch (error) {
|
|
2228
|
-
|
|
2228
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2229
2229
|
{
|
|
2230
2230
|
ok: false,
|
|
2231
2231
|
status: "failed",
|
|
@@ -2264,7 +2264,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2264
2264
|
{
|
|
2265
2265
|
schemaVersion: 1,
|
|
2266
2266
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2267
|
-
cliVersion:
|
|
2267
|
+
cliVersion: _chunkHSZD4VBEjs.SDK_VERSION,
|
|
2268
2268
|
scope,
|
|
2269
2269
|
agents,
|
|
2270
2270
|
skillsVersion: plan.version,
|
|
@@ -2279,7 +2279,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2279
2279
|
if (scope === "global") {
|
|
2280
2280
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2281
2281
|
}
|
|
2282
|
-
|
|
2282
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2283
2283
|
{
|
|
2284
2284
|
ok: true,
|
|
2285
2285
|
status: "complete",
|
|
@@ -2328,7 +2328,7 @@ Examples:
|
|
|
2328
2328
|
).action(async (options) => {
|
|
2329
2329
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2330
2330
|
if (!claim) {
|
|
2331
|
-
|
|
2331
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
2332
2332
|
{
|
|
2333
2333
|
ok: false,
|
|
2334
2334
|
status: "failed",
|
|
@@ -2341,7 +2341,7 @@ Examples:
|
|
|
2341
2341
|
process.exitCode = 2;
|
|
2342
2342
|
return;
|
|
2343
2343
|
}
|
|
2344
|
-
await syncSdkSkillsIfNeeded(
|
|
2344
|
+
await syncSdkSkillsIfNeeded(_chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2345
2345
|
mode: "inline",
|
|
2346
2346
|
notices: "defer",
|
|
2347
2347
|
claim
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkHSZD4VBEjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkHSZD4VBEjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkHSZD4VBEjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkM2WAAIM4js.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 = _chunkHSZD4VBEjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkM2WAAIM4js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.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
|
+
_chunkM2WAAIM4js.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 } = _chunkM2WAAIM4js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -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.323",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|