mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
186 lines
4.7 KiB
TypeScript
186 lines
4.7 KiB
TypeScript
import type { AnyCommand } from "bailian-cli-core";
|
|
import {
|
|
authLogin,
|
|
authStatus,
|
|
authLogout,
|
|
textChat,
|
|
textOmni,
|
|
imageGenerate,
|
|
imageEdit,
|
|
videoGenerate,
|
|
videoEdit,
|
|
videoRef,
|
|
videoTaskGet,
|
|
videoDownload,
|
|
visionDescribe,
|
|
configShow,
|
|
configSet,
|
|
update,
|
|
appCall,
|
|
appList,
|
|
memoryAdd,
|
|
memorySearch,
|
|
memoryList,
|
|
memoryUpdate,
|
|
memoryDelete,
|
|
memoryProfileCreate,
|
|
memoryProfileGet,
|
|
knowledgeRetrieve,
|
|
knowledgeSearch,
|
|
knowledgeChat,
|
|
mcpCall,
|
|
mcpList,
|
|
mcpTools,
|
|
searchWeb,
|
|
speechSynthesize,
|
|
speechRecognize,
|
|
fileUpload,
|
|
consoleCall,
|
|
usageFree,
|
|
usageFreetier,
|
|
usageStats,
|
|
usageSummary,
|
|
pipelineRun,
|
|
pipelineValidate,
|
|
advisorRecommend,
|
|
modelList,
|
|
workspaceList,
|
|
quotaList,
|
|
quotaRequest,
|
|
quotaHistory,
|
|
quotaCheck,
|
|
datasetUpload,
|
|
datasetList,
|
|
datasetGet,
|
|
datasetDelete,
|
|
datasetValidate,
|
|
finetuneTextCreate,
|
|
finetuneAudioCreate,
|
|
finetuneImageCreate,
|
|
finetuneList,
|
|
finetuneGet,
|
|
finetuneCancel,
|
|
finetuneDelete,
|
|
finetuneLogs,
|
|
finetuneCheckpoints,
|
|
finetuneExport,
|
|
finetuneWatch,
|
|
finetuneCapability,
|
|
deployTextCreate,
|
|
deployAudioCreate,
|
|
deployImageCreate,
|
|
deployList,
|
|
deployGet,
|
|
deployModels,
|
|
deployScale,
|
|
deployUpdate,
|
|
deployDelete,
|
|
tokenPlanListSeats,
|
|
tokenPlanCreateKey,
|
|
tokenPlanAssignSeats,
|
|
tokenPlanAddMember,
|
|
pluginInstall,
|
|
pluginLink,
|
|
pluginList,
|
|
pluginRemove,
|
|
skillAdd,
|
|
skillUpdate,
|
|
skillRemove,
|
|
skillList,
|
|
} from "bailian-cli-commands";
|
|
|
|
// Full bailian-cli product: every command, exposed under the `bl` binary.
|
|
// The command paths below are this product's decision — the command library
|
|
// ships no presets, so the map is spelled out here. Kept in its own module
|
|
// (no side effects) so tools like generate-reference.ts can import it without
|
|
// starting the CLI.
|
|
export const commands: Record<string, AnyCommand> = {
|
|
"auth login": authLogin,
|
|
"auth status": authStatus,
|
|
"auth logout": authLogout,
|
|
"text chat": textChat,
|
|
omni: textOmni,
|
|
"image generate": imageGenerate,
|
|
"image edit": imageEdit,
|
|
"video generate": videoGenerate,
|
|
"video edit": videoEdit,
|
|
"video ref": videoRef,
|
|
"video task get": videoTaskGet,
|
|
"video download": videoDownload,
|
|
"vision describe": visionDescribe,
|
|
"config show": configShow,
|
|
"config set": configSet,
|
|
update,
|
|
"app call": appCall,
|
|
"app list": appList,
|
|
"memory add": memoryAdd,
|
|
"memory search": memorySearch,
|
|
"memory list": memoryList,
|
|
"memory update": memoryUpdate,
|
|
"memory delete": memoryDelete,
|
|
"memory profile create": memoryProfileCreate,
|
|
"memory profile get": memoryProfileGet,
|
|
"knowledge retrieve": knowledgeRetrieve,
|
|
"knowledge search": knowledgeSearch,
|
|
"knowledge chat": knowledgeChat,
|
|
"mcp call": mcpCall,
|
|
"mcp list": mcpList,
|
|
"mcp tools": mcpTools,
|
|
"search web": searchWeb,
|
|
"speech synthesize": speechSynthesize,
|
|
"speech recognize": speechRecognize,
|
|
"file upload": fileUpload,
|
|
"console call": consoleCall,
|
|
"usage free": usageFree,
|
|
"usage freetier": usageFreetier,
|
|
"usage stats": usageStats,
|
|
"usage summary": usageSummary,
|
|
"pipeline run": pipelineRun,
|
|
"pipeline validate": pipelineValidate,
|
|
"advisor recommend": advisorRecommend,
|
|
"model list": modelList,
|
|
"workspace list": workspaceList,
|
|
"quota list": quotaList,
|
|
"quota request": quotaRequest,
|
|
"quota history": quotaHistory,
|
|
"quota check": quotaCheck,
|
|
"dataset upload": datasetUpload,
|
|
"dataset list": datasetList,
|
|
"dataset get": datasetGet,
|
|
"dataset delete": datasetDelete,
|
|
"dataset validate": datasetValidate,
|
|
"finetune text create": finetuneTextCreate,
|
|
"finetune audio create": finetuneAudioCreate,
|
|
"finetune image create": finetuneImageCreate,
|
|
"finetune list": finetuneList,
|
|
"finetune get": finetuneGet,
|
|
"finetune cancel": finetuneCancel,
|
|
"finetune delete": finetuneDelete,
|
|
"finetune logs": finetuneLogs,
|
|
"finetune checkpoints": finetuneCheckpoints,
|
|
"finetune export": finetuneExport,
|
|
"finetune watch": finetuneWatch,
|
|
"finetune capability": finetuneCapability,
|
|
"deploy text create": deployTextCreate,
|
|
"deploy audio create": deployAudioCreate,
|
|
"deploy image create": deployImageCreate,
|
|
"deploy list": deployList,
|
|
"deploy get": deployGet,
|
|
"deploy models": deployModels,
|
|
"deploy scale": deployScale,
|
|
"deploy update": deployUpdate,
|
|
"deploy delete": deployDelete,
|
|
"token-plan list-seats": tokenPlanListSeats,
|
|
"token-plan create-key": tokenPlanCreateKey,
|
|
"token-plan assign-seats": tokenPlanAssignSeats,
|
|
"token-plan add-member": tokenPlanAddMember,
|
|
"plugin install": pluginInstall,
|
|
"plugin link": pluginLink,
|
|
"plugin list": pluginList,
|
|
"plugin remove": pluginRemove,
|
|
"skill add": skillAdd,
|
|
"skill update": skillUpdate,
|
|
"skill remove": skillRemove,
|
|
"skill list": skillList,
|
|
};
|