deepline 0.3.296 → 0.3.298
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/monitors/quickstart-prompts.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +9 -98
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +80 -33
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +136 -62
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +15 -3
- package/dist/cli/auth-AQCORSG5.js +31 -0
- package/dist/cli/{auth-JCGIDVDF.mjs → auth-TJGQB4RK.mjs} +4 -4
- package/dist/cli/{billing-OQBSIXRG.mjs → billing-BUHGVESC.mjs} +4 -4
- package/dist/cli/{billing-YBK3J4WP.js → billing-HSBXETYG.js} +70 -70
- package/dist/cli/{chunk-6HPEDBSJ.js → chunk-2Q4LGPVP.js} +4 -4
- package/dist/cli/{chunk-A7427JJH.js → chunk-4TOJTO4S.js} +6 -6
- package/dist/cli/{chunk-QSIO4TX2.mjs → chunk-6IOQ43VG.mjs} +1 -1
- package/dist/cli/{chunk-2C3AVPTY.js → chunk-7ZA3OMYT.js} +6 -6
- package/dist/cli/{chunk-AQRTLPHZ.js → chunk-B5R4IGNU.js} +6 -6
- package/dist/cli/{chunk-LIKFCE7Z.js → chunk-BUKTFUM7.js} +1 -1
- package/dist/cli/{chunk-ZDOC4HFL.js → chunk-BXYKLY5T.js} +48 -48
- package/dist/cli/{chunk-4ZB3CJRD.js → chunk-CVNG2LB7.js} +15 -15
- package/dist/cli/{chunk-J2D3VDOU.mjs → chunk-FJTNI2TE.mjs} +1 -1
- package/dist/cli/{chunk-DYWHXO7O.mjs → chunk-FT4JXVAD.mjs} +1 -1
- package/dist/cli/{chunk-2MZ5EQZE.mjs → chunk-IZKS7OGL.mjs} +2 -2
- package/dist/cli/{chunk-GLKUGBTP.mjs → chunk-MJWD6SJR.mjs} +3 -3
- package/dist/cli/{chunk-4Y6CG4GE.js → chunk-NHNFNVLD.js} +58 -58
- package/dist/cli/{chunk-UC6GHEL4.js → chunk-OXCFNXS5.js} +26 -26
- package/dist/cli/{chunk-BZ77OTRF.mjs → chunk-RES6RQXX.mjs} +2 -2
- package/dist/cli/{chunk-G46HHFNB.mjs → chunk-S5CEMBUJ.mjs} +4 -4
- package/dist/cli/{chunk-7D6QG5KF.js → chunk-TOAXEXTC.js} +6 -6
- package/dist/cli/{chunk-NTEZFZLE.mjs → chunk-U6G52KUV.mjs} +1 -1
- package/dist/cli/{chunk-RCUE5C5C.mjs → chunk-XZNFOO5U.mjs} +1 -1
- package/dist/cli/{chunk-NPPJX3BL.mjs → chunk-YE5PJMFK.mjs} +1 -1
- package/dist/cli/{chunk-7UAO5MWV.mjs → chunk-YFNB2GPD.mjs} +3 -3
- package/dist/cli/{chunk-L4HBNHFW.js → chunk-YJX7FY4F.js} +2 -2
- package/dist/cli/{client-CZDA4JKO.mjs → client-2TV2OKUH.mjs} +3 -3
- package/dist/cli/client-QKZ6CTWN.js +20 -0
- package/dist/cli/{csv-6KOMZA2H.mjs → csv-7XFZ333H.mjs} +3 -3
- package/dist/cli/{csv-UTEQY3NA.js → csv-N2CI4OLO.js} +12 -12
- package/dist/cli/{db-D5EP6TKO.mjs → db-R37F3UHM.mjs} +4 -4
- package/dist/cli/{db-SIBLPIKC.js → db-UXTCDLUO.js} +20 -20
- package/dist/cli/{executions-2PHT57IO.js → executions-AVGJESD2.js} +6 -6
- package/dist/cli/{executions-DFWM2YYY.mjs → executions-SQ3CYCNF.mjs} +4 -4
- package/dist/cli/{feedback-IQVWIJZ4.js → feedback-DY5GZCHY.js} +6 -6
- package/dist/cli/{feedback-GZW37JMI.mjs → feedback-VRUQVLR2.mjs} +3 -3
- package/dist/cli/git-72HXNB6W.js +23 -0
- package/dist/cli/{git-B72Y4FFQ.mjs → git-YCT5WDUM.mjs} +4 -4
- package/dist/cli/index.js +73 -73
- package/dist/cli/index.mjs +30 -30
- package/dist/cli/{legacy-noops-IFGVDCOM.js → legacy-noops-EC6NUDQG.js} +7 -7
- package/dist/cli/{legacy-noops-37F5MX2P.mjs → legacy-noops-TPKXHLEJ.mjs} +4 -4
- package/dist/cli/{monitors-42H6LOVT.mjs → monitors-BVIPCPTM.mjs} +4 -4
- package/dist/cli/{monitors-GQCHXBXZ.js → monitors-RAJW7CTX.js} +85 -85
- package/dist/cli/{org-4GCPBTGR.js → org-CYBSXWOL.js} +60 -60
- package/dist/cli/{org-JYZA3ZRJ.mjs → org-FQ6DJMPU.mjs} +4 -4
- package/dist/cli/{play-Q2XV3FZZ.mjs → play-5KQLW4UV.mjs} +6 -6
- package/dist/cli/{play-46ZJ4FMI.js → play-W5UAFX62.js} +200 -200
- package/dist/cli/{providers-PCNF5E3K.js → providers-2YN7WGZW.js} +7 -7
- package/dist/cli/{providers-CTKQP45X.mjs → providers-NPP7DKNJ.mjs} +4 -4
- package/dist/cli/{quickstart-FTHWRVWN.js → quickstart-F3UEWVYN.js} +5 -5
- package/dist/cli/{quickstart-X7EVVWRG.mjs → quickstart-NRCBIY5D.mjs} +3 -3
- package/dist/cli/{search-73YPOFDO.mjs → search-3HZ7PFXE.mjs} +5 -5
- package/dist/cli/{search-XA5UVC3G.js → search-HOHTWO7A.js} +6 -6
- package/dist/cli/{secrets-OUMPT4FX.mjs → secrets-44DTR7F7.mjs} +4 -4
- package/dist/cli/{secrets-UOEVR73Q.js → secrets-ROFLUSZW.js} +13 -13
- package/dist/cli/{sessions-CMKXCN5Y.js → sessions-U7T5MEHM.js} +5 -5
- package/dist/cli/{sessions-ZIFGDZE7.mjs → sessions-ZGKRSQ7U.mjs} +4 -4
- package/dist/cli/{settings-ULZT2NIC.js → settings-SAFOFNX3.js} +74 -74
- package/dist/cli/{settings-OO5R3G52.mjs → settings-WDAIAP72.mjs} +7 -7
- package/dist/cli/{setup-DHGERXPZ.js → setup-SO5Y5PPR.js} +41 -41
- package/dist/cli/{setup-6GZH52OZ.mjs → setup-VZWFB35G.mjs} +6 -6
- package/dist/cli/skills-PVOBZRLZ.js +28 -0
- package/dist/cli/{skills-T3EY2656.mjs → skills-YUNBWLQ2.mjs} +4 -4
- package/dist/cli/{tools-BIMOAOTX.mjs → tools-HSBS6CL6.mjs} +5 -5
- package/dist/cli/{tools-ODXVCKO7.js → tools-HYYND5GY.js} +50 -50
- package/dist/cli/update-KTAZKIHP.js +28 -0
- package/dist/cli/{update-X4HX7Z3M.mjs → update-MENMYHFK.mjs} +6 -6
- package/dist/cli/{workflow-IVLCPFTG.js → workflow-JZIB3YKI.js} +15 -15
- package/dist/cli/{workflow-EAUFVPIP.mjs → workflow-TWGYS6II.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +68 -68
- 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-QDWV3TXX.js +0 -31
- package/dist/cli/client-IZGIN2ZA.js +0 -20
- package/dist/cli/git-563GYLMA.js +0 -23
- package/dist/cli/skills-Q7NUCS2W.js +0 -28
- package/dist/cli/update-UMB3ULBR.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTOAXEXTCjs = require('./chunk-TOAXEXTC.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunk7D6QG5KFjs = require('./chunk-7D6QG5KF.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk2Q4LGPVPjs = require('./chunk-2Q4LGPVP.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, () => ( _chunk2Q4LGPVPjs.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, _chunk2Q4LGPVPjs.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: _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
204
|
+
apiContract: _chunk2Q4LGPVPjs.SDK_API_CONTRACT,
|
|
205
|
+
apiMajor: _chunk2Q4LGPVPjs.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: _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunk2Q4LGPVPjs.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", _chunk2Q4LGPVPjs.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
|
}
|
|
@@ -314,11 +314,11 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
314
314
|
const response = await fetch(url, {
|
|
315
315
|
method: "GET",
|
|
316
316
|
headers: {
|
|
317
|
-
...
|
|
318
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
319
|
-
"X-Deepline-SDK-Version":
|
|
320
|
-
"X-Deepline-API-Major": String(
|
|
321
|
-
"X-Deepline-API-Contract":
|
|
317
|
+
..._chunk2Q4LGPVPjs.deploymentProtectionHeaders.call(void 0, ),
|
|
318
|
+
"User-Agent": `deepline-ts-sdk/${_chunk2Q4LGPVPjs.SDK_VERSION}`,
|
|
319
|
+
"X-Deepline-SDK-Version": _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
320
|
+
"X-Deepline-API-Major": String(_chunk2Q4LGPVPjs.SDK_API_MAJOR),
|
|
321
|
+
"X-Deepline-API-Contract": _chunk2Q4LGPVPjs.SDK_API_CONTRACT,
|
|
322
322
|
"X-Deepline-CLI-Update-Preferences": "1"
|
|
323
323
|
},
|
|
324
324
|
signal: controller.signal
|
|
@@ -534,7 +534,7 @@ function buildEnvironmentContext() {
|
|
|
534
534
|
node_version: process.version,
|
|
535
535
|
runtime: "Node.js",
|
|
536
536
|
hostname: _os.hostname.call(void 0, ),
|
|
537
|
-
agent_runtime:
|
|
537
|
+
agent_runtime: _chunk2Q4LGPVPjs.detectAgentRuntime.call(void 0, )
|
|
538
538
|
};
|
|
539
539
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
540
540
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -558,12 +558,12 @@ function failureReportHeaders(apiKey) {
|
|
|
558
558
|
return {
|
|
559
559
|
Authorization: `Bearer ${apiKey}`,
|
|
560
560
|
"Content-Type": "application/json",
|
|
561
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
561
|
+
"User-Agent": `deepline-ts-sdk/${_chunk2Q4LGPVPjs.SDK_VERSION}`,
|
|
562
562
|
"X-Deepline-Client-Family": "sdk",
|
|
563
563
|
"X-Deepline-CLI-Family": "sdk",
|
|
564
|
-
"X-Deepline-Agent-Runtime":
|
|
565
|
-
"X-Deepline-CLI-Version":
|
|
566
|
-
"X-Deepline-SDK-Version":
|
|
564
|
+
"X-Deepline-Agent-Runtime": _chunk2Q4LGPVPjs.detectAgentRuntime.call(void 0, ),
|
|
565
|
+
"X-Deepline-CLI-Version": _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
566
|
+
"X-Deepline-SDK-Version": _chunk2Q4LGPVPjs.SDK_VERSION
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
async function postFailureReport(input) {
|
|
@@ -591,7 +591,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
591
591
|
if (isFailureReportingDisabled()) return false;
|
|
592
592
|
let apiKey = "";
|
|
593
593
|
try {
|
|
594
|
-
apiKey =
|
|
594
|
+
apiKey = _chunk2Q4LGPVPjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
595
595
|
} catch (e6) {
|
|
596
596
|
return false;
|
|
597
597
|
}
|
|
@@ -618,7 +618,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
618
618
|
failure_code: failureCode2,
|
|
619
619
|
failure_stage: failureStage,
|
|
620
620
|
error_body: "Automatic Deepline skills installation failed.",
|
|
621
|
-
cli_version:
|
|
621
|
+
cli_version: _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
622
622
|
context: {
|
|
623
623
|
environment: buildEnvironmentContext(),
|
|
624
624
|
skills_sync: {
|
|
@@ -738,7 +738,7 @@ function buildFailureReport(input) {
|
|
|
738
738
|
failure_kind: failureKind,
|
|
739
739
|
failure_code: code,
|
|
740
740
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
741
|
-
cli_version:
|
|
741
|
+
cli_version: _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
742
742
|
context: {
|
|
743
743
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
744
744
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -758,8 +758,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
758
758
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
759
759
|
const exitCode = resolvedExitCode(input);
|
|
760
760
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
761
|
-
const baseUrl =
|
|
762
|
-
const apiKey =
|
|
761
|
+
const baseUrl = _chunk2Q4LGPVPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
762
|
+
const apiKey = _chunk2Q4LGPVPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
763
763
|
if (!apiKey) return false;
|
|
764
764
|
return postFailureReport({
|
|
765
765
|
baseUrl,
|
|
@@ -777,28 +777,28 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
777
777
|
|
|
778
778
|
// src/cli/skills-sync.ts
|
|
779
779
|
var CHECK_TIMEOUT_MS2 = 3e3;
|
|
780
|
-
var INSTALLER_PROBE_TIMEOUT_MS =
|
|
780
|
+
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
781
781
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
782
782
|
function shouldSkipSkillsSync() {
|
|
783
|
-
if (
|
|
783
|
+
if (_chunk2Q4LGPVPjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
784
784
|
return true;
|
|
785
785
|
}
|
|
786
786
|
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()]);
|
|
787
787
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
788
788
|
}
|
|
789
789
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
790
|
-
return _path.join.call(void 0,
|
|
790
|
+
return _path.join.call(void 0, _chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
791
791
|
}
|
|
792
792
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
793
793
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
794
|
-
var agentLeaseSegment =
|
|
794
|
+
var agentLeaseSegment = _chunk2Q4LGPVPjs.skillsAgentPathSegment;
|
|
795
795
|
function sortedLeaseAgents(agents) {
|
|
796
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
796
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk2Q4LGPVPjs.KNOWN_SKILL_AGENTS] : agents;
|
|
797
797
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
798
798
|
}
|
|
799
799
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
800
800
|
return _path.join.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
802
802
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
803
803
|
);
|
|
804
804
|
}
|
|
@@ -1015,7 +1015,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1017
1017
|
return _path.join.call(void 0,
|
|
1018
|
-
|
|
1018
|
+
_chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1019
1019
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1020
1020
|
);
|
|
1021
1021
|
}
|
|
@@ -1049,8 +1049,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1049
1049
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1050
1050
|
}
|
|
1051
1051
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1052
|
-
if (shouldSkipSkillsSync() ||
|
|
1053
|
-
const agents =
|
|
1052
|
+
if (shouldSkipSkillsSync() || _chunk2Q4LGPVPjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1053
|
+
const agents = _chunk2Q4LGPVPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1054
1054
|
if (agents.length === 0) return;
|
|
1055
1055
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1056
1056
|
}
|
|
@@ -1066,7 +1066,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1068
1068
|
return _path.join.call(void 0,
|
|
1069
|
-
|
|
1069
|
+
_chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1070
1070
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1071
1071
|
);
|
|
1072
1072
|
}
|
|
@@ -1095,7 +1095,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1095
1095
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1096
1096
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1097
1097
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1098
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1098
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk2Q4LGPVPjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1099
1099
|
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.`;
|
|
1100
1100
|
notice(
|
|
1101
1101
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1182,7 +1182,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1182
1182
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1183
1183
|
}
|
|
1184
1184
|
function isDefaultAgentSet(agents) {
|
|
1185
|
-
return agents.length ===
|
|
1185
|
+
return agents.length === _chunk2Q4LGPVPjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk2Q4LGPVPjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1186
1186
|
}
|
|
1187
1187
|
function safeSkillFilePath(value) {
|
|
1188
1188
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1379,7 +1379,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
function noInstallerProbePath(baseUrl) {
|
|
1381
1381
|
return _path.join.call(void 0,
|
|
1382
|
-
|
|
1382
|
+
_chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1383
1383
|
"skills-sync-no-installer-unknown.json"
|
|
1384
1384
|
);
|
|
1385
1385
|
}
|
|
@@ -1435,7 +1435,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1435
1435
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1436
1436
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1437
1437
|
}
|
|
1438
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1438
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk2Q4LGPVPjs.DEFAULT_SKILL_AGENTS) {
|
|
1439
1439
|
const commands = [];
|
|
1440
1440
|
if (hasCommand("bunx")) {
|
|
1441
1441
|
const bunxArgs = buildBunxSkillsInstallArgs(baseUrl, skillNames, agents);
|
|
@@ -1586,11 +1586,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1588
1588
|
if (shouldSkipSkillsSync()) return;
|
|
1589
|
-
const usingPluginSkills =
|
|
1589
|
+
const usingPluginSkills = _chunk2Q4LGPVPjs.hasActivePluginSkills.call(void 0, );
|
|
1590
1590
|
if (usingPluginSkills) {
|
|
1591
1591
|
return;
|
|
1592
1592
|
}
|
|
1593
|
-
const agents =
|
|
1593
|
+
const agents = _chunk2Q4LGPVPjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1594
1594
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1595
1595
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1596
1596
|
}
|
|
@@ -1614,7 +1614,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1614
1614
|
if (outcome !== "unavailable") return;
|
|
1615
1615
|
}
|
|
1616
1616
|
try {
|
|
1617
|
-
const localVersion =
|
|
1617
|
+
const localVersion = _chunk2Q4LGPVPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1618
1618
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1619
1619
|
needsUpdate: options.update.needs_update,
|
|
1620
1620
|
remoteVersion: options.update.remote.version
|
|
@@ -1769,7 +1769,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
runLegacySkillsCleanup(agents);
|
|
1772
|
-
if (!
|
|
1772
|
+
if (!_chunk2Q4LGPVPjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1773
1773
|
notice(
|
|
1774
1774
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1775
1775
|
);
|
|
@@ -1827,7 +1827,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1827
1827
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1828
1828
|
}
|
|
1829
1829
|
function resolveLocalRoot() {
|
|
1830
|
-
const target =
|
|
1830
|
+
const target = _chunk2Q4LGPVPjs.resolveProjectPinTarget.call(void 0, );
|
|
1831
1831
|
if (!target.ok) {
|
|
1832
1832
|
throw new Error(
|
|
1833
1833
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1838,7 +1838,7 @@ function resolveLocalRoot() {
|
|
|
1838
1838
|
return target.dir;
|
|
1839
1839
|
}
|
|
1840
1840
|
function detectSkillsAgents(input) {
|
|
1841
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1841
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk2Q4LGPVPjs.detectAgentRuntime.call(void 0, )));
|
|
1842
1842
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1843
1843
|
if (knownAgent) return [knownAgent];
|
|
1844
1844
|
const roots = [
|
|
@@ -1853,7 +1853,7 @@ function detectSkillsAgents(input) {
|
|
|
1853
1853
|
return detected.length > 0 ? detected : ["*"];
|
|
1854
1854
|
}
|
|
1855
1855
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1856
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1856
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk2Q4LGPVPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1857
1857
|
}
|
|
1858
1858
|
function buildSkillsPlan(input) {
|
|
1859
1859
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -1969,7 +1969,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
1969
1969
|
scope = normalizeScope(options.scope);
|
|
1970
1970
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
1971
1971
|
} catch (error) {
|
|
1972
|
-
|
|
1972
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
1973
1973
|
{
|
|
1974
1974
|
ok: false,
|
|
1975
1975
|
status: "failed",
|
|
@@ -1981,22 +1981,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
1981
1981
|
);
|
|
1982
1982
|
return 2;
|
|
1983
1983
|
}
|
|
1984
|
-
const baseUrl =
|
|
1984
|
+
const baseUrl = _chunk2Q4LGPVPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
1985
1985
|
const catalog = {
|
|
1986
1986
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
1987
|
-
version:
|
|
1987
|
+
version: _chunk2Q4LGPVPjs.SDK_VERSION
|
|
1988
1988
|
};
|
|
1989
1989
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
1990
1990
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
1991
1991
|
if (options.dryRun) {
|
|
1992
|
-
|
|
1992
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
1993
1993
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
1994
1994
|
{ json: options.json }
|
|
1995
1995
|
);
|
|
1996
1996
|
return 0;
|
|
1997
1997
|
}
|
|
1998
1998
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
1999
|
-
|
|
1999
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
2000
2000
|
{
|
|
2001
2001
|
ok: true,
|
|
2002
2002
|
status: "current",
|
|
@@ -2031,7 +2031,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2031
2031
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2032
2032
|
];
|
|
2033
2033
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2034
|
-
|
|
2034
|
+
_chunk2Q4LGPVPjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2035
2035
|
".deepline/",
|
|
2036
2036
|
...agentRoots.flatMap(
|
|
2037
2037
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2046,7 +2046,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2046
2046
|
}) : { release: () => {
|
|
2047
2047
|
} };
|
|
2048
2048
|
if (!lease) {
|
|
2049
|
-
|
|
2049
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
2050
2050
|
{
|
|
2051
2051
|
ok: false,
|
|
2052
2052
|
status: "failed",
|
|
@@ -2092,7 +2092,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2092
2092
|
throw new Error("Could not install the current Deepline skills.");
|
|
2093
2093
|
}
|
|
2094
2094
|
} catch (error) {
|
|
2095
|
-
|
|
2095
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
2096
2096
|
{
|
|
2097
2097
|
ok: false,
|
|
2098
2098
|
status: "failed",
|
|
@@ -2131,7 +2131,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2131
2131
|
{
|
|
2132
2132
|
schemaVersion: 1,
|
|
2133
2133
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2134
|
-
cliVersion:
|
|
2134
|
+
cliVersion: _chunk2Q4LGPVPjs.SDK_VERSION,
|
|
2135
2135
|
scope,
|
|
2136
2136
|
agents,
|
|
2137
2137
|
skillsVersion: plan.version,
|
|
@@ -2146,7 +2146,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2146
2146
|
if (scope === "global") {
|
|
2147
2147
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
2150
2150
|
{
|
|
2151
2151
|
ok: true,
|
|
2152
2152
|
status: "complete",
|
|
@@ -2195,7 +2195,7 @@ Examples:
|
|
|
2195
2195
|
).action(async (options) => {
|
|
2196
2196
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2197
2197
|
if (!claim) {
|
|
2198
|
-
|
|
2198
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
2199
2199
|
{
|
|
2200
2200
|
ok: false,
|
|
2201
2201
|
status: "failed",
|
|
@@ -2208,7 +2208,7 @@ Examples:
|
|
|
2208
2208
|
process.exitCode = 2;
|
|
2209
2209
|
return;
|
|
2210
2210
|
}
|
|
2211
|
-
await syncSdkSkillsIfNeeded(
|
|
2211
|
+
await syncSdkSkillsIfNeeded(_chunk2Q4LGPVPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2212
2212
|
mode: "inline",
|
|
2213
2213
|
notices: "defer",
|
|
2214
2214
|
claim
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkTOAXEXTCjs = require('./chunk-TOAXEXTC.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk2Q4LGPVPjs = require('./chunk-2Q4LGPVP.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkTOAXEXTCjs.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 = _chunk2Q4LGPVPjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkTOAXEXTCjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.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
|
+
_chunkTOAXEXTCjs.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 } = _chunkTOAXEXTCjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkTOAXEXTCjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U6G52KUV.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-YE5PJMFK.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FT4JXVAD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MJWD6SJR.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-U6G52KUV.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YE5PJMFK.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk2Q4LGPVPjs = require('./chunk-2Q4LGPVP.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 = _chunk2Q4LGPVPjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunk2Q4LGPVPjs.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: _chunk2Q4LGPVPjs.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 _chunk2Q4LGPVPjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunk2Q4LGPVPjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|