Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Formatting
Signed-off-by: Pushpak Chhajed <[email protected]>
  • Loading branch information
pushpak1300 committed Dec 16, 2025
commit 9c9c257ca3d5bcf10681aa65b22815079593d05a
2 changes: 1 addition & 1 deletion src/Mcp/Prompts/Concerns/RendersBladeGuidelines.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ protected function processBoostSnippets(string $content): string
}, $content);
}

protected function renderBlade(string $bladePath): string
protected function renderGuidelineFile(string $bladePath): string
{
if (! file_exists($bladePath)) {
return '';
Expand Down
3 changes: 1 addition & 2 deletions src/Mcp/Prompts/PackageGuidelinePrompt.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ public function __construct(
protected string $packageName,
protected string $bladePath,
) {

$this->name = $this->packageName;
$this->title = $this->packageName;
$this->description = "Guidelines for {$packageName}";
}

public function handle(): Response
{
$content = $this->renderBlade($this->bladePath);
$content = $this->renderGuidelineFile($this->bladePath);

return Response::text($content);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Mcp/Resources/PackageGuidelineResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(

public function handle(): Response
{
$content = $this->renderBlade($this->bladePath);
$content = $this->renderGuidelineFile($this->bladePath);

return Response::text($content);
}
Expand Down