@dfm-fi/agent 0.2.823 → 0.2.837
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.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/skills.md +16 -14
package/dist/cli.js
CHANGED
|
@@ -54,7 +54,7 @@ function printHelp() {
|
|
|
54
54
|
}
|
|
55
55
|
async function startMcpServer() {
|
|
56
56
|
// Lazy import so `install`/`help` never pay the cost of building the full
|
|
57
|
-
// server (loadConfig,
|
|
57
|
+
// server (loadConfig, 14 tool registrations) and so importing this module
|
|
58
58
|
// never auto-starts the server (mcp-server only auto-starts as an entrypoint).
|
|
59
59
|
const m = await import('./mcp-server.js');
|
|
60
60
|
await m.startServer();
|
package/package.json
CHANGED
package/skills.md
CHANGED
|
@@ -100,8 +100,10 @@ extend expiry. Returns the exact old→new loosening applied.
|
|
|
100
100
|
|
|
101
101
|
### update_vault_assets (write — GATED) — MANAGER
|
|
102
102
|
FULL-REPLACE a vault's basket with new target weights. Only works on a vault YOU
|
|
103
|
-
admin. prepare → sign → submit → confirm.
|
|
104
|
-
|
|
103
|
+
admin. prepare → sign → submit → confirm. Every vault is MANUAL (auto-rebalance
|
|
104
|
+
was removed, #35). The config timelock is flag-gated OFF in v1
|
|
105
|
+
(`ENFORCE_DEPOSITOR_GUARDS=false`) — a vault is editable ~10s after create, not
|
|
106
|
+
24h (clear 4xx only if a future deploy re-enables the guard).
|
|
105
107
|
- Input: `vault` (base58), `assets` (1–15, each `{mint,symbol,allocationBps}`;
|
|
106
108
|
allocationBps sum to exactly 10000, no duplicate mints).
|
|
107
109
|
- REMOVING an asset the vault still HOLDS: this tool is order-aware and drains a
|
|
@@ -125,18 +127,18 @@ needed for an older vault, one created with rebalancing skipped, or a basket too
|
|
|
125
127
|
large to bundle the init at create. Reverts on-chain if already initialized.
|
|
126
128
|
- Input: `vault` (base58). Returns the init signature + the `rebalancerConfig` PDA.
|
|
127
129
|
|
|
128
|
-
###
|
|
129
|
-
|
|
130
|
-
initialized — bundled into `launch_vault`, or run
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
130
|
+
### rebalance_to_targets (write — GATED) — MANAGER
|
|
131
|
+
Converge a vault the test wallet ADMINS toward its CURRENT config target weights
|
|
132
|
+
(rebalancer must be initialized — bundled into `launch_vault`, or run
|
|
133
|
+
`init_rebalancer`). The free-form swap tool (`inputMint`/`outputMint`/`amountIn`)
|
|
134
|
+
was REMOVED (#57): a rebalance ONLY converges holdings to the declared targets —
|
|
135
|
+
the config is the source of truth. One-signature creator-rebalance (approve →
|
|
136
|
+
execute → revoke). On-chain guards are ORACLE-FREE: a measured `min_out` floor +
|
|
137
|
+
hardcoded velocity ceilings (50%/tx, **5s** spacing, 48/day) + an output-mint
|
|
138
|
+
allowlist. **No Pyth feed / price-posting gate** — the oracle-free redesign
|
|
139
|
+
removed it; deviations are computed off-chain (Pyth→Switchboard→Jupiter cascade)
|
|
140
|
+
purely to size the converging legs.
|
|
141
|
+
- Input: `vault` (base58), optional `slippageBps` (1–300). Returns the signature(s).
|
|
140
142
|
|
|
141
143
|
## Key concepts
|
|
142
144
|
|