diff --git a/docs/advanced/api-reference.mdx b/docs/advanced/api-reference.mdx index 84dc0cb..9ffa845 100644 --- a/docs/advanced/api-reference.mdx +++ b/docs/advanced/api-reference.mdx @@ -225,7 +225,7 @@ Static proxy to the `PromptManager` singleton. | `Deck::get(string $name, ?int $version = null)` | `PromptTemplate` | Load a prompt by name and optional version. | | `Deck::active(string $name)` | `PromptTemplate` | Load the active version of a prompt. | | `Deck::versions(string $name)` | `array` | List all versions for a prompt. | -| `Deck::activate(string $name, string $version)` | `bool` | Activate a specific version. | +| `Deck::activate(string $name, int $version)` | `bool` | Activate a specific version. | | `Deck::track(string $name, int $version, array $data)` | `void` | Record a prompt execution. | --- diff --git a/docs/advanced/testing.mdx b/docs/advanced/testing.mdx index fad249e..32a976e 100644 --- a/docs/advanced/testing.mdx +++ b/docs/advanced/testing.mdx @@ -238,7 +238,7 @@ protected function defineEnvironment($app): void protected function defineDatabaseMigrations(): void { - $this->loadMigrationsFrom(__DIR__ . '/../src/database/migrations'); + $this->loadMigrationsFrom(__DIR__ . '/../src/Database/migrations'); } ``` diff --git a/docs/core/make-prompt.mdx b/docs/core/make-prompt.mdx index bc8cdd8..f5bc78c 100644 --- a/docs/core/make-prompt.mdx +++ b/docs/core/make-prompt.mdx @@ -276,7 +276,7 @@ The default stubs are located in the package's `stubs/` directory. ### Custom stubs -To customise the stubs for your project, create a `stubs/prompt-deck/` directory at your application root and place your own versions of any stub file there: +To customise the stubs for your project, create a `stubs/deck/` directory at your application root and place your own versions of any stub file there: ``` your-app/ diff --git a/docs/getting-started/configuration.mdx b/docs/getting-started/configuration.mdx index 9720ed4..ea217b6 100644 --- a/docs/getting-started/configuration.mdx +++ b/docs/getting-started/configuration.mdx @@ -68,10 +68,10 @@ Currently, only the `directory` strategy is supported. Each version is stored in ``` resources/prompts/order-summary/ ├── v1/ - └── system.md +│ └── system.md ├── v2/ - ├── system.md - └── user.md +│ ├── system.md +│ └── user.md └── metadata.json ``` diff --git a/docs/getting-started/introduction.mdx b/docs/getting-started/introduction.mdx index 3a196c5..cc6eb0a 100644 --- a/docs/getting-started/introduction.mdx +++ b/docs/getting-started/introduction.mdx @@ -34,7 +34,7 @@ This creates the following structure: resources/prompts/ └── order-summary/ ├── v1/ - └── system.md + │ └── system.md └── metadata.json ``` diff --git a/docs/integrations/ai-sdk.mdx b/docs/integrations/ai-sdk.mdx index f1de018..68226ca 100644 --- a/docs/integrations/ai-sdk.mdx +++ b/docs/integrations/ai-sdk.mdx @@ -119,9 +119,9 @@ The `HasPromptTemplate` trait bridges Deck's file-based templates with the Larav ``` prompts/sales-coach/ ├── v1/ - ├── system.md → instructions() - ├── user.md → promptMessages() - └── metadata.json +│ ├── system.md → instructions() +│ ├── user.md → promptMessages() +│ └── metadata.json └── v2/ ├── system.md → instructions() (active version) ├── user.md → promptMessages()