@dfm-fi/agent 0.2.1941 → 0.2.1942

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.
@@ -671,7 +671,7 @@ server.registerTool('close_empty_accounts', {
671
671
  'non-empty account is never included. The transaction is decoded and checked locally (only CloseAccount, ' +
672
672
  'authority = the app wallet, rent to the chosen destination) before the owner key signs. Moves only rent.',
673
673
  inputSchema: {
674
- destination: z.enum(['sign_in_wallet', 'app_wallet']).optional().describe('where the rent goes; default sign_in_wallet'),
674
+ destination: z.enum(['sign_in_wallet', 'app_wallet']).optional().describe('where the rent goes; default app_wallet (then app_wallet_withdraw moves the SOL to your sign-in wallet)'),
675
675
  },
676
676
  annotations: { readOnlyHint: false, idempotentHint: true, openWorldHint: true },
677
677
  }, async ({ destination }) => {
@@ -96,7 +96,7 @@ export async function runOwnerAction(deps, input) {
96
96
  verifyWithdrawIxs(payer, ixs, { appWallet: app, signInWallet: deps.signInWallet, mint: input.mint, ...(input.amount ? { amount: input.amount } : {}) });
97
97
  }
98
98
  else {
99
- verifyCloseIxs(payer, ixs, { appWallet: app, destination: input.destination === 'app_wallet' ? app : deps.signInWallet });
99
+ verifyCloseIxs(payer, ixs, { appWallet: app, destination: input.destination === 'sign_in_wallet' ? deps.signInWallet : app });
100
100
  }
101
101
  const res = await deps.submit(r.requestId, deps.key.sign(payload));
102
102
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dfm-fi/agent",
3
- "version": "0.2.1941",
3
+ "version": "0.2.1942",
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",