@clawpump/claw-agent 0.1.2 → 0.1.4

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
@@ -62,6 +62,7 @@ agent), `agent_id` can usually be omitted. When unsure which agent, ask.
62
62
  | Agent cards (Laso) | `agent_card_search_merchants`, `agent_card_search_gift_cards`, `agent_card_quote`, `agent_card_create`, `agent_card_list`, `agent_card_get`, `agent_card_status`, `agent_card_data`, `agent_card_balance`, `agent_card_reveal`, `agent_card_cancel`, `agent_card_refresh`, `agent_card_withdraw`, `agent_card_withdrawals`, `agent_card_connect`, `agent_card_connect_link` |
63
63
  | Agent mail | `agent_mail_create`, `agent_mail_get_address`, `agent_mail_send`, `agent_mail_list`, `agent_mail_read` |
64
64
  | Pay.sh x402 (agent-wallet paid APIs) | `pay_sh_search`, `pay_sh_provider_details`, `pay_sh_prepare_call`, `pay_sh_execute_approved` |
65
+ | UsePod (pay inference from the wallet) | `usepod_deposit` |
65
66
  | Wallet & billing | `get_balance`, `get_budget`, `get_usage`, `get_transactions`, `get_wallet_summaries`, `get_wallet_history`, `get_private_wallet_balance`, `get_balance_history`, `sync_billing`, `wallet_transfer` |
66
67
  | Market intelligence | `intelligence_capabilities`, `intelligence_market`, `intelligence_signals`, `intelligence_macro`, `intelligence_perps` |
67
68
  | Integrations | `list_integrations`, `save_integration`, `remove_integration`, `get_linked_accounts` |
@@ -92,6 +93,7 @@ explicit confirm flag (e.g. `confirmRisk: true`, `confirm_launch: true`,
92
93
  - Agent mail: `agent_mail_create` (one-time ~$2 USDC from the agent wallet), `agent_mail_send` (outward-facing email; paid per send via x402 from the agent wallet)
93
94
  - Wallet: `wallet_transfer` (irreversible on-chain send; destination must be on the agent's whitelist via `add_to_whitelist`; quote the exact amount, token, and address, then `confirm_transfer: true`)
94
95
  - Pay.sh x402: `pay_sh_execute_approved` (pays USDC from the agent wallet via x402 — always `pay_sh_prepare_call` first; quote the exact endpoint + price; approval codes expire in 10 minutes; requires the `x402` skill on the agent)
96
+ - UsePod: `usepod_deposit` (top up the user's own UsePod pod from the agent's ClawPump wallet, to pay for Hermes/agent inference usage — irreversible on-chain USDC deposit of the **full** amount, no fee; the user supplies their 16-hex `deposit_code` from UsePod `/v1/register`; double-check the code and amount, then `confirm_deposit: true`)
95
97
 
96
98
  **Always get a quote/preview first** (`swap_quote` before `swap_execute`,
97
99
  `perps_order_preview` before `perps_order_execute`, `agent_card_quote` before
@@ -136,3 +138,4 @@ Common patterns:
136
138
  - **Deliverability (avoid spam):** write genuine, complete messages — a specific subject, a greeting, 2–4 sentences of real purpose, and a sign-off. Never send one-word/empty bodies or test-like "hello": low-content mail from a fresh sender domain is the #1 spam trigger. Do **not** use fake-urgent or deceptive subjects ("IMPORTANT!!", "URGENT") to game filters — that backfires and is deceptive. Tell first-time recipients to mark "Not spam" + add the address to contacts; that trains their inbox fastest.
137
139
  - **Fund an external wallet (e.g. a pay.sh allowance):** `get_balance` → `add_to_whitelist` (user-approved address) → (confirm) `wallet_transfer`. See the `pay-sh` skill.
138
140
  - **Paid x402 API call (agent wallet pays):** `pay_sh_search` → `pay_sh_provider_details` (price) → `pay_sh_prepare_call` → (confirm price with user) → `pay_sh_execute_approved`. The agent needs the `x402` skill (`update_agent` with `enabled_skills`).
141
+ - **Pay your Hermes inference from the ClawPump wallet (UsePod):** if the user runs Hermes on their own UsePod pod (`USEPOD_API_KEY` in `~/.hermes/.env`), they can top that pod up straight from their ClawPump wallet instead of funding it manually at usepod.ai. Flow: `get_balance` (confirm the agent wallet holds enough USDC) → ask for the amount + their 16-hex `deposit_code` (from UsePod `/v1/register`) → quote both back → (confirm) `usepod_deposit` with `confirm_deposit: true`. The full amount goes on-chain into that pod (no fee); UsePod then draws inference cost from it. This is **separate** from ClawPump's own hosted chat/credits — it just pays the user's own pod from their wallet.
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.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },