mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-17 22:24:21 +01:00
docs: fix tab navigation (#3201)
This commit is contained in:
@@ -13,11 +13,8 @@ You can turn your current Goose session into a reusable recipe that includes the
|
||||
|
||||
## Create Recipe
|
||||
|
||||
<Tabs>
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="ui" label="Goose Desktop" default>
|
||||
:::warning
|
||||
You cannot create a recipe from an existing recipe session, but you can view or [edit the recipe](#edit-recipe).
|
||||
:::
|
||||
|
||||
1. While in the session you want to save as a recipe, click the gear icon `⚙️` in the top right corner
|
||||
2. Select **Make recipe from this session**
|
||||
@@ -29,15 +26,13 @@ You can turn your current Goose session into a reusable recipe that includes the
|
||||
- Some **activities** will be automatically generated. Add or remove as needed.
|
||||
4. Copy the recipe URL and use it however you like (e.g., share it with teammates, drop it in documentation, or keep it for yourself)
|
||||
|
||||
:::warning
|
||||
You cannot create a recipe from an existing recipe session, but you can view or [edit the recipe](#edit-recipe).
|
||||
:::
|
||||
|
||||
</TabItem>
|
||||
|
||||
<TabItem value="cli" label="Goose CLI">
|
||||
:::warning
|
||||
You cannot create a recipe from an existing recipe session - the `/recipe` command will not work.
|
||||
:::
|
||||
|
||||
### Create a Recipe File
|
||||
|
||||
Recipe files can be either JSON (.json) or YAML (.yaml) files. While in a [session](/docs/guides/managing-goose-sessions#start-session), run this command to generate a recipe.yaml file in your current directory:
|
||||
|
||||
```sh
|
||||
@@ -73,7 +68,15 @@ You can turn your current Goose session into a reusable recipe that includes the
|
||||
```
|
||||
</details>
|
||||
|
||||
### Optional Parameters
|
||||
:::warning
|
||||
You cannot create a recipe from an existing recipe session - the `/recipe` command will not work.
|
||||
:::
|
||||
|
||||
:::tip Validate Your Recipe
|
||||
You should [validate your recipe](#validate-recipe) to verify that it's complete and properly formatted.
|
||||
:::
|
||||
|
||||
#### Optional Parameters
|
||||
|
||||
You may add parameters to a recipe, which will require users to fill in data when running the recipe. Parameters can be added to any part of the recipe (instructions, prompt, activities, etc).
|
||||
|
||||
@@ -131,28 +134,6 @@ You can turn your current Goose session into a reusable recipe that includes the
|
||||
|
||||
See the [Recipe Reference Guide](/docs/guides/recipes/recipe-reference) for more information about recipe fields.
|
||||
|
||||
### Validate Recipe
|
||||
|
||||
[Exit the session](/docs/guides/managing-goose-sessions#exit-session) and run:
|
||||
|
||||
```sh
|
||||
goose recipe validate recipe.yaml
|
||||
```
|
||||
|
||||
Validation ensures that:
|
||||
- All required fields are present
|
||||
- Parameters are properly formatted
|
||||
- Referenced extensions exist and are valid
|
||||
- The YAML/JSON syntax is correct
|
||||
|
||||
### Share Your Recipe
|
||||
|
||||
Now that your recipe is created, you can share it with CLI users by directly sending them the recipe file or converting it to a shareable deep link for Desktop users:
|
||||
|
||||
```sh
|
||||
goose recipe deeplink recipe.yaml
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
|
||||
|
||||
@@ -166,17 +147,17 @@ Validation ensures that:
|
||||
- A **title** for the recipe
|
||||
- A **description**
|
||||
- A set of **instructions** for the recipe.
|
||||
- An optional inital **prompt**:
|
||||
- An optional initial **prompt**:
|
||||
- In the Desktop app, the prompt displays in the chat box.
|
||||
- In the CLI app, the prompt provides the initial message to run. Note that a prompt is required to run the recipe in headless (non-interactive) mode.
|
||||
- A set of optional **activities** to display in the Desktop app.
|
||||
- YAML format only: Optional **author** contact information and **extensions** the recipe usess.
|
||||
- YAML format only: Optional **author** contact information and **extensions** the recipe uses.
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Edit Recipe
|
||||
<Tabs>
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="ui" label="Goose Desktop" default>
|
||||
|
||||
1. While in the session created from a recipe, click the gear icon `⚙️` in the top right corner
|
||||
@@ -200,7 +181,7 @@ Validation ensures that:
|
||||
|
||||
## Use Recipe
|
||||
|
||||
<Tabs>
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="ui" label="Goose Desktop" default>
|
||||
|
||||
There are two ways to use a recipe in Goose Desktop:
|
||||
@@ -224,7 +205,12 @@ Validation ensures that:
|
||||
|
||||
<TabItem value="cli" label="Goose CLI">
|
||||
|
||||
### Configure Recipe Location
|
||||
Using a recipe with the Goose CLI might involve the following tasks:
|
||||
- [Configuring your recipe location](#configure-recipe-location)
|
||||
- [Running a recipe](#run-a-recipe)
|
||||
- [Scheduling a recipe](#schedule-a-recipe)
|
||||
|
||||
#### Configure Recipe Location
|
||||
|
||||
Recipes can be stored locally on your device or in a GitHub repository. Configure your recipe repository using either the `goose configure` command or [config file](/docs/guides/config-file#global-settings).
|
||||
|
||||
@@ -295,9 +281,9 @@ Validation ensures that:
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Run a Recipe
|
||||
#### Run a Recipe
|
||||
|
||||
<Tabs>
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="local" label="Local Recipe" default>
|
||||
|
||||
**Basic Usage** - Run once and exit (see [run options](/docs/guides/goose-cli-commands#run-options) and [recipe commands](/docs/guides/goose-cli-commands#recipe) for more):
|
||||
@@ -382,7 +368,7 @@ Validation ensures that:
|
||||
- Your session won't affect the original recipe creator's session
|
||||
:::
|
||||
|
||||
### Schedule a Recipe
|
||||
#### Schedule a Recipe
|
||||
Automate Goose recipes by running them on a schedule.
|
||||
|
||||
**Create a schedule** - Create a scheduled cron job that runs the recipe on the specified cadence.
|
||||
@@ -398,6 +384,52 @@ Validation ensures that:
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Validate Recipe
|
||||
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="ui" label="Goose Desktop" default>
|
||||
Recipe validation is only available through the CLI.
|
||||
</TabItem>
|
||||
<TabItem value="cli" label="Goose CLI">
|
||||
Validate your recipe file to ensure it's properly configured. Validation ensures that:
|
||||
- All required fields are present
|
||||
- Parameters are properly formatted
|
||||
- Referenced extensions exist and are valid
|
||||
- The YAML/JSON syntax is correct
|
||||
|
||||
```sh
|
||||
goose recipe validate recipe.yaml
|
||||
```
|
||||
|
||||
:::info
|
||||
If you want to validate a recipe you just created, you need to [exit the session](/docs/guides/managing-goose-sessions#exit-session) before running the `validate` subcommand.
|
||||
:::
|
||||
|
||||
Recipe validation can be useful for:
|
||||
- Troubleshooting recipes that aren't working as expected
|
||||
- Verifying recipes after manual edits
|
||||
- Automated testing in CI/CD pipelines
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Share Recipe
|
||||
|
||||
<Tabs groupId="interface">
|
||||
<TabItem value="ui" label="Goose Desktop" default>
|
||||
Share your recipe with Desktop users by copying the recipe URL from the recipe creation dialog. When someone clicks the URL, it will open Goose Desktop with your recipe configuration.
|
||||
|
||||
</TabItem>
|
||||
<TabItem value="cli" label="Goose CLI">
|
||||
Share your recipe with CLI users by directly sending them the recipe file or converting it to a shareable deep link for Desktop users:
|
||||
|
||||
```sh
|
||||
goose recipe deeplink recipe.yaml
|
||||
```
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Core Components
|
||||
|
||||
A recipe needs these core components:
|
||||
|
||||
Reference in New Issue
Block a user