* 1. 修复 src/commands/fork/index.ts — 将空 stub 改为有效的 Command 定义 2. 新增 src/commands/fork/fork.tsx — 完整实现 /fork 命令,复用了 AgentTool 的 fork 子 agent 逻辑 * Update src/commands/fork/fork.tsx Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix --------- Co-authored-by: HitMargin <hitmargin@qq.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
12 lines
270 B
TypeScript
12 lines
270 B
TypeScript
import type { Command } from '../../commands.js'
|
|
|
|
const fork = {
|
|
type: 'local-jsx',
|
|
name: 'fork',
|
|
description: 'Fork the current session into a new sub-agent',
|
|
argumentHint: '<prompt>',
|
|
load: () => import('./fork.js'),
|
|
} satisfies Command
|
|
|
|
export default fork
|