Files
PromptX/package.json
sean b18983bdac refactor: 系统性移除DACP架构 - 简化框架专注@tool协议
🗑️ 核心清理
- 完全移除DACP服务架构和HTTP模式
- 删除DACPCommand、DACPConfigManager等核心组件
- 清理所有DACP相关文件、测试和文档
- 从CLI移除dacp命令,精简为6大核心锦囊

📁 删除内容
Core:
- src/dacp/ - 整个DACP服务目录
- src/lib/core/pouch/commands/DACPCommand.js
- src/lib/utils/DACPConfigManager.js

Tests:
- src/tests/commands/DACPCommand.unit.test.js
- src/tests/integration/dacp-integration.test.js
- src/tests/e2e/dacp-*-e2e.test.js
- src/tests/unit/DACPConfigManager.unit.test.js

Scripts & Docs:
- scripts/test-*dacp*.js
- docs/dacp-*.md
- prompt/core/dacp-*.execution.md

🔧 代码清理
CLI:
- src/bin/promptx.js: 移除dacp命令和--with-dacp选项
- 帮助信息更新:7大命令→6大核心命令

Core:
- src/lib/core/pouch/PouchCLI.js: 移除dacp命令注册
- src/lib/core/pouch/commands/index.js: 清理DACPCommand引用

MCP:
- src/lib/mcp/toolDefinitions.js: 移除promptx_dacp工具定义
- src/lib/commands/MCPServerCommand.js: 清理所有DACP方法和引用
- src/lib/commands/MCPStreamableHttpCommand.js: 移除DACP参数映射

Registry:
- src/package.registry.json: 自动更新,移除2个DACP execution资源
- package.json: 移除dacp相关npm脚本

📊 架构简化结果
- 资源总数:63个 → 61个 (移除2个DACP execution)
- CLI命令:7个 → 6大核心锦囊
- 代码复杂度显著降低,专注核心功能

 验证通过
- @tool://calculator 计算功能正常: 6 × 7 = 42
- @tool://send-email 邮件工具正常
- MCP Server启动正常
- 所有锦囊命令工作正常

🎯 新架构重点
1. 角色系统 - AI专业能力激活
2. 记忆系统 - 知识学习和回忆
3. @tool协议 - JavaScript工具执行
4. MCP集成 - AI应用连接

💡 技术收益
- 移除HTTP服务复杂度
- 统一@tool协议标准
- 简化维护和扩展
- 提升性能和稳定性

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-28 14:26:25 +08:00

147 lines
4.6 KiB
JSON

{
"name": "dpml-prompt",
"version": "0.0.2",
"description": "DPML-powered AI prompt framework - Revolutionary AI-First CLI system based on Deepractice Prompt Markup Language. Build sophisticated AI agents with structured prompts, memory systems, and execution frameworks.",
"main": "src/lib/index.js",
"bin": {
"dpml-prompt": "src/bin/promptx.js"
},
"scripts": {
"start": "PROMPTX_ENV=development node src/bin/promptx.js",
"test": "jest",
"test:unit": "jest --selectProjects unit",
"test:integration": "jest --selectProjects integration",
"test:e2e": "jest --selectProjects e2e",
"test:watch": "jest --watch",
"test:watchUnit": "jest --watch --selectProjects unit",
"test:watchIntegration": "jest --watch --selectProjects integration",
"test:coverage": "jest --coverage",
"test:coverageUnit": "jest --coverage --selectProjects unit",
"test:coverageIntegration": "jest --coverage --selectProjects integration",
"test:coverageE2e": "jest --coverage --selectProjects e2e",
"test:ci": "jest --ci --coverage --watchAll=false --passWithNoTests || echo 'Tests completed with some issues'",
"test:debug": "node --inspect-brk node_modules/.bin/jest --runInBand",
"lint": "eslint src/ --no-error-on-unmatched-pattern || true",
"lint:fix": "eslint src/ --fix --no-error-on-unmatched-pattern || true",
"format": "echo 'Format skipped - no formatting restrictions'",
"format:check": "echo 'Format check skipped - no formatting restrictions'",
"validate": "npm run test:ci",
"precommit": "echo 'Pre-commit hooks disabled'",
"changeset": "changeset",
"changeset:version": "changeset version",
"changeset:publish": "changeset publish",
"changeset:status": "changeset status",
"release": "pnpm changeset publish",
"release:snapshot": "pnpm changeset version --snapshot snapshot && pnpm changeset publish --tag snapshot",
"release:alpha": "pnpm changeset version --snapshot alpha && pnpm changeset publish --tag alpha",
"release:beta": "pnpm changeset version --snapshot beta && pnpm changeset publish --tag beta",
"version:patch": "pnpm changeset add --type patch",
"version:minor": "pnpm changeset add --type minor",
"version:major": "pnpm changeset add --type major"
},
"files": [
"src/",
"prompt/",
"package.json",
"README.md",
"LICENSE",
"CHANGELOG.md"
],
"dependencies": {
"@modelcontextprotocol/sdk": "^1.12.1",
"@reaxi/node-detect-runtime": "^0.1.0",
"body-parser": "^1.20.2",
"boxen": "^5.1.2",
"chalk": "^4.1.2",
"commander": "^11.0.0",
"cors": "^2.8.5",
"env-paths": "2.2.1",
"express": "^5.1.0",
"find-monorepo-root": "^1.0.3",
"find-pkg-dir": "^2.0.0",
"find-up": "^7.0.0",
"fs-extra": "^11.1.0",
"glob": "^10.3.0",
"inquirer": "^8.2.4",
"joi": "^17.11.0",
"nodemailer": "^7.0.3",
"ora": "^5.4.1",
"pkg-dir": "^8.0.0",
"resolve": "^1.22.10",
"resolve-package": "^1.0.1",
"semver": "^7.5.0",
"yaml": "^2.3.0",
"zod": "^3.25.62",
"tree-kill": "^1.2.2"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.1",
"@changesets/cli": "^2.29.4",
"@types/jest": "^29.5.0",
"eslint": "^8.42.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-jest": "^27.2.0",
"husky": "^8.0.0",
"jest": "^29.5.0",
"jest-environment-node": "^29.5.0",
"lint-staged": "^13.2.0",
"prettier": "^2.8.0",
"supertest": "^6.3.0",
"tmp": "^0.2.1"
},
"peerDependencies": {
"node": ">=14.0.0"
},
"engines": {
"node": ">=14.0.0",
"npm": ">=6.0.0"
},
"keywords": [
"dpml",
"deepractice",
"ai",
"prompt",
"prompt-engineering",
"markup-language",
"ai-first",
"cli",
"chatgpt",
"claude",
"conversation",
"agent",
"framework",
"role-playing",
"memory-system",
"automation"
],
"author": {
"name": "Deepractice",
"email": "sean@deepracticex.com",
"url": "https://deepractice.ai"
},
"license": "MIT",
"homepage": "https://github.com/Deepractice/PromptX#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/Deepractice/PromptX.git"
},
"bugs": {
"url": "https://github.com/Deepractice/PromptX/issues"
},
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
"lint-staged": {
"*.{js,json,md}": [
"echo 'Lint-staged disabled'"
]
},
"husky": {
"hooks": {
"pre-commit": "echo 'Pre-commit hooks disabled'",
"pre-push": "echo 'Pre-push hooks disabled'"
}
}
}