@clawpump/claw-agent 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -788,8 +788,23 @@ def get_active_skin() -> SkinConfig:
788
788
 
789
789
 
790
790
  def set_active_skin(name: str) -> SkinConfig:
791
- """Switch the active skin. Returns the new SkinConfig."""
791
+ """Switch the active skin. Returns the new SkinConfig.
792
+
793
+ In a downstream distribution (e.g. ClawPump) the built-in ``default`` skin
794
+ name resolves to the distribution's own skin, so users who have
795
+ ``display.skin: default`` persisted in config — or who pick ``default``
796
+ interactively via ``/skin`` — get the distribution brand instead of vanilla
797
+ Hermes. The remap happens here, at the single activation chokepoint, rather
798
+ than by overwriting ``_BUILTIN_SKINS["default"]``: that entry is also the
799
+ base from which every *other* skin inherits unset keys (see
800
+ ``_build_skin_config``), so replacing it would bleed the distribution's
801
+ colors into unrelated skins. ``load_skin("default")`` therefore still
802
+ returns the untouched vanilla base. Degrades to a no-op on vanilla Hermes,
803
+ where ``_DISTRIBUTION_DEFAULT_SKIN == "default"``.
804
+ """
792
805
  global _active_skin, _active_skin_name
806
+ if name == "default" and _DISTRIBUTION_DEFAULT_SKIN != "default":
807
+ name = _DISTRIBUTION_DEFAULT_SKIN
793
808
  _active_skin_name = name
794
809
  _active_skin = load_skin(name)
795
810
  return _active_skin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawpump/claw-agent",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },