|
| 1 | +import type { Command } from "bailian-cli-core"; |
| 2 | +import { |
| 3 | + authLogin, |
| 4 | + authStatus, |
| 5 | + authLogout, |
| 6 | + textChat, |
| 7 | + textOmni, |
| 8 | + imageGenerate, |
| 9 | + imageEdit, |
| 10 | + videoGenerate, |
| 11 | + videoEdit, |
| 12 | + videoRef, |
| 13 | + videoTaskGet, |
| 14 | + videoDownload, |
| 15 | + visionDescribe, |
| 16 | + configShow, |
| 17 | + configSet, |
| 18 | + update, |
| 19 | + appCall, |
| 20 | + appList, |
| 21 | + memoryAdd, |
| 22 | + memorySearch, |
| 23 | + memoryList, |
| 24 | + memoryUpdate, |
| 25 | + memoryDelete, |
| 26 | + memoryProfileCreate, |
| 27 | + memoryProfileGet, |
| 28 | + knowledgeRetrieve, |
| 29 | + mcpCall, |
| 30 | + mcpList, |
| 31 | + mcpTools, |
| 32 | + searchWeb, |
| 33 | + speechSynthesize, |
| 34 | + speechRecognize, |
| 35 | + fileUpload, |
| 36 | + consoleCall, |
| 37 | + usageFree, |
| 38 | + usageFreetier, |
| 39 | + usageStats, |
| 40 | + pipelineRun, |
| 41 | + pipelineValidate, |
| 42 | + advisorRecommend, |
| 43 | + workspaceList, |
| 44 | + quotaList, |
| 45 | + quotaRequest, |
| 46 | + quotaHistory, |
| 47 | + quotaCheck, |
| 48 | +} from "bailian-cli-commands"; |
| 49 | + |
| 50 | +// Full bailian-cli product: every command, exposed under the `bl` binary. |
| 51 | +// The command paths below are this product's decision — the command library |
| 52 | +// ships no presets, so the map is spelled out here. Kept in its own module |
| 53 | +// (no side effects) so tools like generate-reference.ts can import it without |
| 54 | +// starting the CLI. |
| 55 | +export const commands: Record<string, Command> = { |
| 56 | + "auth login": authLogin, |
| 57 | + "auth status": authStatus, |
| 58 | + "auth logout": authLogout, |
| 59 | + "text chat": textChat, |
| 60 | + omni: textOmni, |
| 61 | + "image generate": imageGenerate, |
| 62 | + "image edit": imageEdit, |
| 63 | + "video generate": videoGenerate, |
| 64 | + "video edit": videoEdit, |
| 65 | + "video ref": videoRef, |
| 66 | + "video task get": videoTaskGet, |
| 67 | + "video download": videoDownload, |
| 68 | + "vision describe": visionDescribe, |
| 69 | + "config show": configShow, |
| 70 | + "config set": configSet, |
| 71 | + update, |
| 72 | + "app call": appCall, |
| 73 | + "app list": appList, |
| 74 | + "memory add": memoryAdd, |
| 75 | + "memory search": memorySearch, |
| 76 | + "memory list": memoryList, |
| 77 | + "memory update": memoryUpdate, |
| 78 | + "memory delete": memoryDelete, |
| 79 | + "memory profile create": memoryProfileCreate, |
| 80 | + "memory profile get": memoryProfileGet, |
| 81 | + "knowledge retrieve": knowledgeRetrieve, |
| 82 | + "mcp call": mcpCall, |
| 83 | + "mcp list": mcpList, |
| 84 | + "mcp tools": mcpTools, |
| 85 | + "search web": searchWeb, |
| 86 | + "speech synthesize": speechSynthesize, |
| 87 | + "speech recognize": speechRecognize, |
| 88 | + "file upload": fileUpload, |
| 89 | + "console call": consoleCall, |
| 90 | + "usage free": usageFree, |
| 91 | + "usage freetier": usageFreetier, |
| 92 | + "usage stats": usageStats, |
| 93 | + "pipeline run": pipelineRun, |
| 94 | + "pipeline validate": pipelineValidate, |
| 95 | + "advisor recommend": advisorRecommend, |
| 96 | + "workspace list": workspaceList, |
| 97 | + "quota list": quotaList, |
| 98 | + "quota request": quotaRequest, |
| 99 | + "quota history": quotaHistory, |
| 100 | + "quota check": quotaCheck, |
| 101 | +}; |
0 commit comments