🎯 PromptX v0.0.1 完整实现 - 五大锦囊命令、AI记忆系统、角色系统、PATEOAS状态机、DPML协议全部完成

This commit is contained in:
sean
2025-05-31 16:48:21 +08:00
parent be285f55b8
commit 323c4e569c
50 changed files with 4308 additions and 1947 deletions

View File

@ -0,0 +1,43 @@
/**
* 锦囊框架 (PATEOAS Framework)
* Prompt as the Engine of Application State
*
* 这是一个革命性的AI-First CLI框架通过锦囊串联实现AI的状态管理。
* 每个锦囊都是独立的专家知识单元通过PATEOAS导航实现状态转换。
*/
const PouchCLI = require('./PouchCLI');
const PouchRegistry = require('./PouchRegistry');
const PouchStateMachine = require('./state/PouchStateMachine');
const BasePouchCommand = require('./BasePouchCommand');
const commands = require('./commands');
// 创建全局CLI实例
const cli = new PouchCLI();
module.exports = {
// 主要导出
PouchCLI,
cli,
// 框架组件
PouchRegistry,
PouchStateMachine,
BasePouchCommand,
// 内置命令
commands,
// 便捷方法
execute: async (commandName, args) => {
return await cli.execute(commandName, args);
},
help: () => {
return cli.getHelp();
},
status: () => {
return cli.getStatus();
}
};