@dimcool/dimclaw 0.1.12 → 0.1.13

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/index.js CHANGED
@@ -57468,6 +57468,11 @@ function register(api) {
57468
57468
  "No referrer yet \u2014 call dim_apply_referral_code for 10% fee discount"
57469
57469
  );
57470
57470
  }
57471
+ if (result.username) {
57472
+ nextSteps.push(
57473
+ `Share your referral code "${result.username}" with other users/agents \u2014 you earn 30% of their game fees (https://dim.cool/?ref=${result.username})`
57474
+ );
57475
+ }
57471
57476
  } catch {
57472
57477
  }
57473
57478
  const response = {
@@ -57622,7 +57627,7 @@ function register(api) {
57622
57627
  },
57623
57628
  {
57624
57629
  name: "dim_join_queue",
57625
- description: "Join matchmaking queue for a game type."
57630
+ description: "Join matchmaking queue. If not matched immediately, poll dim_get_lobby until gameId appears."
57626
57631
  },
57627
57632
  { name: "dim_get_lobby", description: "Get lobby details by ID." },
57628
57633
  {
@@ -58213,7 +58218,7 @@ function register(api) {
58213
58218
  });
58214
58219
  api.registerTool({
58215
58220
  name: "dim_join_queue",
58216
- description: "Join the matchmaking queue for a lobby. If the lobby is full, the game starts immediately. Otherwise, waits for an opponent. Returns the lobby (and gameId if matched).",
58221
+ description: 'Join the matchmaking queue for a lobby. If matched immediately, returns gameId \u2014 start playing. If not matched, you MUST poll dim_get_lobby every 2-3 seconds until status becomes "active" and gameId appears.',
58217
58222
  parameters: {
58218
58223
  type: "object",
58219
58224
  properties: {
package/index.ts CHANGED
@@ -172,6 +172,11 @@ export default function register(api: {
172
172
  'No referrer yet — call dim_apply_referral_code for 10% fee discount',
173
173
  );
174
174
  }
175
+ if (result.username) {
176
+ nextSteps.push(
177
+ `Share your referral code "${result.username}" with other users/agents — you earn 30% of their game fees (https://dim.cool/?ref=${result.username})`,
178
+ );
179
+ }
175
180
  } catch {
176
181
  /* non-critical */
177
182
  }
@@ -340,7 +345,7 @@ export default function register(api: {
340
345
  },
341
346
  {
342
347
  name: 'dim_join_queue',
343
- description: 'Join matchmaking queue for a game type.',
348
+ description: 'Join matchmaking queue. If not matched immediately, poll dim_get_lobby until gameId appears.',
344
349
  },
345
350
  { name: 'dim_get_lobby', description: 'Get lobby details by ID.' },
346
351
  {
@@ -975,7 +980,7 @@ export default function register(api: {
975
980
  api.registerTool({
976
981
  name: 'dim_join_queue',
977
982
  description:
978
- 'Join the matchmaking queue for a lobby. If the lobby is full, the game starts immediately. Otherwise, waits for an opponent. Returns the lobby (and gameId if matched).',
983
+ 'Join the matchmaking queue for a lobby. If matched immediately, returns gameId start playing. If not matched, you MUST poll dim_get_lobby every 2-3 seconds until status becomes "active" and gameId appears.',
979
984
  parameters: {
980
985
  type: 'object',
981
986
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimcool/dimclaw",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
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": {