@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/README.md +1 -1
- package/dist/index.js +2277 -23168
- package/index.ts +17 -2
- package/openclaw.plugin.json +2 -2
- package/package.json +1 -1
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 = [
|
|
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
|
-
|
|
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" }',
|
package/openclaw.plugin.json
CHANGED
|
@@ -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
|
|
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