@zhin.js/plugin-rps 1.0.17 → 1.0.19

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 { messageFromCommandInput, normalizeRpsAction } from '@zhin.js/game-kit';
4
4
  import { RPS_HELP, runRpsCommand } from "../../lib/rps-command.js";
5
5
  import { resolveGameServices } from "../../lib/runtime-store.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { messageFromCommandInput, normalizeRpsAction } from '@zhin.js/game-kit';
3
3
  import { RPS_HELP, runRpsCommand } from '../../src/rps-command.js';
4
4
  import { resolveGameServices } from '../../src/runtime-store.js';
@@ -1,4 +1,4 @@
1
- import { type Token } from '@zhin.js/plugin-runtime';
1
+ import { type Token } from 'zhin.js';
2
2
  import type { SessionService } from './session-service.js';
3
3
  /** Owner-scoped service consumed by discovered commands and middleware. */
4
4
  export declare const gameServicesToken: Token<SessionService>;
@@ -1,4 +1,4 @@
1
- import { createToken } from '@zhin.js/plugin-runtime';
1
+ import { createToken } from 'zhin.js';
2
2
  /** Owner-scoped service consumed by discovered commands and middleware. */
3
3
  export const gameServicesToken = createToken('zhin.game.rps.services');
4
4
  export function resolveGameServices(context) {
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-store.js","sourceRoot":"","sources":["../src/runtime-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAGlE,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAiB,wBAAwB,CAAC,CAAC;AAEvF,MAAM,UAAU,mBAAmB,CAAC,OAAuC;IACzE,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACxC,CAAC"}
1
+ {"version":3,"file":"runtime-store.js","sourceRoot":"","sources":["../src/runtime-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,MAAM,SAAS,CAAC;AAGlD,2EAA2E;AAC3E,MAAM,CAAC,MAAM,iBAAiB,GAAG,WAAW,CAAiB,wBAAwB,CAAC,CAAC;AAEvF,MAAM,UAAU,mBAAmB,CAAC,OAAuC;IACzE,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACxC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { defineMiddleware } from '@zhin.js/middleware';
2
+ import { defineMiddleware } from 'zhin.js/middleware';
3
3
  import { buildChoiceFallbackMap, channelKey, messageFromCommandInput, parseChoicePayload, resolveGameTextPayload, } from '@zhin.js/game-kit';
4
4
  import { resolveGameServices } from "../lib/runtime-store.js";
5
5
  import { handleChoice, RPS_PREFIX } from "../lib/game-flow.js";
@@ -1,4 +1,4 @@
1
- import { defineMiddleware } from '@zhin.js/middleware';
1
+ import { defineMiddleware } from 'zhin.js/middleware';
2
2
  import type { Message } from '@zhin.js/core/runtime';
3
3
  import {
4
4
  buildChoiceFallbackMap,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-rps",
3
- "version": "1.0.17",
3
+ "version": "1.0.19",
4
4
  "description": "Zhin.js 猜拳游戏 — 石头剪刀布三局两胜 (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -24,15 +24,13 @@
24
24
  ],
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
- "@zhin.js/command": "1.0.13",
28
- "@zhin.js/core": "1.5.9",
29
- "@zhin.js/game-kit": "3.0.9",
30
- "@zhin.js/middleware": "1.0.10",
31
- "@zhin.js/plugin-runtime": "1.1.6"
27
+ "@zhin.js/core": "1.5.10",
28
+ "@zhin.js/game-kit": "3.0.10"
32
29
  },
33
30
  "devDependencies": {
34
31
  "typescript": "^6.0.3",
35
- "vitest": "^4.1.10"
32
+ "vitest": "^4.1.10",
33
+ "zhin.js": "6.0.10"
36
34
  },
37
35
  "repository": {
38
36
  "type": "git",
@@ -64,6 +62,19 @@
64
62
  ],
65
63
  "plugins": []
66
64
  },
65
+ "peerDependencies": {
66
+ "@zhin.js/command": "1.0.14",
67
+ "@zhin.js/middleware": "1.0.11",
68
+ "zhin.js": "6.0.10"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@zhin.js/command": {
72
+ "optional": true
73
+ },
74
+ "@zhin.js/middleware": {
75
+ "optional": true
76
+ }
77
+ },
67
78
  "scripts": {
68
79
  "build": "tsc",
69
80
  "clean": "rimraf lib",
@@ -1,4 +1,4 @@
1
- import { createToken, type Token } from '@zhin.js/plugin-runtime';
1
+ import { createToken, type Token } from 'zhin.js';
2
2
  import type { SessionService } from './session-service.js';
3
3
 
4
4
  /** Owner-scoped service consumed by discovered commands and middleware. */