@tgbotpress/plugin-premium 0.1.1 → 0.1.2

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/README.md CHANGED
@@ -83,6 +83,8 @@ export function PremiumPlatformsRoute() {
83
83
 
84
84
  ## 开发约定
85
85
 
86
+ 会员插件声明命令、键盘、关键词回复及其键盘关联。宿主通过插件生命周期控制这些配置的实际使用;共享配置在其他关联插件仍启用时继续生效。启停后由宿主刷新 Telegram 命令。键盘和自定义关键词可在机器人配置中手动关联会员插件。
87
+
86
88
  业务 TypeScript 源文件位于 `src/*.source.ts`,页面源文件位于 `src/admin-pages.*.tsx`。运行 `npm run build` 会生成包导出的 ESM `*.js` 和类型声明 `*.d.ts`;运行 `npm run typecheck` 检查包内源文件;`npm test` 验证 Stars 履约和暂停恢复边界。发布工作流会运行这些检查后再打包。宿主适配器应继续注入所有涉及密钥、数据库、API key 和支付的能力。
87
89
 
88
90
  ## 发布
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tgbotpress/plugin-premium",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "TGBotPress Telegram membership plugin with USDT collection and Fragment, TON, or Telegram Stars fulfillment.",
5
5
  "keywords": [
6
6
  "tgbotpress",
package/src/index.js CHANGED
@@ -26,7 +26,7 @@ export const adminMenu = {
26
26
 
27
27
  export const manifest = {
28
28
  id: 'premium',
29
- version: '0.1.1',
29
+ version: '0.1.2',
30
30
  hostRange: '>=1.0.0 <2.0.0',
31
31
  sdkVersion: '0.1.0',
32
32
  name: '会员管理',
@@ -36,7 +36,7 @@ export const manifest = {
36
36
  apiRoutes: ['/api/premium-platforms', '/api/premium-packages', '/api/premium-orders', '/api/premium-trades'],
37
37
  tasks: ['premiumwalletusdttrade', 'sendpremiumtgmessage', 'tgpremium'],
38
38
  drainTasks: ['sendpremiumtgmessage', 'tgpremium'],
39
- configTypes: ['command', 'keyreply', 'keyreply_keyboard'],
39
+ configTypes: ['command', 'keyboard', 'keyreply', 'keyreply_keyboard'],
40
40
  lifecycleBlockerSql,
41
41
  adminMenu,
42
42
  automaticConfigLinks: {