# @wix/agent-platform-bm-sdk

Browser integration hooks for AI Assistant side effects. Host applications use
this library to react to events emitted by assistant tools and widgets.
It works alongside the Chat Service SDK, which supplies the event connection.

## Build and develop

From the repository root:

```bash
fnm use && yarn install
yarn workspace @wix/agent-platform-bm-sdk build:recursive
```

The recursive build builds this package and its workspace dependencies. Run
`yarn start` from this package to watch library changes.

For verification in a running host, follow the
[BM app development workflow](../../.agents/skills/bm-app-dev-env/SKILL.md).

## Documentation

Explore the [Genie documentation](../ai-assistant-docs/src/README.md) and its
[question index](../ai-assistant-docs/src/AGENT_INDEX.md) for usage, integration,
and operational guidance.

- [Side effects integration](../ai-assistant-docs/src/020_chat-ui/210_SideEffects.md) — receiving tool and widget events in the client.
- [Platform side effects](../ai-assistant-docs/src/050_platform/050_SideEffects.md) — publishing events, permissions, and delivery.

## Related packages

- [chat-service-sdk](../chat-service-sdk/README.md) — Chat integration and event connection.
- [business-assistant-bm-app](../business-assistant-bm-app/README.md) — Aria host application.
- [chat-widget-common-widgets](../chat-widget-common-widgets/README.md) — Widget implementations.
