11 Commits

Author SHA1 Message Date
de65426d64 feat(server): enhance frontmatter parsing for skill descriptions
Some checks failed
Deploy skills-market-server / deploy (push) Has been cancelled
- Integrated a new utility function `parseFrontmatterScalarKey` to streamline the extraction of the description from skill files.
- Improved the logic for handling frontmatter, ensuring more robust parsing and trimming of description values.
2026-04-13 13:55:36 +08:00
33a59df4ae feat: update mode tags and enhance chat session management
Some checks failed
Deploy skills-market-server / deploy (push) Has been cancelled
- Added 'like' mode tag to various components including server, admin interface, and authentication routes for improved user interaction.
- Introduced new functions in chat.js for sanitizing agent state and tool calls, enhancing data integrity and management.
- Updated .gitignore to include new directories for better file management.
2026-04-02 15:39:13 +08:00
48e999149c feat(server): enhance user permissions and access control
Some checks failed
Deploy skills-market-server / deploy (push) Has been cancelled
- Introduced root admin checks in various functions to streamline permission handling for users.
- Updated skill and agent management routes to simplify access control by removing redundant role checks.
- Added favicon links to HTML files for improved branding in the admin and updates sections.
2026-04-01 12:01:56 +08:00
f86cace07d feat(server): enhance skill management and error handling
Some checks failed
Deploy skills-market-server / deploy (push) Has been cancelled
- Added middleware to handle invalid JSON body errors, returning a 400 status with a descriptive message.
- Introduced functions to normalize and filter mode tags for user permissions, improving access control for skills based on user roles.
- Updated API endpoints to incorporate mode tag filtering, ensuring users can only access skills they are permitted to view.
- Implemented a new endpoint for updating skill tags, with permission checks for non-admin users.
- Enhanced the frontend with updated styles and layout adjustments for better user experience.
2026-03-30 16:10:31 +08:00
89eaad88ec refactor(server): simplify user ID comparison for locks
- Introduced a new utility function `sameUserId` to streamline user ID comparisons across multiple API endpoints.
- Updated lock validation logic in the skill and agent management routes to utilize the new function, enhancing code readability and maintainability.
2026-03-27 15:31:03 +08:00
abcd0a53d3 feat(server): enhance skill and agent import functionality
- Added support for clearing version history during skill and agent imports with the `--clear-versions` flag.
- Updated import scripts to handle versioning more effectively, ensuring only the latest version is retained when clearing history.
- Introduced new checks for user permissions in various API endpoints to restrict access based on roles.
- Normalized file paths during merges to ensure consistency across different operating systems.
- Updated `.gitignore` to exclude the `scripts/` directory.
2026-03-27 11:08:56 +08:00
e4c1ff7900 feat(admin): 添加管理员面板和权限管理功能
Some checks failed
Deploy skills-market-server / deploy (push) Has been cancelled
新增管理员面板的静态文件支持,提供用户列表、角色切换和权限配置功能。更新了环境变量示例以包含管理员邮箱,并在auth.js中实现了管理员登录和权限审计日志功能。更新README文档以说明管理员面板的使用和相关接口。
2026-03-24 16:57:33 +08:00
e9e0cf03c5 feat(chat): 添加聊天会话和消息管理功能
新增聊天会话和消息的API接口,支持会话的创建、更新、删除及消息的分页获取和追加。更新README文档以包含新的API信息,并在server.js中注册聊天路由和索引。引入新的脚本用于导入技能和代理资源到MongoDB。
2026-03-24 10:29:04 +08:00
348a0af1a6 feat(server): 添加静态文件服务支持更新目录
添加对更新目录的静态文件服务支持,通过express.static中间件提供'/updates'路由访问
2026-03-01 16:04:57 +08:00
e86959b847 refactor(server): 移除测试用的技能更新端点并清理代码格式
删除临时测试端点/api/test/update-skill/:name,该端点仅用于测试环境不再需要
同时清理了多个文件中的多余空行和代码格式
2026-03-01 12:09:47 +08:00
a8a5f6e866 Initial commit 2026-02-28 17:57:28 +08:00