odant-work 1.0.75 → 1.0.76

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "odant-work",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "ODANT-WORK — платформа цифровой организации (встроенная система учёта, документооборот, управление процессами и приватный мультимодальный ИИ)",
5
5
  "type": "module",
6
6
  "main": "sources/work.js",
@@ -274,6 +274,8 @@ export class $folder extends $item {
274
274
  || method.startsWith('license_')
275
275
  || method.startsWith('messenger_')
276
276
  || method.startsWith('distro_')
277
+ || method.startsWith('agent_')
278
+ || method === 'security_update'
277
279
  || method === 'export_distro'
278
280
  ))
279
281
  || (method === 'logs' && params.mode && params.mode !== 'folder' && params.mode !== 'files');
@@ -655,7 +655,10 @@ export async function listNodeStructures(storage, params = {}) {
655
655
  }
656
656
  const items = await Promise.resolve(node.items).catch(() => []) || [];
657
657
  for (const ch of items) {
658
- if (ch && ch.id?.[0] !== '$' && ['$domain', '$base', '$project', '$structure'].includes(ch.type))
658
+ if (!ch || ch.id?.[0] === '$')
659
+ continue;
660
+ await ch.init?.catch?.(() => {});
661
+ if (['$domain', '$base', '$project', '$structure'].includes(ch.type))
659
662
  await visit(ch, depth + 1);
660
663
  }
661
664
  };
@@ -46,6 +46,8 @@ export const MEMBERS = Object.freeze({
46
46
  mail_draft_save: L.WRITE, mail_send: L.WRITE, mail_state: L.WRITE, mail_refresh: L.WRITE,
47
47
  calendar_list: L.READ, calendar_save: L.WRITE,
48
48
  agent_rules_list: L.READ, agent_rule_save: L.ADMIN, agent_schedule_save: L.ADMIN, agent_proactivity_save: L.ADMIN,
49
+ agent_system_get: L.READ, agent_system_save: L.ADMIN, agent_available_classes: L.READ, agent_structures_list: L.READ, agent_tasks_list: L.READ,
50
+ security_update: L.ADMIN,
49
51
  roles: L.READ, members: L.READ, is_data_type: L.READ, reset: L.READ,
50
52
  work_zone: L.READ, places: L.READ,
51
53
  data_access: L.READ, link_tree: L.READ, search_tree: L.USER,