@xuda.io/xuda-studio-checker 1.0.1 → 1.0.3

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/index.mjs +11 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -170,6 +170,10 @@ export const check = function (doc) {
170
170
  ret = [...ret, ...check_route(doc)];
171
171
  break;
172
172
 
173
+ case 'ai_agent':
174
+ ret = [...ret, ...check_ai_agent(doc)];
175
+ break;
176
+
173
177
  case 'folder':
174
178
  // No additional validation for folders
175
179
  break;
@@ -322,7 +326,7 @@ export const check_structure = function (doc, critical_error) {
322
326
  if (!doc.studio_meta.parentId) {
323
327
  addValidationError('CHK_MSG_OBJ_GEN_114', 'missing studio_meta.parentId value');
324
328
  } else {
325
- let menuType = doc?.properties?.menuType === 'globals' ? 'globals' : doc?.properties?.menuType === 'table' ? 'database' : doc?.properties?.menuType === 'route' ? 'routes' : 'programs';
329
+ let menuType = doc?.properties?.menuType === 'globals' ? 'globals' : doc?.properties?.menuType === 'table' ? 'database' : doc?.properties?.menuType === 'route' ? 'routes' : doc?.properties?.menuType === 'ai_agent' ? 'ai_agents' : 'programs';
326
330
  if (doc.studio_meta.parentId !== menuType && !progs_obj[doc.studio_meta.parentId]) {
327
331
  addValidationError('CHK_MSG_OBJ_GEN_116', 'invalid studio_meta.parentId value');
328
332
  }
@@ -1200,6 +1204,12 @@ const check_route = function (doc) {
1200
1204
 
1201
1205
  return ret;
1202
1206
  };
1207
+
1208
+ const check_ai_agent = function (doc) {
1209
+ var ret = [];
1210
+
1211
+ return ret;
1212
+ };
1203
1213
  // const call_project_api = function (doc) {
1204
1214
  // var ret = [];
1205
1215
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-studio-checker",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "main": "index.mjs",
5
5
  "type": "module",
6
6
  "description": "Auto-generated build for xuda-studio-checker.mjs",