mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 20:03:05 +00:00
fix(coding-agent): rename SlashCommandSource "template" to "prompt" for consistency
BREAKING CHANGE: RPC get_commands response and SlashCommandSource type now use "prompt" instead of "template" to match the rest of the codebase.
This commit is contained in:
parent
8292d7ce5d
commit
e54dff7efb
8 changed files with 15 additions and 11 deletions
|
|
@ -543,7 +543,7 @@ export async function runRpcMode(session: AgentSession): Promise<never> {
|
|||
commands.push({
|
||||
name: template.name,
|
||||
description: template.description,
|
||||
source: "template",
|
||||
source: "prompt",
|
||||
location: template.source as RpcSlashCommand["location"],
|
||||
path: template.filePath,
|
||||
});
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@ export interface RpcSlashCommand {
|
|||
/** Human-readable description */
|
||||
description?: string;
|
||||
/** What kind of command this is */
|
||||
source: "extension" | "template" | "skill";
|
||||
source: "extension" | "prompt" | "skill";
|
||||
/** Where the command was loaded from (undefined for extensions) */
|
||||
location?: "user" | "project" | "path";
|
||||
/** File path to the command source */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue