ShtukbaseStandard
package file→ .shtukbase/packages/lenses/kit/examples/architecture.lens.md

kit/examples/architecture.lens.md

44 lines, 2.8 KB.

  1. ---
  2. type: Lens
  3. title: Agent architecture
  4. icon: "🏗️"
  5. description: "Who gives tasks to agents, through which channels they reply, where they get data, which accesses are needed and where everything runs"
  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: People, hint: roles in the product, color: purple, from: /product/roles, card: {sub: false, chips: []}}
  18. - {id: channels, title: Channels, hint: where an agent replies, color: brown, from: /product/surfaces, where: {kind: channel}, card: {chips: []}}
  19. - {id: agents, title: Agents, color: blue, from: /product/agents, group: kind, card: {chips: [status]}}
  20. - {id: automations, title: Automations, hint: regular tasks, color: orange, from: /product/automations, card: {sub: when, chips: []}}
  21. - {id: integrations, title: Integrations, hint: where data comes from, color: teal, from: /product/surfaces, where: {kind: integration}, card: {chips: []}}
  22. - {id: access, title: Accesses, hint: what the customer gives, color: gray, from: /deal/access, card: {sub: false, chips: [status], compact: false}}
  23. - {id: envs, title: Environments, hint: where it runs, color: green, from: /ops/environments, card: {sub: host, chips: [kind, status]}}
  24. - {id: parties, title: External parties, color: red, from: /business/parties, linked: true, card: {sub: false, chips: [kind]}}
  25. edges:
  26. - {field: askedBy, from: agents, to: people, reverse: true, label: gives tasks, color: purple}
  27. - {field: connections, from: agents, to: channels, label: replies through, color: brown}
  28. - {field: automations, from: agents, to: automations, label: runs, color: orange}
  29. - {field: connections, from: agents, to: integrations, label: takes data from, color: teal}
  30. - {field: access, from: agents, to: access, label: needs access, color: gray, dash: true}
  31. - {field: notifies, from: automations, to: people, label: notifies, color: pink, dash: true}
  32. - {field: provider, to: parties, label: provides, color: red, reverse: true}
  33. - {field: hostowner, from: envs, to: parties, label: hosted by, color: green, dash: true}
  34. ---
  35. Built from the base's records: [agents](/product/agents.md), [surfaces](/product/surfaces.md)
  36. (channels and integrations), [automations](/product/automations.md), [accesses](/deal/access.md),
  37. [environments](/ops/environments.md) and [parties](/business/parties.md).
  38. The arrows are the records' link fields: `askedBy`, `connections`, `automations`, `access` on an agent,
  39. `notifies` on an automation, `provider` on a surface, `hostowner` on an environment.
  40. To fix the picture, edit the records themselves — the lens will rebuild.
  41. Hover over a card — only its links remain. Click — the record opens.