deepline 0.3.528 → 0.3.529
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/context.ts +60 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +22 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +3 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +123 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +203 -44
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +43 -16
- package/dist/cli/auth-P7M7SXM5.js +43 -0
- package/dist/cli/{auth-PPOTNK4T.mjs → auth-V7A6TU4G.mjs} +5 -5
- package/dist/cli/{billing-OEZUQ2K6.mjs → billing-5VBUYPWW.mjs} +6 -6
- package/dist/cli/{billing-3C7T7CUQ.js → billing-XF6SAA5Y.js} +79 -79
- package/dist/cli/{chunk-5MJ4CDAQ.js → chunk-2GV54JFN.js} +44 -44
- package/dist/cli/{chunk-LT4IEJ6V.js → chunk-4722FTYU.js} +16 -16
- package/dist/cli/{chunk-DCVNL5XN.mjs → chunk-4A4OQMJX.mjs} +1 -1
- package/dist/cli/{chunk-R5ZQVQ3K.js → chunk-4BKE63Q7.js} +26 -26
- package/dist/cli/{chunk-KWIKFR7Y.mjs → chunk-5NZEA2YV.mjs} +1 -1
- package/dist/cli/{chunk-IYCRX34W.mjs → chunk-6XZIXDLC.mjs} +5 -5
- package/dist/cli/{chunk-LU4EA3ET.js → chunk-7RTDSHMB.js} +2 -2
- package/dist/cli/{chunk-ZFD5FJCZ.js → chunk-7SRZTSHU.js} +5 -5
- package/dist/cli/{chunk-IJAEYEJM.js → chunk-7Z3ZXSOX.js} +3 -3
- package/dist/cli/{chunk-FXYWEKUK.js → chunk-AP7DNG6D.js} +4 -4
- package/dist/cli/{chunk-RML3VSTN.mjs → chunk-BOWZ3OOU.mjs} +1 -1
- package/dist/cli/{chunk-7X3NLHI7.js → chunk-BRQDN67G.js} +6 -6
- package/dist/cli/{chunk-IM5XQ4DG.mjs → chunk-C2WTS7WY.mjs} +5 -5
- package/dist/cli/{chunk-ULUI2FEM.mjs → chunk-DKX5CGTG.mjs} +1 -1
- package/dist/cli/{chunk-OVZSNBDJ.js → chunk-DPGPXARU.js} +53 -53
- package/dist/cli/{chunk-GP7E4TE4.mjs → chunk-E7CN5GEM.mjs} +2 -2
- package/dist/cli/{chunk-KLGYBOGZ.mjs → chunk-ETCGTKLF.mjs} +1 -1
- package/dist/cli/{chunk-6OLQWQU5.mjs → chunk-EW33RCLA.mjs} +3 -3
- package/dist/cli/{chunk-XD2DRBPH.js → chunk-FCNSJHED.js} +6 -6
- package/dist/cli/{chunk-NCOTOGTK.mjs → chunk-FWC47SCG.mjs} +2 -2
- package/dist/cli/{chunk-GFGFAAY2.mjs → chunk-FXHKNZM2.mjs} +1 -1
- package/dist/cli/{chunk-NZM4KWWV.mjs → chunk-G4SYSUDB.mjs} +5 -5
- package/dist/cli/{chunk-B6YWCGVC.mjs → chunk-GPU4ULMY.mjs} +10 -10
- package/dist/cli/{chunk-B3HQF2CA.js → chunk-H2JAXOPP.js} +11 -11
- package/dist/cli/{chunk-RC5CG5SE.mjs → chunk-HV4UKMBB.mjs} +4 -4
- package/dist/cli/{chunk-T4QPRL3P.mjs → chunk-K55VBSCA.mjs} +3 -3
- package/dist/cli/{chunk-7WZXUAQW.js → chunk-KAI64HV7.js} +7 -7
- package/dist/cli/{chunk-4SBUXDKZ.js → chunk-KSUWW26I.js} +13 -13
- package/dist/cli/{chunk-IXEEXYE2.js → chunk-L3J7IAYE.js} +9 -9
- package/dist/cli/{chunk-237PKFIQ.js → chunk-M47I47FK.js} +14 -14
- package/dist/cli/{chunk-Z44S7VWO.mjs → chunk-NDVCVFZW.mjs} +2 -2
- package/dist/cli/{chunk-MLNH4DK2.js → chunk-NVH6ULDP.js} +22 -22
- package/dist/cli/{chunk-42ZSDTOC.mjs → chunk-NVSMSP2J.mjs} +2 -2
- package/dist/cli/{chunk-RFTBMEWL.js → chunk-OA4FI5ZM.js} +2 -2
- package/dist/cli/{chunk-CMTY6SVY.mjs → chunk-PAAREIKG.mjs} +2 -2
- package/dist/cli/{chunk-PS2UYVAE.mjs → chunk-PJDYY5JL.mjs} +6 -6
- package/dist/cli/{chunk-OGVUT2KM.js → chunk-PNWBODCB.js} +7 -7
- package/dist/cli/{chunk-OEI7YUEF.js → chunk-QTQWPSAK.js} +3 -3
- package/dist/cli/{chunk-AFIAVG5T.mjs → chunk-R62Z4INU.mjs} +2 -2
- package/dist/cli/{chunk-36UD7H7Y.js → chunk-RWY2QLJ4.js} +41 -41
- package/dist/cli/{chunk-ADZGTMLU.js → chunk-TEFO5AS2.js} +98 -98
- package/dist/cli/{chunk-KHVCHFE3.js → chunk-UMCEXTRM.js} +16 -16
- package/dist/cli/{chunk-Z25KC5V2.mjs → chunk-XE4PQE2O.mjs} +1 -1
- package/dist/cli/{chunk-GCBFSFLA.js → chunk-XEZSORKG.js} +5 -5
- package/dist/cli/{chunk-WXHBD6H7.js → chunk-XZ6OY3BH.js} +1 -1
- package/dist/cli/{chunk-SP2KZ7SH.mjs → chunk-Y4P6XJHU.mjs} +1 -1
- package/dist/cli/{chunk-HJVNCRXY.mjs → chunk-YVJJEMNQ.mjs} +1 -1
- package/dist/cli/{chunk-G7RTPKRJ.js → chunk-ZEIN5YJS.js} +2 -2
- package/dist/cli/{chunk-FPHAUP55.mjs → chunk-ZULLXAJJ.mjs} +5 -5
- package/dist/cli/{chunk-GSBKODMU.mjs → chunk-ZYMX7KZE.mjs} +2 -2
- package/dist/cli/{csv-K7TRWOFJ.mjs → csv-IHLVHG35.mjs} +4 -4
- package/dist/cli/{csv-OTRVTHD2.js → csv-VEKMGGOE.js} +13 -13
- package/dist/cli/{db-UO2ZFLFN.js → db-NTFFISQG.js} +27 -27
- package/dist/cli/{db-C7GQU3TZ.mjs → db-RKLVYARP.mjs} +6 -6
- package/dist/cli/{describe-LG4CPTIV.mjs → describe-62ELB5DZ.mjs} +18 -18
- package/dist/cli/describe-JXOGKT6C.js +50 -0
- package/dist/cli/{executions-P3INNVZE.mjs → executions-5BMZW4C7.mjs} +6 -6
- package/dist/cli/{executions-LHFVPO7E.js → executions-X7NMKMXW.js} +8 -8
- package/dist/cli/{feedback-M3HZQAWX.js → feedback-RDN5O4AT.js} +14 -14
- package/dist/cli/{feedback-H22FWG63.mjs → feedback-UHHWCIFD.mjs} +6 -6
- package/dist/cli/{git-G2N7PVFI.mjs → git-3M33GKOW.mjs} +5 -5
- package/dist/cli/git-7VZGGIGZ.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-LDYSWTL2.mjs → legacy-noops-7RVRPF5B.mjs} +6 -6
- package/dist/cli/{legacy-noops-2RVROWBY.js → legacy-noops-ENKN6JU4.js} +9 -9
- package/dist/cli/{monitors-IYT3VON7.mjs → monitors-FJPDMUQ6.mjs} +7 -7
- package/dist/cli/{monitors-U4RE6KN5.js → monitors-YOWDFGIR.js} +100 -100
- package/dist/cli/{org-SO52ZGRP.js → org-4GBLI75H.js} +86 -86
- package/dist/cli/{org-R3JE22GS.mjs → org-H24LOZAC.mjs} +6 -6
- package/dist/cli/{pages-5RLT5YTF.mjs → pages-BKM2D6BV.mjs} +6 -6
- package/dist/cli/{pages-SWXJQJXH.js → pages-WWVLYB5K.js} +18 -18
- package/dist/cli/{play-2ELYCSXZ.mjs → play-M3CSYH3A.mjs} +18 -18
- package/dist/cli/{play-J4UXOQOJ.js → play-TXHKCG6B.js} +317 -317
- package/dist/cli/{providers-IXITXHTS.mjs → providers-EW5WTMTX.mjs} +6 -6
- package/dist/cli/{providers-VVUDGV2D.js → providers-XL4SNFHU.js} +9 -9
- package/dist/cli/{quickstart-XPH6MT47.js → quickstart-AFQ5MCDL.js} +6 -6
- package/dist/cli/{quickstart-HQCGDPPL.mjs → quickstart-SZSLS553.mjs} +4 -4
- package/dist/cli/{run-OR646AC6.js → run-MOFHGYSN.js} +41 -41
- package/dist/cli/{run-H2HQPWC4.mjs → run-TWXFNH6U.mjs} +23 -23
- package/dist/cli/{search-MBPI5SBW.mjs → search-2SW4V4IR.mjs} +8 -8
- package/dist/cli/search-V2AGWRLO.js +33 -0
- package/dist/cli/{search-output-YGNSHBXX.js → search-output-CJGRPJYD.js} +6 -6
- package/dist/cli/{search-output-CYOMJNRV.mjs → search-output-I6DNYXNT.mjs} +4 -4
- package/dist/cli/{secrets-NK2CN7WI.mjs → secrets-4XXLR6QO.mjs} +6 -6
- package/dist/cli/{secrets-HVZKNNLZ.js → secrets-SD43HSLX.js} +15 -15
- package/dist/cli/{sessions-NY4G427U.mjs → sessions-7G32HW5R.mjs} +6 -6
- package/dist/cli/sessions-FIRDFPIZ.js +22 -0
- package/dist/cli/{settings-RC4FGYY2.mjs → settings-HSYRY2L5.mjs} +13 -13
- package/dist/cli/{settings-PVJRDEN2.js → settings-SYEBDDDJ.js} +86 -86
- package/dist/cli/{setup-B7QB4YV2.js → setup-VTWCVCTK.js} +50 -50
- package/dist/cli/{setup-YT3XSY6X.mjs → setup-XZVBPKZK.mjs} +10 -10
- package/dist/cli/{skills-5ILFNAHR.mjs → skills-OMPEUMRT.mjs} +8 -8
- package/dist/cli/skills-RUY7CION.js +37 -0
- package/dist/cli/tools-KLIW7G6T.js +57 -0
- package/dist/cli/{tools-7PAY32OZ.mjs → tools-UEDNJI4G.mjs} +17 -17
- package/dist/cli/{update-Z27QYB6O.mjs → update-4YVCUSSI.mjs} +10 -10
- package/dist/cli/update-FDUZRKKU.js +35 -0
- package/dist/cli/{views-2IANF6KR.mjs → views-4FP4AJQ2.mjs} +6 -6
- package/dist/cli/{views-NP2SCMOV.js → views-ZCCSKWMP.js} +18 -18
- package/dist/cli/{workflow-CAMEZLLY.mjs → workflow-A2D5FALP.mjs} +7 -7
- package/dist/cli/{workflow-2GNQL646.js → workflow-SM4OD4VJ.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -104
- 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-CWJZYLTB.js +0 -43
- package/dist/cli/describe-IK4UYJ5M.js +0 -50
- package/dist/cli/git-72ADWRUQ.js +0 -25
- package/dist/cli/search-D27DZH2D.js +0 -33
- package/dist/cli/sessions-MTISSOZ4.js +0 -22
- package/dist/cli/skills-BHF35NLX.js +0 -37
- package/dist/cli/tools-W5BZ37L6.js +0 -57
- package/dist/cli/update-M65CGK42.js +0 -35
|
@@ -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 _chunkQTQWPSAKjs = require('./chunk-QTQWPSAK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkM47I47FKjs = require('./chunk-M47I47FK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunk237PKFIQjs = require('./chunk-237PKFIQ.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkAP7DNG6Djs = require('./chunk-AP7DNG6D.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkXZ6OY3BHjs = require('./chunk-XZ6OY3BH.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
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, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
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, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkAP7DNG6Djs.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkAP7DNG6Djs.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkAP7DNG6Djs.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkAP7DNG6Djs.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkAP7DNG6Djs.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkAP7DNG6Djs.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunkXZ6OY3BHjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkAP7DNG6Djs.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkAP7DNG6Djs.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkAP7DNG6Djs.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkAP7DNG6Djs.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkAP7DNG6Djs.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunk7Z3ZXSOXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkAP7DNG6Djs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunk7Z3ZXSOXjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk7Z3ZXSOXjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunk7Z3ZXSOXjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunk7Z3ZXSOXjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
833
833
|
}
|
|
834
834
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
835
835
|
return _path.join.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
837
837
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
838
838
|
);
|
|
839
839
|
}
|
|
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
862
862
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
863
863
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
864
864
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
865
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
865
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
866
866
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.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.`;
|
|
867
867
|
notice(
|
|
868
868
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
950
950
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
951
951
|
}
|
|
952
952
|
function isDefaultAgentSet(agents) {
|
|
953
|
-
return agents.length ===
|
|
953
|
+
return agents.length === _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS[index]);
|
|
954
954
|
}
|
|
955
955
|
function safeSkillFilePath(value) {
|
|
956
956
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1107
1107
|
method: "POST",
|
|
1108
1108
|
headers: { "Content-Type": "application/json" },
|
|
1109
1109
|
body: JSON.stringify({
|
|
1110
|
-
sdk_cli: { version:
|
|
1110
|
+
sdk_cli: { version: _chunkAP7DNG6Djs.SDK_VERSION },
|
|
1111
1111
|
skills: {
|
|
1112
1112
|
version: localVersion,
|
|
1113
|
-
capability:
|
|
1113
|
+
capability: _chunkXZ6OY3BHjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1114
1114
|
}
|
|
1115
1115
|
}),
|
|
1116
1116
|
signal: controller.signal
|
|
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
function noInstallerProbePath(baseUrl) {
|
|
1151
1151
|
return _path.join.call(void 0,
|
|
1152
|
-
|
|
1152
|
+
_chunk7Z3ZXSOXjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1153
1153
|
"skills-sync-no-installer-unknown.json"
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1228
1228
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1229
1229
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1230
1230
|
}
|
|
1231
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1231
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk7Z3ZXSOXjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1232
1232
|
const commands = [];
|
|
1233
1233
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1234
1234
|
if (probes.bunx === "available") {
|
|
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
function writeSdkSkillsStatusLine(line) {
|
|
1373
|
-
const progress =
|
|
1373
|
+
const progress = _chunkQTQWPSAKjs.getActiveCliProgress.call(void 0, );
|
|
1374
1374
|
if (progress) {
|
|
1375
1375
|
progress.writeLine(line);
|
|
1376
1376
|
return;
|
|
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1381
1381
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1382
1382
|
const skip = shouldSkipSkillsSync();
|
|
1383
1383
|
if (skip && !options.claim) return;
|
|
1384
|
-
const usingPluginSkills =
|
|
1384
|
+
const usingPluginSkills = _chunk7Z3ZXSOXjs.hasActivePluginSkills.call(void 0, );
|
|
1385
1385
|
if (usingPluginSkills) {
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
|
-
const agents =
|
|
1388
|
+
const agents = _chunk7Z3ZXSOXjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1389
1389
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1390
1390
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1391
1391
|
}
|
|
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
1424
|
try {
|
|
1425
|
-
const localVersion =
|
|
1425
|
+
const localVersion = _chunk7Z3ZXSOXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1426
1426
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1427
1427
|
needsUpdate: options.update.needs_update,
|
|
1428
1428
|
remoteVersion: options.update.remote.version
|
|
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1544
1544
|
update.remoteVersion,
|
|
1545
1545
|
agents
|
|
1546
1546
|
);
|
|
1547
|
-
void
|
|
1547
|
+
void _chunkM47I47FKjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1548
1548
|
baseUrl,
|
|
1549
1549
|
remoteSkillsVersion: update.remoteVersion,
|
|
1550
1550
|
agents,
|
|
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1575
1575
|
notice(
|
|
1576
1576
|
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.`
|
|
1577
1577
|
);
|
|
1578
|
-
void
|
|
1578
|
+
void _chunkM47I47FKjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1579
1579
|
baseUrl,
|
|
1580
1580
|
remoteSkillsVersion: update.remoteVersion,
|
|
1581
1581
|
agents,
|
|
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
runLegacySkillsCleanup(agents);
|
|
1591
|
-
if (!
|
|
1591
|
+
if (!_chunk7Z3ZXSOXjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1592
1592
|
notice(
|
|
1593
1593
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1594
1594
|
);
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTEFO5AS2js = require('./chunk-TEFO5AS2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBRQDN67Gjs = require('./chunk-BRQDN67G.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunk5YAJGRWBjs = require('./chunk-5YAJGRWB.js');
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkXEZSORKGjs = require('./chunk-XEZSORKG.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkM47I47FKjs = require('./chunk-M47I47FK.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkM47I47FKjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunk7Z3ZXSOXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunk7Z3ZXSOXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkM47I47FKjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunk5YAJGRWBjs.findNamed.call(void 0, name, options, _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, new (0, _chunkXEZSORKGjs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkXEZSORKGjs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunk5YAJGRWBjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunk5YAJGRWBjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkTEFO5AS2js.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkKAI64HV7js.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkKAI64HV7js.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkBRQDN67Gjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkKAI64HV7js = require('./chunk-KAI64HV7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7Z3ZXSOXjs = require('./chunk-7Z3ZXSOX.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkKAI64HV7js.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 = _chunk7Z3ZXSOXjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkKAI64HV7js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.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
|
+
_chunkKAI64HV7js.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 } = _chunkKAI64HV7js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkKAI64HV7js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYMX7KZE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-R62Z4INU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-E7CN5GEM.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XE4PQE2O.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-I6DNYXNT.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -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 _chunkKAI64HV7js = require('./chunk-KAI64HV7.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
|
+
_chunkKAI64HV7js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|