@zhin.js/plugin-lottery 2.0.9 → 2.0.11
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.
- package/commands/lottery/[[game]].js +1 -1
- package/commands/lottery/[[game]].ts +1 -1
- package/commands/lottery-backtest/[[game]].js +1 -1
- package/commands/lottery-backtest/[[game]].ts +1 -1
- package/commands/lottery-history/[game].js +1 -1
- package/commands/lottery-history/[game].ts +1 -1
- package/commands/lottery-stats/[game].js +1 -1
- package/commands/lottery-stats/[game].ts +1 -1
- package/commands/lottery-today.js +1 -1
- package/commands/lottery-today.ts +1 -1
- package/commands/lottery-train/[[game]].js +1 -1
- package/commands/lottery-train/[[game]].ts +1 -1
- package/lib/runtime-state.d.ts +1 -1
- package/lib/runtime-state.d.ts.map +1 -1
- package/lib/runtime-state.js +1 -1
- package/lib/runtime-state.js.map +1 -1
- package/package.json +6 -6
- package/plugin.js +1 -1
- package/src/runtime-state.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
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,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
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,5 +1,5 @@
|
|
|
1
1
|
// Generated by build-plugin-runtime-entries.mjs. Do not edit.
|
|
2
|
-
import { defineCommand } from '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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";
|
package/lib/runtime-state.d.ts
CHANGED
|
@@ -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("
|
|
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,
|
|
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"}
|
package/lib/runtime-state.js
CHANGED
package/lib/runtime-state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-state.js","sourceRoot":"","sources":["../src/runtime-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
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.
|
|
3
|
+
"version": "2.0.11",
|
|
4
4
|
"description": "Multi-game lottery analysis for Zhin.js (Plugin Runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"license": "MIT",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"zod": "^4.4.3",
|
|
46
|
-
"@zhin.js/
|
|
47
|
-
"@zhin.js/plugin-runtime": "1.1.6",
|
|
48
|
-
"@zhin.js/tool": "1.0.9"
|
|
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.
|
|
51
|
+
"@zhin.js/agent": "1.1.11",
|
|
52
|
+
"zhin.js": "6.0.10"
|
|
54
53
|
},
|
|
55
54
|
"peerDependencies": {
|
|
56
|
-
"@zhin.js/agent": "1.1.
|
|
55
|
+
"@zhin.js/agent": "1.1.11",
|
|
56
|
+
"zhin.js": "6.0.10"
|
|
57
57
|
},
|
|
58
58
|
"peerDependenciesMeta": {
|
|
59
59
|
"@zhin.js/agent": {
|
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 '
|
|
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";
|
package/src/runtime-state.ts
CHANGED