@dfm-fi/agent 0.2.2059 → 0.2.2065
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/README.md +1 -1
- package/dist/mcp-server.js +3 -5
- package/dist/onboarding-api.d.ts +0 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,7 +86,7 @@ running. Write tools also require `DFM_AGENT_WRITE_ENABLED=true`.
|
|
|
86
86
|
| `report_bug` | support | Send a bug report to the DFM team. Moves no funds. |
|
|
87
87
|
| `onboard` | onboarding | Headless agent: runs the steps below in order, stops at the first missing one and prints the funding step. |
|
|
88
88
|
| `create_identity_wallet` | onboarding | The agent's own Solana identity keypair (SIWS sign-in); reused if present, never a second. |
|
|
89
|
-
| `set_profile` | onboarding | Display name, @username
|
|
89
|
+
| `set_profile` | onboarding | Display name, bio, avatar (no DFM @username; the only @ is a linked X). No image file? A deterministic default avatar is generated. |
|
|
90
90
|
| `create_app_wallet` | onboarding | An app wallet owned by the agent's local P-256 key. |
|
|
91
91
|
| `create_api_key` | onboarding | Mint a `dfm_` key (read-only unless `DFM_ALLOW_WRITE_KEY_MINT=1`), stored 0600, never shown in chat. |
|
|
92
92
|
| `launch_vault` | write | Launch a fund (2–10 assets, weights sum to 10,000 bps). |
|
package/dist/mcp-server.js
CHANGED
|
@@ -643,7 +643,7 @@ server.registerTool('create_identity_wallet', {
|
|
|
643
643
|
});
|
|
644
644
|
server.registerTool('set_profile', {
|
|
645
645
|
title: 'Set my DFM profile',
|
|
646
|
-
description: 'Set this agent\'s public DFM profile: displayName (required)
|
|
646
|
+
description: 'Set this agent\'s public DFM profile: displayName (required) and optional bio; there is no DFM @username. The avatar is the ' +
|
|
647
647
|
'image the OPERATOR put at DFM_AGENT_AVATAR_PATH or ~/.config/dfm/avatar.{png,jpg,jpeg,webp,gif} (≤ 2 MB, ' +
|
|
648
648
|
'checked locally) — the model cannot point it at any other file. With no such file a deterministic default ' +
|
|
649
649
|
'avatar (an identicon of the identity public key) is generated and uploaded, so no image is required; the ' +
|
|
@@ -651,16 +651,14 @@ server.registerTool('set_profile', {
|
|
|
651
651
|
'the SIWS sign-in (identity wallet). Moves no funds.',
|
|
652
652
|
inputSchema: {
|
|
653
653
|
displayName: z.string().min(1).max(32),
|
|
654
|
-
username: z.string().regex(/^@?[a-zA-Z0-9_]{3,20}$/).optional().describe('@handle, 3-20 chars a-z 0-9 _'),
|
|
655
654
|
bio: z.string().max(160).optional(),
|
|
656
655
|
uploadAvatar: z.boolean().optional().describe('default true: upload the operator image, or the generated default when there is none'),
|
|
657
656
|
},
|
|
658
657
|
annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: true },
|
|
659
|
-
}, async ({ displayName,
|
|
658
|
+
}, async ({ displayName, bio, uploadAvatar }) => {
|
|
660
659
|
try {
|
|
661
660
|
const profile = await onboardApi.updateProfile({
|
|
662
661
|
displayName,
|
|
663
|
-
...(username ? { username: username.replace(/^@/, '') } : {}),
|
|
664
662
|
...(bio !== undefined ? { bio } : {}),
|
|
665
663
|
});
|
|
666
664
|
let avatar = { uploaded: false };
|
|
@@ -676,7 +674,7 @@ server.registerTool('set_profile', {
|
|
|
676
674
|
: {}),
|
|
677
675
|
};
|
|
678
676
|
}
|
|
679
|
-
return text({ profile: { displayName: profile.displayName,
|
|
677
|
+
return text({ profile: { displayName: profile.displayName, bio: profile.bio }, avatar });
|
|
680
678
|
}
|
|
681
679
|
catch (e) {
|
|
682
680
|
return errText(`set_profile failed: ${e.message}`);
|
package/dist/onboarding-api.d.ts
CHANGED
|
@@ -32,7 +32,6 @@ export declare function onboardingApi(call: SessionFetch): {
|
|
|
32
32
|
}>;
|
|
33
33
|
updateProfile: (dto: {
|
|
34
34
|
displayName: string;
|
|
35
|
-
username?: string;
|
|
36
35
|
bio?: string;
|
|
37
36
|
}) => Promise<Record<string, unknown>>;
|
|
38
37
|
uploadAvatar: (bytes: Buffer, filename: string, mime: string) => Promise<Record<string, unknown>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dfm-fi/agent",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2065",
|
|
4
4
|
"description": "DFM v2 MCP server — drive the full fund launch → deposit → redeem (+ manage) lifecycle from an AI agent against the live API.",
|
|
5
5
|
"homepage": "https://app.dfm.finance/docs/agent",
|
|
6
6
|
"mcpName": "io.github.DFM-Finance/dfm-agent",
|