@zhin.js/plugin-lottery 2.0.10 → 2.0.12

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 { parseGameId } from "../../lib/games/registry.js";
4
4
  import { buildPipelineDeps, formatPipelineReply, runLotteryPipeline, resolveLotteryConfig, } from "../../lib/command-helpers.js";
5
5
  import { lotteryRuntimeToken } from "../../lib/runtime-state.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { parseGameId } from '../../src/games/registry.js';
3
3
  import {
4
4
  buildPipelineDeps,
@@ -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 { parseGameId } from "../../lib/games/registry.js";
4
4
  import { formatBacktestSection, runBacktestForGames, } from "../../lib/evaluate/backtest.js";
5
5
  import { resolveLotteryConfig, } from "../../lib/command-helpers.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { parseGameId } from '../../src/games/registry.js';
3
3
  import {
4
4
  formatBacktestSection,
@@ -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 { parseGameId } from "../../lib/games/registry.js";
4
4
  import { loadDraws } from "../../lib/db.js";
5
5
  import { lotteryRuntimeToken } from "../../lib/runtime-state.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { parseGameId } from '../../src/games/registry.js';
3
3
  import { loadDraws } from '../../src/db.js';
4
4
  import type { LotteryConfig } from '../../src/command-helpers.js';
@@ -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 { parseGameId } from "../../lib/games/registry.js";
4
4
  import { loadDraws } from "../../lib/db.js";
5
5
  import { recommendGame, formatPickLine, formatPickStats } from "../../lib/recommend/game-pick.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { parseGameId } from '../../src/games/registry.js';
3
3
  import { loadDraws } from '../../src/db.js';
4
4
  import { recommendGame, formatPickLine, formatPickStats } from '../../src/recommend/game-pick.js';
@@ -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 { formatDailyReportText, loadTodayReport } from "../lib/recommend/report.js";
4
4
  import { lotteryRuntimeToken } from "../lib/runtime-state.js";
5
5
  export default defineCommand({
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { formatDailyReportText, loadTodayReport } from '../src/recommend/report.js';
3
3
  import type { LotteryConfig } from '../src/command-helpers.js';
4
4
  import { lotteryRuntimeToken } from '../src/runtime-state.js';
@@ -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 { parseGameId } from "../../lib/games/registry.js";
4
4
  import { formatTrainReport, trainAllGameWeights, } from "../../lib/evaluate/backtest.js";
5
5
  import { resolveLotteryConfig, } from "../../lib/command-helpers.js";
@@ -1,4 +1,4 @@
1
- import { defineCommand } from '@zhin.js/command';
1
+ import { defineCommand } from 'zhin.js/command';
2
2
  import { parseGameId } from '../../src/games/registry.js';
3
3
  import {
4
4
  formatTrainReport,
@@ -7,5 +7,5 @@ export interface LotteryRuntime {
7
7
  readonly enabledGames: readonly GameId[];
8
8
  readonly outbound: ((text: string) => Promise<void>) | null;
9
9
  }
10
- export declare const lotteryRuntimeToken: import("@zhin.js/plugin-runtime").Token<LotteryRuntime>;
10
+ export declare const lotteryRuntimeToken: import("zhin.js").Token<LotteryRuntime>;
11
11
  //# sourceMappingURL=runtime-state.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-state.d.ts","sourceRoot":"","sources":["../src/runtime-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,mBAAmB,yDAG/B,CAAC"}
1
+ {"version":3,"file":"runtime-state.d.ts","sourceRoot":"","sources":["../src/runtime-state.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,CAAC;IACzC,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC;CAC7D;AAED,eAAO,MAAM,mBAAmB,yCAG/B,CAAC"}
@@ -1,3 +1,3 @@
1
- import { createToken } from '@zhin.js/plugin-runtime';
1
+ import { createToken } from 'zhin.js';
2
2
  export const lotteryRuntimeToken = createToken('zhin.lottery.runtime', 'Owner-scoped Lottery runtime');
3
3
  //# sourceMappingURL=runtime-state.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-state.js","sourceRoot":"","sources":["../src/runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAYtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAC5C,sBAAsB,EACtB,8BAA8B,CAC/B,CAAC"}
1
+ {"version":3,"file":"runtime-state.js","sourceRoot":"","sources":["../src/runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAYtC,MAAM,CAAC,MAAM,mBAAmB,GAAG,WAAW,CAC5C,sBAAsB,EACtB,8BAA8B,CAC/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhin.js/plugin-lottery",
3
- "version": "2.0.10",
3
+ "version": "2.0.12",
4
4
  "description": "Multi-game lottery analysis for Zhin.js (Plugin Runtime)",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -43,21 +43,25 @@
43
43
  "license": "MIT",
44
44
  "dependencies": {
45
45
  "zod": "^4.4.3",
46
- "@zhin.js/command": "1.0.13",
47
- "@zhin.js/plugin-runtime": "1.1.6",
48
- "@zhin.js/tool": "1.0.10"
46
+ "@zhin.js/tool": "1.0.11"
49
47
  },
50
48
  "devDependencies": {
51
49
  "typescript": "^6.0.3",
52
50
  "vitest": "^4.1.10",
53
- "@zhin.js/agent": "1.1.10"
51
+ "zhin.js": "6.0.10",
52
+ "@zhin.js/agent": "1.1.12"
54
53
  },
55
54
  "peerDependencies": {
56
- "@zhin.js/agent": "1.1.10"
55
+ "@zhin.js/agent": "1.1.12",
56
+ "@zhin.js/command": "1.0.14",
57
+ "zhin.js": "6.0.10"
57
58
  },
58
59
  "peerDependenciesMeta": {
59
60
  "@zhin.js/agent": {
60
61
  "optional": true
62
+ },
63
+ "@zhin.js/command": {
64
+ "optional": true
61
65
  }
62
66
  },
63
67
  "repository": {
package/plugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by build-plugin-runtime-entries.mjs. Do not edit.
2
- import { definePlugin, databaseHostToken, outboundHostToken, scheduleHostToken, } from '@zhin.js/plugin-runtime';
2
+ import { definePlugin, databaseHostToken, outboundHostToken, scheduleHostToken, } from 'zhin.js';
3
3
  import { lotteryEnabledGames, lotteryKl8, resolveLotteryConfig, } from "./lib/config.js";
4
4
  import { defineLotteryTables } from "./lib/db.js";
5
5
  import { createInMemoryLotteryDb } from "./lib/memory-db.js";
@@ -1,4 +1,4 @@
1
- import { createToken } from '@zhin.js/plugin-runtime';
1
+ import { createToken } from 'zhin.js';
2
2
  import type { LotteryConfig } from './config.js';
3
3
  import type { LotteryDb } from './db.js';
4
4
  import type { GameId } from './types.js';