@zhin.js/plugin-guess-number 1.0.24 → 1.1.2

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,8 +1,8 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
2
  import { defineCommand } from 'zhin.js/command';
3
3
  import { messageFromCommandInput, normalizeGuessAction } from '@zhin.js/game-kit';
4
- import { GUESS_HELP, runGuessCommand } from "../../lib/guess-command.js";
5
- import { resolveGameServices } from "../../lib/runtime-store.js";
4
+ import { GUESS_HELP, runGuessCommand } from "../../../lib/guess-command.js";
5
+ import { resolveGameServices } from "../../../lib/runtime-store.js";
6
6
  export default defineCommand({
7
7
  description: 'Guess Number',
8
8
  params: { action: { type: 'string', default: '' } },
@@ -1,7 +1,7 @@
1
1
  import { defineCommand } from 'zhin.js/command';
2
2
  import { messageFromCommandInput, normalizeGuessAction } from '@zhin.js/game-kit';
3
- import { GUESS_HELP, runGuessCommand } from '../../src/guess-command.js';
4
- import { resolveGameServices } from '../../src/runtime-store.js';
3
+ import { GUESS_HELP, runGuessCommand } from '../../../src/guess-command.js';
4
+ import { resolveGameServices } from '../../../src/runtime-store.js';
5
5
 
6
6
  export default defineCommand({
7
7
  description: 'Guess Number',
package/lib/index.d.ts CHANGED
@@ -2,5 +2,5 @@ export { GUESS_HELP } from './guess-command.js';
2
2
  export { gameServicesToken, resolveGameServices } from './runtime-store.js';
3
3
  /**
4
4
  * 已由 plugin.ts 接线:commands/ 命令、middlewares/ 文本与选项中间件、
5
- * 游戏大厅注册、过期会话清理与 database host / memory 双轨。
5
+ * 游戏大厅 Game capability、过期会话清理与 database host / memory 双轨。
6
6
  */
package/lib/index.js CHANGED
@@ -2,6 +2,6 @@ export { GUESS_HELP } from './guess-command.js';
2
2
  export { gameServicesToken, resolveGameServices } from './runtime-store.js';
3
3
  /**
4
4
  * 已由 plugin.ts 接线:commands/ 命令、middlewares/ 文本与选项中间件、
5
- * 游戏大厅注册、过期会话清理与 database host / memory 双轨。
5
+ * 游戏大厅 Game capability、过期会话清理与 database host / memory 双轨。
6
6
  */
7
7
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
2
  import { defineGameCommandAliasMiddleware, isGuessAction, messageFromCommandInput, normalizeGuessAction, } from '@zhin.js/game-kit';
3
- import { GUESS_HELP, runGuessCommand } from "../lib/guess-command.js";
4
- import { resolveGameServices } from "../lib/runtime-store.js";
3
+ import { GUESS_HELP, runGuessCommand } from "../../lib/guess-command.js";
4
+ import { resolveGameServices } from "../../lib/runtime-store.js";
5
5
  export default defineGameCommandAliasMiddleware({
6
6
  aliases: ['猜数', 'guess'],
7
7
  async run(action, input, context) {
@@ -4,8 +4,8 @@ import {
4
4
  messageFromCommandInput,
5
5
  normalizeGuessAction,
6
6
  } from '@zhin.js/game-kit';
7
- import { GUESS_HELP, runGuessCommand } from '../src/guess-command.js';
8
- import { resolveGameServices } from '../src/runtime-store.js';
7
+ import { GUESS_HELP, runGuessCommand } from '../../src/guess-command.js';
8
+ import { resolveGameServices } from '../../src/runtime-store.js';
9
9
 
10
10
  export default defineGameCommandAliasMiddleware({
11
11
  aliases: ['猜数', 'guess'],
@@ -1,9 +1,9 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
2
  import { defineMiddleware } from 'zhin.js/middleware';
3
3
  import { messageFromCommandInput, parseChoicePayload, resolveGameTextPayload, } from '@zhin.js/game-kit';
4
- import { handleGuessChoice } from "../lib/game-flow.js";
5
- import { resolveGameServices } from "../lib/runtime-store.js";
6
- import { GUESS_PREFIX } from "../lib/view.js";
4
+ import { handleGuessChoice } from "../../lib/game-flow.js";
5
+ import { resolveGameServices } from "../../lib/runtime-store.js";
6
+ import { GUESS_PREFIX } from "../../lib/view.js";
7
7
  export default defineMiddleware({
8
8
  target: 'inbound',
9
9
  async handle(context, next) {
@@ -5,9 +5,9 @@ import {
5
5
  parseChoicePayload,
6
6
  resolveGameTextPayload,
7
7
  } from '@zhin.js/game-kit';
8
- import { handleGuessChoice } from '../src/game-flow.js';
9
- import { resolveGameServices } from '../src/runtime-store.js';
10
- import { GUESS_PREFIX } from '../src/view.js';
8
+ import { handleGuessChoice } from '../../src/game-flow.js';
9
+ import { resolveGameServices } from '../../src/runtime-store.js';
10
+ import { GUESS_PREFIX } from '../../src/view.js';
11
11
 
12
12
  export default defineMiddleware<Message>({
13
13
  target: 'inbound',
@@ -1,8 +1,8 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
2
  import { defineMiddleware } from 'zhin.js/middleware';
3
3
  import { messageFromCommandInput } from '@zhin.js/game-kit';
4
- import { resolveGameServices } from "../lib/runtime-store.js";
5
- import { processGuess } from "../lib/game-flow.js";
4
+ import { resolveGameServices } from "../../lib/runtime-store.js";
5
+ import { processGuess } from "../../lib/game-flow.js";
6
6
  export default defineMiddleware({
7
7
  target: 'inbound',
8
8
  async handle(context, next) {
@@ -1,8 +1,8 @@
1
1
  import { defineMiddleware } from 'zhin.js/middleware';
2
2
  import type { Message } from '@zhin.js/core/runtime';
3
3
  import { messageFromCommandInput } from '@zhin.js/game-kit';
4
- import { resolveGameServices } from '../src/runtime-store.js';
5
- import { processGuess } from '../src/game-flow.js';
4
+ import { resolveGameServices } from '../../src/runtime-store.js';
5
+ import { processGuess } from '../../src/game-flow.js';
6
6
 
7
7
  export default defineMiddleware<Message>({
8
8
  target: 'inbound',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-guess-number",
3
- "version": "1.0.24",
3
+ "version": "1.1.2",
4
4
  "description": "Zhin.js 猜数字 — 1~100 七步之内猜中 (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -24,13 +24,13 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@zhin.js/core": "1.5.15",
28
- "@zhin.js/game-kit": "3.0.15"
27
+ "@zhin.js/core": "1.1.37",
28
+ "@zhin.js/game-kit": "1.1.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "typescript": "^6.0.3",
32
32
  "vitest": "^4.1.10",
33
- "zhin.js": "6.0.15"
33
+ "zhin.js": "1.1.2"
34
34
  },
35
35
  "repository": {
36
36
  "type": "git",
@@ -58,14 +58,18 @@
58
58
  {
59
59
  "package": "@zhin.js/middleware",
60
60
  "api": "^1.0.0"
61
+ },
62
+ {
63
+ "package": "@zhin.js/game-kit",
64
+ "api": "^1.0.0"
61
65
  }
62
66
  ],
63
67
  "plugins": []
64
68
  },
65
69
  "peerDependencies": {
66
- "@zhin.js/command": "1.0.16",
67
- "@zhin.js/middleware": "1.0.13",
68
- "zhin.js": "6.0.15"
70
+ "@zhin.js/command": "^1.1.1",
71
+ "@zhin.js/middleware": "^1.1.1",
72
+ "zhin.js": "^1.1.2"
69
73
  },
70
74
  "peerDependenciesMeta": {
71
75
  "@zhin.js/command": {
package/src/index.ts CHANGED
@@ -3,5 +3,5 @@ export { gameServicesToken, resolveGameServices } from './runtime-store.js';
3
3
 
4
4
  /**
5
5
  * 已由 plugin.ts 接线:commands/ 命令、middlewares/ 文本与选项中间件、
6
- * 游戏大厅注册、过期会话清理与 database host / memory 双轨。
6
+ * 游戏大厅 Game capability、过期会话清理与 database host / memory 双轨。
7
7
  */