файл пакета→ .shtukbase/packages/lenses/kit/examples/architecture.lens.md
kit/examples/architecture.lens.md
44 строки, 2.8 КБ.
- ---
- type: Lens
- title: Архитектура агентов
- icon: "🏗️"
- description: "Кто ставит задачи агентам, через какие каналы они отвечают, откуда берут данные, какие нужны доступы и где всё работает"
- template: canvas
- layout:
- columns: "190px 230px 270px 240px 240px 200px"
- stacks:
- - [people]
- - [channels, envs]
- - [agents]
- - [automations]
- - [integrations, access]
- - [parties]
- regions:
- - {id: people, title: Люди, hint: роли в продукте, color: purple, from: /product/roles, card: {sub: false, chips: []}}
- - {id: channels, title: Каналы, hint: где агент отвечает, color: brown, from: /product/surfaces, where: {kind: channel}, card: {chips: []}}
- - {id: agents, title: Агенты, color: blue, from: /product/agents, group: kind, card: {chips: [status]}}
- - {id: automations, title: Автоматизации, hint: регулярные задачи, color: orange, from: /product/automations, card: {sub: when, chips: []}}
- - {id: integrations, title: Интеграции, hint: откуда данные, color: teal, from: /product/surfaces, where: {kind: integration}, card: {chips: []}}
- - {id: access, title: Доступы, hint: что даёт заказчик, color: gray, from: /deal/access, card: {sub: false, chips: [status], compact: false}}
- - {id: envs, title: Среды, hint: где работает, color: green, from: /ops/environments, card: {sub: host, chips: [kind, status]}}
- - {id: parties, title: Внешние стороны, color: red, from: /business/parties, linked: true, card: {sub: false, chips: [kind]}}
- edges:
- - {field: askedBy, from: agents, to: people, reverse: true, label: ставит задачи, color: purple}
- - {field: connections, from: agents, to: channels, label: отвечает через, color: brown}
- - {field: automations, from: agents, to: automations, label: ведёт, color: orange}
- - {field: connections, from: agents, to: integrations, label: берёт данные из, color: teal}
- - {field: access, from: agents, to: access, label: нужен доступ, color: gray, dash: true}
- - {field: notifies, from: automations, to: people, label: сообщает, color: pink, dash: true}
- - {field: provider, to: parties, label: предоставляет, color: red, reverse: true}
- - {field: hostowner, from: envs, to: parties, label: хостинг у, color: green, dash: true}
- ---
- Собрано из записей базы: [агенты](/product/agents.md), [поверхности](/product/surfaces.md)
- (каналы и интеграции), [автоматизации](/product/automations.md), [доступы](/deal/access.md),
- [среды](/ops/environments.md) и [стороны](/business/parties.md).
- Стрелки — это поля-связи записей: `askedBy`, `connections`, `automations`, `access` у агента,
- `notifies` у автоматизации, `provider` у поверхности, `hostowner` у среды.
- Чтобы поправить картинку, правьте сами записи — линза пересоберётся.
- Наведите на карточку — останутся только её связи. Нажмите — откроется запись.