Commit graph

3 commits

Author SHA1 Message Date
096e746369 refactor: depend on renamed chain-plugin-sdk
Signed-off-by: flemming-it <sf@flemming.it>
2026-06-16 11:30:00 +02:00
0ec78fb06f chore(plugin): adopt fai-plugin-sdk naming + fai-plugins repo URL
Three SDK families convention from
fai/platform/docs/architecture/sdks.md: base name carries
family, suffix carries language. This plugin now depends on
fai-plugin-sdk (was fai-studio-plugin-sdk) and moves to the
fai-plugins/ org on Forgejo.

Signed-off-by: flemming-it <sf@flemming.it>
2026-05-26 00:59:18 +02:00
6817752ae3 feat: studio.theme.solarized v0.1.0 builds against SDK
Promotes the skeleton to a real WASM plugin component. The
22 KiB stripped artefact at
target/wasm32-wasip2/release/studio_theme_solarized.wasm
is the proof-of-contract for fai-studio-plugin-sdk v0.1.

Implements:

- theme::Guest::theme_for(brightness) returning the
  pinned Solarized Light/Dark palettes (14 ARGB tokens
  each). Brightness names other than "light"/"dark"
  return PluginError::Declined.
- translate::Guest + output_view::Guest as Declined-only
  stubs — v0.1 of the SDK requires all three hooks per
  plugin; v0.2 will split the WIT.

Cargo.toml pins edition 2021 (matches SDK; wit-bindgen
0.36 codegen does not yet support edition 2024).

Signed-off-by: flemming-it <sf@flemming.it>
2026-05-25 14:31:23 +02:00