chore: generate
This commit is contained in:
@@ -18,7 +18,20 @@ type AgentMode = "all" | "primary" | "subagent"
|
|||||||
// Permission keys (not raw tool names). Multiple tools can map to a single
|
// Permission keys (not raw tool names). Multiple tools can map to a single
|
||||||
// permission — e.g. write/edit/apply_patch all gate on `edit` — so we configure
|
// permission — e.g. write/edit/apply_patch all gate on `edit` — so we configure
|
||||||
// agents at the permission level to match how the runtime actually enforces it.
|
// agents at the permission level to match how the runtime actually enforces it.
|
||||||
const AVAILABLE_PERMISSIONS = ["bash", "read", "edit", "glob", "grep", "webfetch", "task", "todowrite", "websearch", "codesearch", "lsp", "skill"]
|
const AVAILABLE_PERMISSIONS = [
|
||||||
|
"bash",
|
||||||
|
"read",
|
||||||
|
"edit",
|
||||||
|
"glob",
|
||||||
|
"grep",
|
||||||
|
"webfetch",
|
||||||
|
"task",
|
||||||
|
"todowrite",
|
||||||
|
"websearch",
|
||||||
|
"codesearch",
|
||||||
|
"lsp",
|
||||||
|
"skill",
|
||||||
|
]
|
||||||
|
|
||||||
const AgentCreateCommand = cmd({
|
const AgentCreateCommand = cmd({
|
||||||
command: "create",
|
command: "create",
|
||||||
|
|||||||
@@ -422,7 +422,7 @@ You can configure permissions to manage what actions an agent can take. Each per
|
|||||||
The available permission keys are:
|
The available permission keys are:
|
||||||
|
|
||||||
| Key | Tools it gates |
|
| Key | Tools it gates |
|
||||||
| -------------------- | ----------------------------------------------------------------------------- |
|
| -------------------- | ---------------------------------------------------------------- |
|
||||||
| `read` | `read` |
|
| `read` | `read` |
|
||||||
| `edit` | `write`, `edit`, `apply_patch` |
|
| `edit` | `write`, `edit`, `apply_patch` |
|
||||||
| `glob` | `glob` |
|
| `glob` | `glob` |
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ This command will guide you through creating a new agent with a custom system pr
|
|||||||
#### Flags
|
#### Flags
|
||||||
|
|
||||||
| Flag | Description |
|
| Flag | Description |
|
||||||
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
|
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
| `--path` | Directory to write the agent file to (defaults to global or `.opencode/agent` based on the prompt) |
|
| `--path` | Directory to write the agent file to (defaults to global or `.opencode/agent` based on the prompt) |
|
||||||
| `--description` | What the agent should do |
|
| `--description` | What the agent should do |
|
||||||
| `--mode` | Agent mode: `all`, `primary`, or `subagent` |
|
| `--mode` | Agent mode: `all`, `primary`, or `subagent` |
|
||||||
|
|||||||
Reference in New Issue
Block a user