exflower-license-server 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/routes.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exflower-license-server",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "ExFlower License Server - 在线授权验证服务",
5
5
  "main": "index.js",
6
6
  "bin": {
package/routes.js CHANGED
@@ -332,8 +332,8 @@ function setupRoutes(app) {
332
332
  if (!type || !name || !content_json) {
333
333
  return res.status(400).json({ success: false, message: 'type, name, content_json are required' });
334
334
  }
335
- if (!['agent', 'crew', 'excard', 'workflow'].includes(type)) {
336
- return res.status(400).json({ success: false, message: 'type must be agent, crew, excard, or workflow' });
335
+ if (!['agent', 'crew', 'excard', 'workflow', 'doc'].includes(type)) {
336
+ return res.status(400).json({ success: false, message: 'type must be agent, crew, excard, workflow, or doc' });
337
337
  }
338
338
 
339
339
  // If company_id is provided, verify it exists