@luckylillia-dev/plugin-milky 0.0.0-stage → 1.0.1

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.
@@ -0,0 +1,10 @@
1
+ import type { Context, Schema } from '@luckylillia-dev/plugin-sdk'
2
+ export interface Config {
3
+ reportSelfMessage: boolean
4
+ http: { host: string; port: number; prefix: string; accessToken: string }
5
+ webhook: { urls: string[]; accessToken: string }
6
+ }
7
+ export declare const Config: Schema<Config>
8
+ export declare const name: string
9
+ export declare const inject: string[]
10
+ export declare function apply(ctx: Context, config: Config): Promise<void>
package/package.json CHANGED
@@ -1,6 +1,123 @@
1
1
  {
2
2
  "name": "@luckylillia-dev/plugin-milky",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "type": "module",
5
+ "description": "Milky protocol adapter for LuckyLillia NTQQ",
6
+ "main": "./lib/index.js",
7
+ "types": "./lib/types/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./lib/types/index.d.ts",
11
+ "default": "./lib/index.js"
12
+ },
13
+ "./package.json": "./package.json"
14
+ },
15
+ "files": [
16
+ "lib"
17
+ ],
18
+ "author": "LuckyLilliaDev",
19
+ "repository": { "type": "git", "url": "git+https://github.com/LuckyLilliaDev/lucky-lillia-plugin-milky.git" },
20
+ "license": "GPL-2.0",
21
+ "engines": {
22
+ "node": ">=22.15"
23
+ },
24
+ "keywords": [
25
+ "luckylillia-plugin",
26
+ "milky"
27
+ ],
28
+ "scripts": {
29
+ "build": "node scripts/build.mjs",
30
+ "check": "tsc --noEmit",
31
+ "test": "vitest run",
32
+ "prepack": "npm run check && npm run build"
33
+ },
34
+ "dependencies": {
35
+ "@hono/node-server": "^2.1.1",
36
+ "@saltify/typeproto": "^0.4.1",
37
+ "fast-xml-parser": "^5.11.1",
38
+ "hono": "^4.13.5",
39
+ "ws": "^8.21.3",
40
+ "zod": "^4.5.4"
41
+ },
42
+ "peerDependencies": {
43
+ "@luckylillia-dev/plugin-nt-protocol": "^1.0.0",
44
+ "@luckylillia-dev/plugin-sdk": "^1.0.1",
45
+ "cordis": "4.0.0-rc.11",
46
+ "cosmokit": "^1.8.1",
47
+ "react": "^19.0.0",
48
+ "schemastery": "^3.18.0"
49
+ },
50
+ "peerDependenciesMeta": {
51
+ "@luckylillia-dev/plugin-nt-protocol": {
52
+ "optional": true
53
+ },
54
+ "react": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "devDependencies": {
59
+ "@luckylillia-dev/plugin-sdk": "npm:@luckylillia/plugin-sdk@^1.0.1",
60
+ "@types/node": "^24.12.4",
61
+ "@types/react": "^19.0.0",
62
+ "@types/ws": "^8.18.1",
63
+ "cordis": "4.0.0-rc.11",
64
+ "cosmokit": "^1.8.1",
65
+ "esbuild": "~0.28.0",
66
+ "react": "^19.0.0",
67
+ "schemastery": "^3.18.0",
68
+ "typescript": "^7.0.2",
69
+ "vitest": "^4.1.11"
70
+ },
71
+ "publishConfig": {
72
+ "access": "public",
73
+ "registry": "https://registry.npmjs.org"
74
+ },
75
+ "llbot": {
76
+ "category": "adapter",
77
+ "title": "Milky",
78
+ "icon": "milk",
79
+ "description": "通过 NTQQ 提供 Milky HTTP API、WebSocket、SSE 和 Webhook。需要安装并启用 NTQQ 协议插件。",
80
+ "dependencies": {
81
+ "@luckylillia-dev/plugin-nt-protocol": "^1.0.0"
82
+ },
83
+ "service": {
84
+ "implements": [
85
+ "milky"
86
+ ],
87
+ "required": [
88
+ "qqProtocol",
89
+ "app",
90
+ "store",
91
+ "ntUserApi",
92
+ "ntFriendApi",
93
+ "ntGroupApi",
94
+ "ntMsgApi",
95
+ "ntFileApi",
96
+ "ntSystemApi",
97
+ "ntWebApi"
98
+ ],
99
+ "labels": {
100
+ "milky": "Milky",
101
+ "qqProtocol": "NTQQ 协议",
102
+ "app": "NTQQ 账号登录",
103
+ "store": "NTQQ 消息缓存",
104
+ "ntUserApi": "NTQQ 用户接口",
105
+ "ntFriendApi": "NTQQ 好友接口",
106
+ "ntGroupApi": "NTQQ 群接口",
107
+ "ntMsgApi": "NTQQ 消息接口",
108
+ "ntFileApi": "NTQQ 文件接口",
109
+ "ntSystemApi": "NTQQ 系统接口",
110
+ "ntWebApi": "NTQQ Web 接口"
111
+ }
112
+ },
113
+ "webui": "./lib/client/index.js",
114
+ "launch": [
115
+ { "field": "http.host", "arg": "--milky-host", "env": "MILKY_HOST" },
116
+ { "field": "http.port", "arg": "--milky-port", "env": "MILKY_PORT" },
117
+ { "field": "http.prefix", "arg": "--milky-prefix", "env": "MILKY_PREFIX" },
118
+ { "field": "http.accessToken", "arg": "--milky-token", "env": "MILKY_TOKEN" },
119
+ { "field": "webhook.urls", "arg": "--milky-webhook-url", "env": "MILKY_WEBHOOK_URL" },
120
+ { "field": "webhook.accessToken", "arg": "--milky-webhook-token", "env": "MILKY_WEBHOOK_TOKEN" }
121
+ ]
122
+ }
123
+ }