15 lines
445 B
TypeScript
15 lines
445 B
TypeScript
import { feature } from 'bun:bundle'
|
|
import type { Command } from '../../commands.js'
|
|
|
|
const branch = {
|
|
type: 'local-jsx',
|
|
name: 'branch',
|
|
// 'fork' alias only when /fork doesn't exist as its own command
|
|
aliases: feature('FORK_SUBAGENT') ? [] : ['fork'],
|
|
description: 'Create a branch of the current conversation at this point',
|
|
argumentHint: '[name]',
|
|
load: () => import('./branch.js'),
|
|
} satisfies Command
|
|
|
|
export default branch
|