@lousy-agents/mcp 5.0.0 → 5.1.1

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.
@@ -42894,7 +42894,7 @@ function isPathWithinRoot(rootPath, candidatePath) {
42894
42894
  }
42895
42895
  /**
42896
42896
  * Enforces a maximum file size before reading/parsing.
42897
- */ async function assertFileSizeWithinLimit(filePath, maxBytes, context) {
42897
+ */ async function file_system_utils_assertFileSizeWithinLimit(filePath, maxBytes, context) {
42898
42898
  const fileStats = await (0,promises_.stat)(filePath);
42899
42899
  if (fileStats.size > maxBytes) {
42900
42900
  throw new Error(`${context} exceeds size limit (${fileStats.size} bytes > ${maxBytes} bytes)`);
@@ -45570,7 +45570,7 @@ const CopilotSetupConfigSchema = schemas_object({
45570
45570
 
45571
45571
  const MAX_VERSION_FILE_BYTES = 16 * 1024;
45572
45572
  async function readVersionFileContent(filePath) {
45573
- await assertFileSizeWithinLimit(filePath, MAX_VERSION_FILE_BYTES, `Version file '${filePath}'`);
45573
+ await file_system_utils_assertFileSizeWithinLimit(filePath, MAX_VERSION_FILE_BYTES, `Version file '${filePath}'`);
45574
45574
  const content = await (0,promises_.readFile)(filePath, "utf-8");
45575
45575
  return content.trim();
45576
45576
  }
@@ -46018,6 +46018,34 @@ function defaultExec(command, args, options) {
46018
46018
  return new FileSystemInstructionAnalysisGateway();
46019
46019
  }
46020
46020
 
46021
+ ;// CONCATENATED MODULE: ../core/src/gateways/npmrc-gateway.ts
46022
+ /**
46023
+ * Gateway for reading and writing `.npmrc` configuration files.
46024
+ */
46025
+
46026
+ const MAX_NPMRC_BYTES = (/* unused pure expression or super */ null && (64 * 1024));
46027
+ /**
46028
+ * File system implementation of the NpmrcGateway.
46029
+ */ class FileSystemNpmrcGateway {
46030
+ async readNpmrc(targetDir) {
46031
+ const npmrcPath = await resolveSafePath(targetDir, ".npmrc");
46032
+ if (!await fileExists(npmrcPath)) {
46033
+ return null;
46034
+ }
46035
+ await assertFileSizeWithinLimit(npmrcPath, MAX_NPMRC_BYTES, "`.npmrc` file");
46036
+ return readFile(npmrcPath, "utf-8");
46037
+ }
46038
+ async writeNpmrc(targetDir, content) {
46039
+ const npmrcPath = await resolveSafePath(targetDir, ".npmrc");
46040
+ await writeFile(npmrcPath, content, "utf-8");
46041
+ }
46042
+ }
46043
+ /**
46044
+ * Creates and returns the default NpmrcGateway.
46045
+ */ function createNpmrcGateway() {
46046
+ return new FileSystemNpmrcGateway();
46047
+ }
46048
+
46021
46049
  ;// CONCATENATED MODULE: ../core/src/entities/feedback-loop.ts
46022
46050
  /**
46023
46051
  * Core domain entities for SDLC feedback loop discovery and validation.
@@ -46693,7 +46721,7 @@ class FileSystemWorkflowGateway {
46693
46721
  const allCandidates = [];
46694
46722
  for (const file of yamlFiles){
46695
46723
  const filePath = await file_system_utils_resolveSafePath(targetDir, `.github/workflows/${file}`);
46696
- await assertFileSizeWithinLimit(filePath, MAX_WORKFLOW_FILE_BYTES, `Workflow file '${file}'`);
46724
+ await file_system_utils_assertFileSizeWithinLimit(filePath, MAX_WORKFLOW_FILE_BYTES, `Workflow file '${file}'`);
46697
46725
  try {
46698
46726
  const content = await (0,promises_.readFile)(filePath, "utf-8");
46699
46727
  const workflow = (0,yaml_dist.parse)(content);
@@ -46721,7 +46749,7 @@ class FileSystemWorkflowGateway {
46721
46749
  if (!workflowPath) {
46722
46750
  return null;
46723
46751
  }
46724
- await assertFileSizeWithinLimit(workflowPath, MAX_WORKFLOW_FILE_BYTES, "Copilot setup workflow");
46752
+ await file_system_utils_assertFileSizeWithinLimit(workflowPath, MAX_WORKFLOW_FILE_BYTES, "Copilot setup workflow");
46725
46753
  const content = await (0,promises_.readFile)(workflowPath, "utf-8");
46726
46754
  return (0,yaml_dist.parse)(content);
46727
46755
  }
@@ -46757,6 +46785,7 @@ function createWorkflowGateway() {
46757
46785
 
46758
46786
 
46759
46787
 
46788
+
46760
46789
  ;// CONCATENATED MODULE: ./src/tools/types.ts
46761
46790
  /**
46762
46791
  * Shared types and utilities for MCP tool handlers.