@dimcool/dimclaw 0.1.24 → 0.1.27

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/index.ts CHANGED
@@ -11,6 +11,7 @@ import {
11
11
  DimAgentClient,
12
12
  TOOL_DEFINITIONS,
13
13
  DIM_INSTRUCTIONS,
14
+ WALLET_LINKAGE_NOTE,
14
15
  executeWithAuthRetry,
15
16
  } from '@dimcool/dim-agent-core';
16
17
  import type { ToolParam, BufferedEvent } from '@dimcool/dim-agent-core';
@@ -127,7 +128,12 @@ function createHeartbeatWriter(heartbeatPath: string | undefined) {
127
128
 
128
129
  return async (event: BufferedEvent) => {
129
130
  pending.push(event);
130
- const lines = ['# DIM Heartbeat', ''];
131
+ const lines = [
132
+ '# DIM Heartbeat',
133
+ '',
134
+ '- At least once per day, report to the operator your DIM progress: call dim_get_game_history (and optionally dim_get_my_stats and dim_get_referral_summary), then summarize games played and referral earnings.',
135
+ '',
136
+ ];
131
137
  const eventTypes = new Set(pending.map((e) => e.event));
132
138
  if (eventTypes.has('chat:message')) {
133
139
  lines.push('- You have new DMs — call dim_check_notifications');
@@ -304,7 +310,16 @@ export default function register(api: {
304
310
  return textResult(
305
311
  JSON.stringify(
306
312
  {
307
- hint: 'Game flow: dim_create_lobby → dim_join_queue → dim_game_loop (blocks until your turn) → dim_submit_action → dim_game_loop → repeat until completed',
313
+ wallet_linkage: WALLET_LINKAGE_NOTE,
314
+ wallet_address:
315
+ 'Your DIM Solana address is returned by dim_get_profile, dim_get_balance, dim_get_wallet_activity, and dim_get_wallet_address. Use it to confirm which address is tied to DIM.',
316
+ wallet_activity:
317
+ 'For deposits, transfers, payouts, and claimable items use dim_get_wallet_activity.',
318
+ hint: 'Game flow: For paid lobbies, dim_create_lobby → dim_deposit_for_lobby → dim_join_queue. For free lobbies, dim_create_lobby → dim_join_queue. Then dim_game_loop (blocks until your turn) → dim_submit_action → dim_game_loop → repeat. Use dim_leave_lobby to exit a lobby.',
319
+ spectate_on_game_start:
320
+ 'When a game starts (dim_join_queue or dim_accept_challenge returns matched/gameId), tell the user they can spectate at the spectateUrl in the tool response, or at https://dim.cool/spectate/[your DIM username].',
321
+ daily_summary:
322
+ 'At least once per day, report to the operator your DIM progress: call dim_get_game_history (and optionally dim_get_my_stats and dim_get_referral_summary), then summarize games played and referral earnings.',
308
323
  move_formats: {
309
324
  'rock-paper-scissors':
310
325
  'action: "play", payload: { action: "rock"|"paper"|"scissors" }',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "dimclaw",
3
3
  "name": "DIM Gaming Platform",
4
- "description": "Play games, chat, send USDC and earn on DIM.",
4
+ "description": "Play games, chat, send USDC and earn on DIM. Noncustodial; your wallet address is in dim_get_profile and dim_get_balance.",
5
5
  "configSchema": {
6
6
  "type": "object",
7
7
  "properties": {
@@ -82,6 +82,6 @@
82
82
  "label": "Auto-promote referral code"
83
83
  }
84
84
  },
85
- "setupHint": "After install, add your Solana wallet private key to plugins.entries.dimclaw.config.walletPrivateKey, then call dim_login to get started.",
85
+ "setupHint": "After install, add your Solana wallet private key (base58) to plugins.entries.dimclaw.config.walletPrivateKey, then call dim_login. Your DIM wallet address is returned by dim_get_profile and dim_get_balance.",
86
86
  "skill": "./SKILL.md"
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimcool/dimclaw",
3
- "version": "0.1.24",
3
+ "version": "0.1.27",
4
4
  "description": "OpenClaw plugin for DIM — play games, chat, send USDC, and earn on DIM using the SDK directly (no MCP subprocess).",
5
5
  "type": "module",
6
6
  "openclaw": {