@lousy-agents/mcp 5.2.3 → 5.2.5
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/mcp-server.js +26 -11
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -45514,9 +45514,11 @@ const CopilotSetupConfigSchema = schemas_object({
|
|
|
45514
45514
|
/**
|
|
45515
45515
|
* Loads the copilot-setup configuration using c12.
|
|
45516
45516
|
* Falls back to defaults if no configuration is found.
|
|
45517
|
-
|
|
45517
|
+
* @param cwd Optional working directory to load config from (defaults to process.cwd())
|
|
45518
|
+
*/ async function loadCopilotSetupConfig(cwd) {
|
|
45518
45519
|
const { config } = await loadConfig({
|
|
45519
45520
|
name: "lousy-agents",
|
|
45521
|
+
cwd,
|
|
45520
45522
|
defaults: DEFAULT_COPILOT_SETUP_CONFIG,
|
|
45521
45523
|
packageJson: "copilotSetup"
|
|
45522
45524
|
});
|
|
@@ -45568,6 +45570,7 @@ const CopilotSetupConfigSchema = schemas_object({
|
|
|
45568
45570
|
|
|
45569
45571
|
|
|
45570
45572
|
|
|
45573
|
+
|
|
45571
45574
|
const MAX_VERSION_FILE_BYTES = 16 * 1024;
|
|
45572
45575
|
async function readVersionFileContent(filePath) {
|
|
45573
45576
|
await file_system_utils_assertFileSizeWithinLimit(filePath, MAX_VERSION_FILE_BYTES, `Version file '${filePath}'`);
|
|
@@ -45577,10 +45580,14 @@ async function readVersionFileContent(filePath) {
|
|
|
45577
45580
|
/**
|
|
45578
45581
|
* File system implementation of the environment gateway.
|
|
45579
45582
|
*/ class FileSystemEnvironmentGateway {
|
|
45583
|
+
cwd;
|
|
45580
45584
|
config = null;
|
|
45585
|
+
constructor(cwd){
|
|
45586
|
+
this.cwd = cwd;
|
|
45587
|
+
}
|
|
45581
45588
|
async getConfig() {
|
|
45582
45589
|
if (!this.config) {
|
|
45583
|
-
this.config = await loadCopilotSetupConfig();
|
|
45590
|
+
this.config = await loadCopilotSetupConfig(this.cwd !== undefined ? (0,external_node_path_.resolve)(this.cwd) : undefined);
|
|
45584
45591
|
}
|
|
45585
45592
|
return this.config;
|
|
45586
45593
|
}
|
|
@@ -45711,8 +45718,9 @@ async function readVersionFileContent(filePath) {
|
|
|
45711
45718
|
}
|
|
45712
45719
|
/**
|
|
45713
45720
|
* Creates and returns the default environment gateway.
|
|
45714
|
-
|
|
45715
|
-
|
|
45721
|
+
* @param cwd Optional working directory for config loading (defaults to process.cwd())
|
|
45722
|
+
*/ function createEnvironmentGateway(cwd) {
|
|
45723
|
+
return new FileSystemEnvironmentGateway(cwd);
|
|
45716
45724
|
}
|
|
45717
45725
|
|
|
45718
45726
|
// EXTERNAL MODULE: external "node:child_process"
|
|
@@ -46688,16 +46696,21 @@ var yaml_dist = __webpack_require__(3519);
|
|
|
46688
46696
|
|
|
46689
46697
|
|
|
46690
46698
|
|
|
46699
|
+
|
|
46691
46700
|
const COPILOT_SETUP_WORKFLOW_FILENAMES = [
|
|
46692
46701
|
"copilot-setup-steps.yml",
|
|
46693
46702
|
"copilot-setup-steps.yaml"
|
|
46694
46703
|
];
|
|
46695
46704
|
const MAX_WORKFLOW_FILE_BYTES = 1024 * 1024;
|
|
46696
46705
|
class FileSystemWorkflowGateway {
|
|
46706
|
+
cwd;
|
|
46697
46707
|
config = null;
|
|
46708
|
+
constructor(cwd){
|
|
46709
|
+
this.cwd = cwd;
|
|
46710
|
+
}
|
|
46698
46711
|
async getConfig() {
|
|
46699
46712
|
if (!this.config) {
|
|
46700
|
-
this.config = await loadCopilotSetupConfig();
|
|
46713
|
+
this.config = await loadCopilotSetupConfig(this.cwd !== undefined ? (0,external_node_path_.resolve)(this.cwd) : undefined);
|
|
46701
46714
|
}
|
|
46702
46715
|
return this.config;
|
|
46703
46716
|
}
|
|
@@ -46759,8 +46772,8 @@ class FileSystemWorkflowGateway {
|
|
|
46759
46772
|
await (0,promises_.writeFile)(workflowPath, content, "utf-8");
|
|
46760
46773
|
}
|
|
46761
46774
|
}
|
|
46762
|
-
function createWorkflowGateway() {
|
|
46763
|
-
return new FileSystemWorkflowGateway();
|
|
46775
|
+
function createWorkflowGateway(cwd) {
|
|
46776
|
+
return new FileSystemWorkflowGateway(cwd);
|
|
46764
46777
|
}
|
|
46765
46778
|
|
|
46766
46779
|
;// CONCATENATED MODULE: ../core/src/gateways/workflow-gateway.ts
|
|
@@ -66989,7 +67002,7 @@ function buildInstallCandidatesFromPackageManagers(packageManagers, config) {
|
|
|
66989
67002
|
}
|
|
66990
67003
|
const stepName = getInstallStepName(pm.type);
|
|
66991
67004
|
candidates.push({
|
|
66992
|
-
action:
|
|
67005
|
+
action: `run:${pm.type}`,
|
|
66993
67006
|
source: "version-file",
|
|
66994
67007
|
name: stepName,
|
|
66995
67008
|
run: pmConfig.installCommand
|
|
@@ -67465,8 +67478,8 @@ const workflow_generator_defaultActionVersionPort = createActionVersionPort(work
|
|
|
67465
67478
|
* @returns A typed Step object
|
|
67466
67479
|
*/ function buildStepFromCandidate(candidate, options) {
|
|
67467
67480
|
// Handle run steps (install commands)
|
|
67468
|
-
// Run steps have a 'run' field and
|
|
67469
|
-
if (candidate.run &&
|
|
67481
|
+
// Run steps have a 'run' field and use the 'run:' action prefix (e.g., 'run:npm')
|
|
67482
|
+
if (candidate.run && candidate.action.startsWith("run:")) {
|
|
67470
67483
|
const stepProps = {
|
|
67471
67484
|
name: candidate.name || "Run command",
|
|
67472
67485
|
run: candidate.run
|
|
@@ -67543,9 +67556,11 @@ const workflow_generator_defaultActionVersionPort = createActionVersionPort(work
|
|
|
67543
67556
|
const job = new NormalJob("copilot-setup-steps", {
|
|
67544
67557
|
"runs-on": "ubuntu-latest",
|
|
67545
67558
|
"timeout-minutes": 30,
|
|
67546
|
-
permissions: {
|
|
67559
|
+
permissions: options?.includeIdTokenPermission ? {
|
|
67547
67560
|
"id-token": "write",
|
|
67548
67561
|
contents: "read"
|
|
67562
|
+
} : {
|
|
67563
|
+
contents: "read"
|
|
67549
67564
|
}
|
|
67550
67565
|
}).addSteps(steps);
|
|
67551
67566
|
const workflow = new Workflow("copilot-setup-steps.yml", {
|