feat: 初始化项目结构与核心文件
- 添加项目配置文件(tsconfig.json、bunfig.toml、.gitignore、.env.example) - 创建文档架构图(00runtime.png 至 08-state-data-flow.png) - 添加核心工具常量定义(FileEditTool、AgentTool、BashTool 等) - 实现基础命令框架(help、exit、config、model 等) - 添加 Ink TUI 组件库和布局引擎 - 包含内存管理、沙箱、shell 工具等基础工具类 - 设置预加载脚本和版本信息
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import type { Command } from '../../commands.js'
|
||||
|
||||
const stickers = {
|
||||
type: 'local',
|
||||
name: 'stickers',
|
||||
description: 'Order Claude Code stickers',
|
||||
supportsNonInteractive: false,
|
||||
load: () => import('./stickers.js'),
|
||||
} satisfies Command
|
||||
|
||||
export default stickers
|
||||
@@ -0,0 +1,16 @@
|
||||
import type { LocalCommandResult } from '../../types/command.js'
|
||||
import { openBrowser } from '../../utils/browser.js'
|
||||
|
||||
export async function call(): Promise<LocalCommandResult> {
|
||||
const url = 'https://www.stickermule.com/claudecode'
|
||||
const success = await openBrowser(url)
|
||||
|
||||
if (success) {
|
||||
return { type: 'text', value: 'Opening sticker page in browser…' }
|
||||
} else {
|
||||
return {
|
||||
type: 'text',
|
||||
value: `Failed to open browser. Visit: ${url}`,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user