@zhin.js/plugin-game-hub 1.0.16 → 1.0.17

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.
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { formatRuntimeGamesHelp, getRuntimeGame } from '@zhin.js/game-kit';
4
4
  export default defineCommand({
5
5
  description: 'Game hub — list loaded games',
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { formatRuntimeGamesHelp, getRuntimeGame } from '@zhin.js/game-kit';
3
3
 
4
4
  export default defineCommand({
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { channelKey, getUserGameStats, getRuntimeGame, messageFromCommandInput, } from '@zhin.js/game-kit';
4
4
  function formatStats(stats) {
5
5
  if (!stats.length)
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import {
3
3
  channelKey,
4
4
  getUserGameStats,
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineCommand } from '@zhin.js/command';
2
+ import { defineCommand } from 'zhin.js/command';
3
3
  import { channelKey, getGameLeaderboard, getRuntimeGame, getRuntimeGames, messageFromCommandInput, } from '@zhin.js/game-kit';
4
4
  function formatLeaderboard(gameId, entries) {
5
5
  const g = getRuntimeGame(gameId);
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import {
3
3
  channelKey,
4
4
  getGameLeaderboard,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-game-hub",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "Zhin.js 游戏大厅 — 列出已加载的游戏插件 (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -23,13 +23,12 @@
23
23
  ],
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@zhin.js/command": "1.0.13",
27
- "@zhin.js/game-kit": "3.0.9",
28
- "@zhin.js/plugin-runtime": "1.1.6"
26
+ "@zhin.js/game-kit": "3.0.10"
29
27
  },
30
28
  "devDependencies": {
31
29
  "typescript": "^6.0.3",
32
- "vitest": "^4.1.10"
30
+ "vitest": "^4.1.10",
31
+ "zhin.js": "6.0.10"
33
32
  },
34
33
  "repository": {
35
34
  "type": "git",
@@ -57,6 +56,9 @@
57
56
  ],
58
57
  "plugins": []
59
58
  },
59
+ "peerDependencies": {
60
+ "zhin.js": "6.0.10"
61
+ },
60
62
  "scripts": {
61
63
  "build": "tsc",
62
64
  "clean": "rimraf lib",
package/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin } from '@zhin.js/plugin-runtime';
2
+ import { definePlugin } from 'zhin.js';
3
3
  /**
4
4
  * Plugin Runtime game hub — lists games registered via `registerRuntimeGame`.
5
5
  * Interactive hub menus are deferred; `/games` command shows help text.