@theopenbee/plugins 0.0.0-stage → 1.0.0

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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +123 -2
  3. package/catalog.json +241 -0
  4. package/package.json +42 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TENGYONGZHI
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,124 @@
1
- # Temporary Holding Version
1
+ # openbee plugin catalog
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The list of plugins openbee can show and install. Plugin code lives in each plugin's own repository and is published to npm. This repository only records which package, and which reviewed version of it, belongs in the catalog.
4
+
5
+ The catalog is published to npm as [`@theopenbee/plugins`](https://www.npmjs.com/package/@theopenbee/plugins). Every merge to `main` that changes the catalog publishes a new version of it.
6
+
7
+ To add a plugin or release a new version of one, see [CONTRIBUTING.md](CONTRIBUTING.md).
8
+
9
+ ## Layout
10
+
11
+ ```
12
+ plugins/<category>/<id>.json one entry per plugin
13
+ categories.json plugin categories
14
+ tags.json tags entries may use
15
+ schema/entry.schema.json entry format
16
+ scripts/ checks and catalog build
17
+ ```
18
+
19
+ ## Entries
20
+
21
+ The category and id come from the file path. For channels the id is the channel id from the plugin's `openbee.plugin.json`.
22
+
23
+ ```json
24
+ {
25
+ "$schema": "../../schema/entry.schema.json",
26
+ "package": "@theopenbee/channel-discord",
27
+ "version": "0.1.0",
28
+ "repository": "https://github.com/theopenbee/channel-discord",
29
+ "maintainers": ["Qsnh"],
30
+ "tags": ["im", "global"]
31
+ }
32
+ ```
33
+
34
+ | Field | Required | Meaning |
35
+ |---|---|---|
36
+ | `package` | yes | npm package name. A package can be registered once. |
37
+ | `version` | yes | Exact version approved for the catalog, such as `0.1.0`. No ranges, no prereleases. |
38
+ | `repository` | yes | https URL of the source repository. |
39
+ | `maintainers` | yes | GitHub usernames of the people who maintain the entry. |
40
+ | `tags` | no | Tag ids from `tags.json`. |
41
+ | `min_openbee_version` | no | Lowest openbee version the plugin works with. |
42
+ | `deprecated` | no | Deprecation notice, a string or `{"en": "...", "zh": "..."}`. Its presence marks the plugin as deprecated. |
43
+
44
+ Name and description are not part of the entry. They are read from the plugin's own manifest.
45
+
46
+ ## Official plugins
47
+
48
+ A plugin is official when its package is in the `@theopenbee` npm scope. Only members of the theopenbee npm organization can publish to that scope, and entries cannot declare themselves official. Official entries must point to a repository under `https://github.com/theopenbee/`.
49
+
50
+ ## Checks
51
+
52
+ Every pull request runs `npm run validate`, which checks every entry:
53
+
54
+ - the path, category, id and fields are valid, tags exist, and no package is registered twice;
55
+ - `package@version` is published on registry.npmjs.org and its tarball matches the npm integrity;
56
+ - the tarball's `package.json` has the same name and version and declares a license;
57
+ - the plugin manifest passes the category's rules (for channels, the same rules openbee applies to `openbee.plugin.json`).
58
+
59
+ Tarballs are read in memory. Nothing is extracted to disk and no package code runs.
60
+
61
+ ## catalog.json
62
+
63
+ The published package contains one file, `catalog.json`:
64
+
65
+ ```json
66
+ {
67
+ "schema_version": 1,
68
+ "categories": [{ "id": "channel", "name": { "en": "Channels", "zh": "渠道" } }],
69
+ "tags": [{ "id": "im", "name": { "en": "Instant messaging", "zh": "即时通讯" } }],
70
+ "plugins": [
71
+ {
72
+ "category": "channel",
73
+ "id": "discord",
74
+ "package": "@theopenbee/channel-discord",
75
+ "version": "0.1.0",
76
+ "official": true,
77
+ "name": { "en": "Discord", "zh": "Discord" },
78
+ "description": { "en": "Discord bot channel", "zh": "Discord 机器人渠道" },
79
+ "protocol_version": 1,
80
+ "license": "MIT",
81
+ "repository": "https://github.com/theopenbee/channel-discord",
82
+ "maintainers": ["Qsnh"],
83
+ "tags": ["im", "global"],
84
+ "published_at": "2026-10-25T06:35:06.867Z",
85
+ "integrity": "sha512-...",
86
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-discord/-/channel-discord-0.1.0.tgz"
87
+ }
88
+ ]
89
+ }
90
+ ```
91
+
92
+ `name`, `description`, `deprecated` and the vocabulary names are objects keyed by language; fall back to `en`. `description`, `min_openbee_version` and `deprecated` are left out when not set. Plugins are sorted by category, then id.
93
+
94
+ ### Reading the catalog
95
+
96
+ 1. Fetch `https://registry.npmjs.org/@theopenbee/plugins` and pick the highest non-prerelease version whose major equals the `schema_version` you support.
97
+ 2. Download that version's tarball, check it against its `integrity`, and read `package/catalog.json`.
98
+ 3. If npmjs is unreachable, use the same paths on `https://registry.npmmirror.com`, which may lag behind. Keep the last catalog you read.
99
+ 4. Show only categories you support and ignore fields you do not know. Plugins whose `protocol_version` you do not support, or whose `min_openbee_version` is newer than you, can be shown but not installed. Show the `deprecated` notice when present.
100
+ 5. Install with `openbee plugin install <package>@<version>`, using the exact version. When an installed plugin's version differs from the catalog's, offer the catalog version as an update.
101
+ 6. The catalog is not required for installing: plugins installed by hand with `openbee plugin install` keep working whether or not they are listed.
102
+
103
+ ### Dependencies
104
+
105
+ The catalog pins the plugin package itself. A plugin's own dependencies are resolved from the ranges in its `package.json` when it is installed, as with any `npm install`.
106
+
107
+ ## Versioning
108
+
109
+ The major version of `@theopenbee/plugins` equals `schema_version`. It changes only when `catalog.json` changes in a way older readers cannot handle; new categories and new optional fields keep the major version. Each publish bumps the patch version of the latest release, and nothing is published when the catalog is unchanged. The `version` in this repository's `package.json` is not updated; CI sets it at publish time. The very first version is published by hand, after which CI publishes through npm trusted publishing.
110
+
111
+ ## Development
112
+
113
+ ```sh
114
+ npm ci
115
+ npm test
116
+ npm run validate
117
+ npm run build
118
+ ```
119
+
120
+ `npm run validate` and `npm run build` read from registry.npmjs.org. `npm run build` writes `catalog.json`, which is not committed.
121
+
122
+ ## License
123
+
124
+ MIT
package/catalog.json ADDED
@@ -0,0 +1,241 @@
1
+ {
2
+ "schema_version": 1,
3
+ "categories": [
4
+ {
5
+ "id": "channel",
6
+ "name": {
7
+ "en": "Channels",
8
+ "zh": "渠道"
9
+ }
10
+ }
11
+ ],
12
+ "tags": [
13
+ {
14
+ "id": "im",
15
+ "name": {
16
+ "en": "Instant messaging",
17
+ "zh": "即时通讯"
18
+ }
19
+ },
20
+ {
21
+ "id": "project-management",
22
+ "name": {
23
+ "en": "Project management",
24
+ "zh": "项目管理"
25
+ }
26
+ },
27
+ {
28
+ "id": "china",
29
+ "name": {
30
+ "en": "China platforms",
31
+ "zh": "国内平台"
32
+ }
33
+ },
34
+ {
35
+ "id": "global",
36
+ "name": {
37
+ "en": "Global platforms",
38
+ "zh": "海外平台"
39
+ }
40
+ }
41
+ ],
42
+ "plugins": [
43
+ {
44
+ "category": "channel",
45
+ "id": "dingtalk",
46
+ "package": "@theopenbee/channel-dingtalk",
47
+ "version": "0.1.0",
48
+ "official": true,
49
+ "name": {
50
+ "en": "DingTalk",
51
+ "zh": "钉钉"
52
+ },
53
+ "description": {
54
+ "en": "DingTalk bot channel",
55
+ "zh": "钉钉机器人渠道"
56
+ },
57
+ "protocol_version": 1,
58
+ "license": "MIT",
59
+ "repository": "https://github.com/theopenbee/channel-dingtalk",
60
+ "maintainers": [
61
+ "Qsnh"
62
+ ],
63
+ "tags": [
64
+ "im",
65
+ "china"
66
+ ],
67
+ "published_at": "2026-10-25T08:41:10.461Z",
68
+ "integrity": "sha512-9HafXP5kZnR6bzkkpbltK2cGrtcuaQGHB4cvXgGeAdrWSfmPacY5YPtD7rG8CdU+NsZlIQvuzais9X1EZG4Dmg==",
69
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-dingtalk/-/channel-dingtalk-0.1.0.tgz"
70
+ },
71
+ {
72
+ "category": "channel",
73
+ "id": "discord",
74
+ "package": "@theopenbee/channel-discord",
75
+ "version": "0.1.0",
76
+ "official": true,
77
+ "name": {
78
+ "en": "Discord",
79
+ "zh": "Discord"
80
+ },
81
+ "description": {
82
+ "en": "Discord bot channel",
83
+ "zh": "Discord 机器人渠道"
84
+ },
85
+ "protocol_version": 1,
86
+ "license": "MIT",
87
+ "repository": "https://github.com/theopenbee/channel-discord",
88
+ "maintainers": [
89
+ "Qsnh"
90
+ ],
91
+ "tags": [
92
+ "im",
93
+ "global"
94
+ ],
95
+ "published_at": "2026-10-25T06:35:06.867Z",
96
+ "integrity": "sha512-nZyw+wXb6mqpgZhgtBAyEksiDUtvtS4jq0PVtdbo0fR18z5vf46q0bJnVFd4X8QiY8bnpMzmXFU17RKXwWlSzw==",
97
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-discord/-/channel-discord-0.1.0.tgz"
98
+ },
99
+ {
100
+ "category": "channel",
101
+ "id": "feishu",
102
+ "package": "@theopenbee/channel-lark",
103
+ "version": "0.1.0",
104
+ "official": true,
105
+ "name": {
106
+ "en": "Feishu / Lark",
107
+ "zh": "飞书"
108
+ },
109
+ "description": {
110
+ "en": "Feishu / Lark bot channel",
111
+ "zh": "飞书 / Lark 机器人渠道"
112
+ },
113
+ "protocol_version": 1,
114
+ "license": "MIT",
115
+ "repository": "https://github.com/theopenbee/channel-lark",
116
+ "maintainers": [
117
+ "Qsnh"
118
+ ],
119
+ "tags": [
120
+ "im",
121
+ "china",
122
+ "global"
123
+ ],
124
+ "published_at": "2026-10-25T08:38:49.397Z",
125
+ "integrity": "sha512-U3u25yXUnD1L+11Eri08qppN3mQFpdmaLLUIlOREMW8221/aidc/iFRy3PiBq56sulGUJDOsImXQocWsvhz/9A==",
126
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-lark/-/channel-lark-0.1.0.tgz"
127
+ },
128
+ {
129
+ "category": "channel",
130
+ "id": "linear",
131
+ "package": "@theopenbee/channel-linear",
132
+ "version": "0.1.0",
133
+ "official": true,
134
+ "name": {
135
+ "en": "Linear",
136
+ "zh": "Linear"
137
+ },
138
+ "description": {
139
+ "en": "Linear issues and comments, polled with a personal API key",
140
+ "zh": "通过个人 API Key 轮询 Linear issue 与评论"
141
+ },
142
+ "protocol_version": 1,
143
+ "license": "MIT",
144
+ "repository": "https://github.com/theopenbee/channel-linear",
145
+ "maintainers": [
146
+ "Qsnh"
147
+ ],
148
+ "tags": [
149
+ "project-management",
150
+ "global"
151
+ ],
152
+ "published_at": "2026-10-25T13:50:29.384Z",
153
+ "integrity": "sha512-lwGhUJ+dLnNdRbTvKMmZOW7XdQSkXM/zoCTZ2uCcE+yP7JqHkjYdi9vGnbolEFiBCItvyVLA0H4/pqL3DFudOg==",
154
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-linear/-/channel-linear-0.1.0.tgz"
155
+ },
156
+ {
157
+ "category": "channel",
158
+ "id": "telegram",
159
+ "package": "@theopenbee/channel-telegram",
160
+ "version": "0.1.0",
161
+ "official": true,
162
+ "name": {
163
+ "en": "Telegram",
164
+ "zh": "Telegram"
165
+ },
166
+ "description": {
167
+ "en": "Telegram bot channel",
168
+ "zh": "Telegram 机器人渠道"
169
+ },
170
+ "protocol_version": 1,
171
+ "license": "MIT",
172
+ "repository": "https://github.com/theopenbee/channel-telegram",
173
+ "maintainers": [
174
+ "Qsnh"
175
+ ],
176
+ "tags": [
177
+ "im",
178
+ "global"
179
+ ],
180
+ "published_at": "2026-10-25T07:31:57.669Z",
181
+ "integrity": "sha512-Zm0w8XhhEF606YoK1f0uo/WhnFLTTy3XFcinAGPUKzK/MoNUNezPO+tiRFtxsSQEfJwybAEP3fLCSImxMYdVoA==",
182
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-telegram/-/channel-telegram-0.1.0.tgz"
183
+ },
184
+ {
185
+ "category": "channel",
186
+ "id": "wecom",
187
+ "package": "@theopenbee/channel-wecom",
188
+ "version": "0.1.1",
189
+ "official": true,
190
+ "name": {
191
+ "en": "WeCom",
192
+ "zh": "企业微信"
193
+ },
194
+ "description": {
195
+ "en": "WeCom AI bot channel",
196
+ "zh": "企业微信智能机器人渠道"
197
+ },
198
+ "protocol_version": 1,
199
+ "license": "MIT",
200
+ "repository": "https://github.com/theopenbee/channel-wecom",
201
+ "maintainers": [
202
+ "Qsnh"
203
+ ],
204
+ "tags": [
205
+ "im",
206
+ "china"
207
+ ],
208
+ "published_at": "2026-10-25T08:54:00.983Z",
209
+ "integrity": "sha512-p+6rBOJvikUfBO8TD1onhOhhCczEklYjMIMy8Fa639L7HzHtTYVEjXKsRnvc3F1P6c0UoAgC/UKtTNyjIt9cnQ==",
210
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-wecom/-/channel-wecom-0.1.1.tgz"
211
+ },
212
+ {
213
+ "category": "channel",
214
+ "id": "weixin",
215
+ "package": "@theopenbee/channel-weixin",
216
+ "version": "0.1.0",
217
+ "official": true,
218
+ "name": {
219
+ "en": "WeChat",
220
+ "zh": "微信"
221
+ },
222
+ "description": {
223
+ "en": "WeChat bot channel, logged in with a QR code",
224
+ "zh": "微信机器人渠道,扫码登录"
225
+ },
226
+ "protocol_version": 1,
227
+ "license": "MIT",
228
+ "repository": "https://github.com/theopenbee/channel-weixin",
229
+ "maintainers": [
230
+ "Qsnh"
231
+ ],
232
+ "tags": [
233
+ "im",
234
+ "china"
235
+ ],
236
+ "published_at": "2026-10-25T13:05:33.346Z",
237
+ "integrity": "sha512-9E5SmS61lHR0HhK+M/Jcndz3XF2o1jne6pD7wvGyXf7uket7WD7pFUz5HaCgbHyD03un4fBSMVFEz0Ub+efD4Q==",
238
+ "tarball": "https://registry.npmjs.org/@theopenbee/channel-weixin/-/channel-weixin-0.1.0.tgz"
239
+ }
240
+ ]
241
+ }
package/package.json CHANGED
@@ -1,6 +1,44 @@
1
1
  {
2
2
  "name": "@theopenbee/plugins",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Catalog of plugins that can be installed in openbee",
5
+ "keywords": [
6
+ "openbee",
7
+ "openbee-plugin",
8
+ "catalog"
9
+ ],
10
+ "license": "MIT",
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/theopenbee/plugins.git"
14
+ },
15
+ "homepage": "https://github.com/theopenbee/plugins#readme",
16
+ "bugs": {
17
+ "url": "https://github.com/theopenbee/plugins/issues"
18
+ },
19
+ "type": "module",
20
+ "main": "./catalog.json",
21
+ "exports": {
22
+ ".": "./catalog.json",
23
+ "./catalog.json": "./catalog.json"
24
+ },
25
+ "files": [
26
+ "catalog.json"
27
+ ],
28
+ "engines": {
29
+ "node": ">=20"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "registry": "https://registry.npmjs.org/"
34
+ },
35
+ "scripts": {
36
+ "validate": "node scripts/validate.mjs",
37
+ "build": "node scripts/build.mjs",
38
+ "test": "node --test test/*.test.mjs",
39
+ "prepack": "npm run build"
40
+ },
41
+ "devDependencies": {
42
+ "ajv": "^8.20.0"
43
+ }
44
+ }