Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-builder/Cargo.toml
iris 1a31a4cd5a swarm: set an agent's config repo avatar from its icon
The agent module exposes the PNG nix renders from the agent's icon as the
read-only option services.hyperhive.agent.iconPng, which the forge and matrix
avatar syncs now share. When the builder reads an icon it builds that one
attribute with nix build and sends the file, base64, next to the SVG in the
meta build reply, so the builder runs no renderer of its own.

After recording the icon, the controller sets the avatar of
agent-configs/<agent> from the PNG as the forge admin, removes the avatar when
the icon is removed, and leaves it alone when the builder sent no PNG. A marker
per repo holds the image's fingerprint, so a build whose icon did not change
makes no forge call; a forge that refuses the avatar does not fail the build.
An old builder sends no PNG, so it changes nothing.
2026-11-23 10:11:16 +01:00

44 lines
1.4 KiB
TOML

[package]
name = "swarm-builder"
version.workspace = true
readme = "README.md"
edition.workspace = true
[[bin]]
name = "swarm-builder"
path = "src/main.rs"
[dependencies]
anyhow.workspace = true
async-nats.workspace = true
# The icon's PNG rides in the reply as base64.
base64.workspace = true
# StreamExt::next on the subscription.
futures-util.workspace = true
hive-log.workspace = true
# `NixBuilds`, the type of the reply's `nix_builds`.
hive-types.workspace = true
# The build metrics, exported over OTLP like the review classifier's.
opentelemetry.workspace = true
opentelemetry-otlp.workspace = true
opentelemetry_sdk.workspace = true
serde_json.workspace = true
swarm-queue-client.workspace = true
# The forge token and queue client secret paths, and the store login.
swarm-secret-client = { workspace = true, features = ["otel"] }
# The build subject and the shapes the controller sends and reads back.
swarm-wire.workspace = true
tokio.workspace = true
tracing.workspace = true
# `test-util` for `#[tokio::test(start_paused = true)]`: the slot tests wait
# out the build slot's wait limit on paused time.
[dev-dependencies]
mockall.workspace = true
# `testing`: the in-memory exporter the metric tests read.
opentelemetry_sdk = { workspace = true, features = ["testing"] }
tokio = { workspace = true, features = ["test-util"] }
tracing-subscriber.workspace = true
[lints]
workspace = true