fix: 统一命令格式为 npx dpml-prompt@snapshot

This commit is contained in:
sean
2025-05-31 22:28:09 +08:00
parent 1e57784a02
commit fa4173a120
7 changed files with 56 additions and 117 deletions

View File

@ -22,7 +22,7 @@ export const buildCommand = {
action: (roleId) => `${COMMAND_PREFIX} action ${roleId}`,
learn: (resource) => `${COMMAND_PREFIX} learn ${resource}`,
recall: (query = '') => `${COMMAND_PREFIX} recall${query ? ' ' + query : ''}`,
remember: (key, content = '<content>') => `${COMMAND_PREFIX} remember ${key}${content !== '<content>' ? ' "' + content + '"' : ' <content>'}`
remember: (content = '<content>') => `${COMMAND_PREFIX} remember${content !== '<content>' ? ' "' + content + '"' : ' <content>'}`
}
// 系统路径配置