Fix bin/publish: copy docs.dist from project root

Fix bin/publish: use correct .env path for rspade_system
Fix bin/publish script: prevent grep exit code 1 from terminating script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-10-21 02:08:33 +00:00
commit f6fac6c4bc
79758 changed files with 10547827 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\RSpade\Core\Ajax\Exceptions;
// @FILE-SUBCLASS-01-EXCEPTION
/**
* Exception thrown when an API method requires authentication
*/
#[Instantiatable]
class AjaxAuthRequiredException extends \Exception
{
public function __construct($message = "Authentication Required", $code = 401, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\RSpade\Core\Ajax\Exceptions;
// @FILE-SUBCLASS-01-EXCEPTION
/**
* Exception thrown when an API method encounters a fatal error
*/
#[Instantiatable]
class AjaxFatalErrorException extends \Exception
{
public function __construct($message = "Fatal error occurred", $code = 500, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}

View File

@@ -0,0 +1,33 @@
<?php
namespace App\RSpade\Core\Ajax\Exceptions;
// @FILE-SUBCLASS-01-EXCEPTION
/**
* Exception thrown when an API method encounters form validation errors
*
* This exception carries additional metadata about the errors that can be
* extracted by the calling code.
*/
#[Instantiatable]
class AjaxFormErrorException extends \Exception
{
protected array $details;
public function __construct($message = "Form validation error", array $details = [], $code = 422, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
$this->details = $details;
}
/**
* Get the error details/metadata
*
* @return array
*/
public function get_details(): array
{
return $this->details;
}
}

View File

@@ -0,0 +1,17 @@
<?php
namespace App\RSpade\Core\Ajax\Exceptions;
// @FILE-SUBCLASS-01-EXCEPTION
/**
* Exception thrown when an API method denies access due to authorization
*/
#[Instantiatable]
class AjaxUnauthorizedException extends \Exception
{
public function __construct($message = "Unauthorized", $code = 403, \Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
}