Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0fdc8de

Browse files
Merge branch 'main' into patch-1
2 parents 1e9c71a + fb10a93 commit 0fdc8de

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

‎.ai/boost/core.blade.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@
2929

3030
1. Simple Word Searches with auto-stemming - query=authentication - finds 'authenticate' and 'auth'
3131
2. Multiple Words (AND Logic) - query=rate limit - finds knowledge containing both "rate" AND "limit"
32-
3. Quoted Phrases (Exact Position) - query="infinite scroll - Words must be adjacent and in that order
32+
3. Quoted Phrases (Exact Position) - query="infinite scroll" - Words must be adjacent and in that order
3333
4. Mixed Queries - query=middleware "rate limit" - "middleware" AND exact phrase "rate limit"
3434
5. Multiple Queries - queries=["authentication", "middleware"] - ANY of these terms

‎src/BoostServiceProvider.php‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ private function registerRoutes(): void
107107
* } $log */
108108
foreach ($logs as $log) {
109109
$logger->write(
110-
level: $this->mapJsTypeToPsr3Level($log['type']),
111-
message: $this->buildLogMessageFromData($log['data']),
110+
level: self::mapJsTypeToPsr3Level($log['type']),
111+
message: self::buildLogMessageFromData($log['data']),
112112
context: [
113113
'url' => $log['url'],
114114
'user_agent' => $log['userAgent'] ?: null,
@@ -127,13 +127,13 @@ private function registerRoutes(): void
127127
* Build a string message for the log based on various input types. Single-dimensional, and multi:
128128
* "data": {"message":"Unhandled Promise Rejection","reason":{"name":"TypeError","message":"NetworkError when attempting to fetch resource.","stack":""}}]
129129
*/
130-
private function buildLogMessageFromData(array $data): string
130+
private staticfunction buildLogMessageFromData(array $data): string
131131
{
132132
$messages = [];
133133

134134
foreach ($data as $value) {
135135
$messages[] = match (true) {
136-
is_array($value) => $this->buildLogMessageFromData($value),
136+
is_array($value) => self::buildLogMessageFromData($value),
137137
is_string($value), is_numeric($value) => (string) $value,
138138
is_bool($value) => $value ? 'true' : 'false',
139139
is_null($value) => 'null',
@@ -162,7 +162,7 @@ private function registerBladeDirectives(BladeCompiler $bladeCompiler): void
162162
$bladeCompiler->directive('boostJs', fn () => '<?php echo \\Laravel\\Boost\\Services\\BrowserLogger::getScript(); ?>');
163163
}
164164

165-
private function mapJsTypeToPsr3Level(string $type): string
165+
private staticfunction mapJsTypeToPsr3Level(string $type): string
166166
{
167167
return match ($type) {
168168
'warn' => 'warning',

‎src/Console/InstallCommand.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ private function outro(): void
178178

179179
$link = $this->hyperlink($label, 'https://boost.laravel.com/installed/?d='.$installData);
180180

181-
$text = 'Enjoy the boost 🚀 ';
181+
$text = 'Enjoy the boost 🚀 Next steps: ';
182182
$paddingLength = (int) (floor(($this->terminal->cols() - mb_strlen($text.$label)) / 2)) - 2;
183183

184184
echo "033円[42m033円[2K".str_repeat('', $paddingLength); // Make the entire line have a green background
@@ -230,7 +230,7 @@ private function selectBoostFeatures(): Collection
230230
$installOptions['herd_mcp'] = 'Herd MCP Server';
231231

232232
return collect(multiselect(
233-
label: 'What shall we install?',
233+
label: 'What do you want to install?',
234234
options: $installOptions,
235235
default: $defaultInstallOptions,
236236
required: true,

‎src/Install/CodeEnvironment/ClaudeCode.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function mcpInstallationStrategy(): McpInstallationStrategy
4848

4949
public function shellMcpCommand(): string
5050
{
51-
return 'claude mcp add -s local -t stdio {key} "{command}" {args} {env}';
51+
return 'claude mcp add -s project -t stdio {key} "{command}" {args} {env}';
5252
}
5353

5454
public function guidelinesPath(): string

‎src/Services/BrowserLogger.php‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ function scheduleFlush() {
108108
// Global error handlers for uncaught errors
109109
const originalOnError = window.onerror;
110110
window.onerror = function boostErrorHandler(errorMsg, url, lineNumber, colNumber, error) {
111-
console.log('window on error work please');
112111
try {
113112
logQueue.push({
114113
type: 'uncaught_error',

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /