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 — 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.
|
||||
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({
|
||||
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:
|
||||
|
||||
| Key | Tools it gates |
|
||||
| -------------------- | ----------------------------------------------------------------------------- |
|
||||
| -------------------- | ---------------------------------------------------------------- |
|
||||
| `read` | `read` |
|
||||
| `edit` | `write`, `edit`, `apply_patch` |
|
||||
| `glob` | `glob` |
|
||||
|
||||
@@ -98,7 +98,7 @@ This command will guide you through creating a new agent with a custom system pr
|
||||
#### Flags
|
||||
|
||||
| Flag | Description |
|
||||
| ---------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `--path` | Directory to write the agent file to (defaults to global or `.opencode/agent` based on the prompt) |
|
||||
| `--description` | What the agent should do |
|
||||
| `--mode` | Agent mode: `all`, `primary`, or `subagent` |
|
||||
|
||||
Reference in New Issue
Block a user