chore: generate

This commit is contained in:
opencode-agent[bot]
2026-04-27 05:18:33 +00:00
parent 0efc6163f1
commit 17701628bd
3 changed files with 39 additions and 26 deletions
+14 -1
View File
@@ -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",
+1 -1
View File
@@ -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` |
+1 -1
View File
@@ -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` |