|
@@ -84,7 +84,7 @@ const AgentCreateCommand = effectCmd({
|
|
|
// Determine scope/path
|
|
// Determine scope/path
|
|
|
let targetPath: string
|
|
let targetPath: string
|
|
|
if (cliPath) {
|
|
if (cliPath) {
|
|
|
- targetPath = path.join(cliPath, "agent")
|
|
|
|
|
|
|
+ targetPath = path.join(cliPath, "agents")
|
|
|
} else {
|
|
} else {
|
|
|
let scope: "global" | "project" = "global"
|
|
let scope: "global" | "project" = "global"
|
|
|
if (project.vcs === "git") {
|
|
if (project.vcs === "git") {
|
|
@@ -106,7 +106,7 @@ const AgentCreateCommand = effectCmd({
|
|
|
if (prompts.isCancel(scopeResult)) throw new UI.CancelledError()
|
|
if (prompts.isCancel(scopeResult)) throw new UI.CancelledError()
|
|
|
scope = scopeResult
|
|
scope = scopeResult
|
|
|
}
|
|
}
|
|
|
- targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agent")
|
|
|
|
|
|
|
+ targetPath = path.join(scope === "global" ? Global.Path.config : path.join(ctx.worktree, ".opencode"), "agents")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Get description
|
|
// Get description
|