ShtukbaseStandard
файл пакета→ .shtukbase/packages/lenses/kit/examples/architecture.lens.md

kit/examples/architecture.lens.md

44 строки, 2.8 КБ.

  1. ---
  2. type: Lens
  3. title: Архитектура агентов
  4. icon: "🏗️"
  5. description: "Кто ставит задачи агентам, через какие каналы они отвечают, откуда берут данные, какие нужны доступы и где всё работает"
  6. template: canvas
  7. layout:
  8. columns: "190px 230px 270px 240px 240px 200px"
  9. stacks:
  10. - [people]
  11. - [channels, envs]
  12. - [agents]
  13. - [automations]
  14. - [integrations, access]
  15. - [parties]
  16. regions:
  17. - {id: people, title: Люди, hint: роли в продукте, color: purple, from: /product/roles, card: {sub: false, chips: []}}
  18. - {id: channels, title: Каналы, hint: где агент отвечает, color: brown, from: /product/surfaces, where: {kind: channel}, card: {chips: []}}
  19. - {id: agents, title: Агенты, color: blue, from: /product/agents, group: kind, card: {chips: [status]}}
  20. - {id: automations, title: Автоматизации, hint: регулярные задачи, color: orange, from: /product/automations, card: {sub: when, chips: []}}
  21. - {id: integrations, title: Интеграции, hint: откуда данные, color: teal, from: /product/surfaces, where: {kind: integration}, card: {chips: []}}
  22. - {id: access, title: Доступы, hint: что даёт заказчик, color: gray, from: /deal/access, card: {sub: false, chips: [status], compact: false}}
  23. - {id: envs, title: Среды, hint: где работает, color: green, from: /ops/environments, card: {sub: host, chips: [kind, status]}}
  24. - {id: parties, title: Внешние стороны, color: red, from: /business/parties, linked: true, card: {sub: false, chips: [kind]}}
  25. edges:
  26. - {field: askedBy, from: agents, to: people, reverse: true, label: ставит задачи, color: purple}
  27. - {field: connections, from: agents, to: channels, label: отвечает через, color: brown}
  28. - {field: automations, from: agents, to: automations, label: ведёт, color: orange}
  29. - {field: connections, from: agents, to: integrations, label: берёт данные из, color: teal}
  30. - {field: access, from: agents, to: access, label: нужен доступ, color: gray, dash: true}
  31. - {field: notifies, from: automations, to: people, label: сообщает, color: pink, dash: true}
  32. - {field: provider, to: parties, label: предоставляет, color: red, reverse: true}
  33. - {field: hostowner, from: envs, to: parties, label: хостинг у, color: green, dash: true}
  34. ---
  35. Собрано из записей базы: [агенты](/product/agents.md), [поверхности](/product/surfaces.md)
  36. (каналы и интеграции), [автоматизации](/product/automations.md), [доступы](/deal/access.md),
  37. [среды](/ops/environments.md) и [стороны](/business/parties.md).
  38. Стрелки — это поля-связи записей: `askedBy`, `connections`, `automations`, `access` у агента,
  39. `notifies` у автоматизации, `provider` у поверхности, `hostowner` у среды.
  40. Чтобы поправить картинку, правьте сами записи — линза пересоберётся.
  41. Наведите на карточку — останутся только её связи. Нажмите — откроется запись.