@zhin.js/plugin-dice-duel 1.0.17 → 1.0.18

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, normalizeDiceAction } from '@zhin.js/game-kit';
4
4
  import { DICE_HELP, runDiceCommand } from "../../lib/dice-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, normalizeDiceAction } from '@zhin.js/game-kit';
3
3
  import { DICE_HELP, runDiceCommand } from '../../src/dice-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.dice-duel.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,8BAA8B,CAAC,CAAC;AAE7F,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,8BAA8B,CAAC,CAAC;AAE7F,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 { DICE_PREFIX, handleChoice } 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-dice-duel",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
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,9 @@
64
62
  ],
65
63
  "plugins": []
66
64
  },
65
+ "peerDependencies": {
66
+ "zhin.js": "6.0.10"
67
+ },
67
68
  "scripts": {
68
69
  "build": "tsc",
69
70
  "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. */