@moostjs/event-ws 0.6.25 → 0.6.27

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
@@ -95,24 +95,10 @@ await app.init()
95
95
 
96
96
  ## AI Agent Skills
97
97
 
98
- This package ships skills for AI coding agents (Claude Code, Cursor, Windsurf, Codex, OpenCode). After installing `@moostjs/event-ws`, set up the skills:
98
+ A unified Moost skill for AI coding agents (Claude Code, Cursor, Windsurf, Codex, OpenCode) covers this package along with the rest of the framework:
99
99
 
100
100
  ```bash
101
- # Project-local (recommended — version-locked, commits with your repo)
102
- npx moostjs-event-ws-skill
103
-
104
- # Global (available across all your projects)
105
- npx moostjs-event-ws-skill --global
106
- ```
107
-
108
- To auto-install skills on `npm install`, add to your `package.json`:
109
-
110
- ```json
111
- {
112
- "scripts": {
113
- "postinstall": "moostjs-event-ws-skill --postinstall"
114
- }
115
- }
101
+ npx skills add moostjs/moostjs
116
102
  ```
117
103
 
118
104
  ## Contributing
package/dist/index.cjs CHANGED
@@ -172,7 +172,6 @@ const LOGGER_TITLE = "moost-ws";
172
172
  const path = typeof handler.path === "string" ? handler.path : typeof opts.method === "string" ? opts.method : "";
173
173
  const targetPath = `${`${opts.prefix || ""}/${path}`.replaceAll(/\/\/+/g, "/")}`;
174
174
  const fn = (0, moost.defineMoostEventHandler)({
175
- contextType: "WS_MESSAGE",
176
175
  loggerTitle: LOGGER_TITLE,
177
176
  getIterceptorHandler: opts.getIterceptorHandler,
178
177
  getControllerInstance: opts.getInstance,
@@ -189,7 +188,6 @@ const LOGGER_TITLE = "moost-ws";
189
188
  }
190
189
  bindConnectHandler(opts) {
191
190
  const fn = (0, moost.defineMoostEventHandler)({
192
- contextType: "WS_CONNECT",
193
191
  loggerTitle: LOGGER_TITLE,
194
192
  getIterceptorHandler: opts.getIterceptorHandler,
195
193
  getControllerInstance: opts.getInstance,
@@ -204,7 +202,6 @@ const LOGGER_TITLE = "moost-ws";
204
202
  }
205
203
  bindDisconnectHandler(opts) {
206
204
  const fn = (0, moost.defineMoostEventHandler)({
207
- contextType: "WS_DISCONNECT",
208
205
  loggerTitle: LOGGER_TITLE,
209
206
  getIterceptorHandler: opts.getIterceptorHandler,
210
207
  getControllerInstance: opts.getInstance,
package/dist/index.mjs CHANGED
@@ -171,7 +171,6 @@ const LOGGER_TITLE = "moost-ws";
171
171
  const path = typeof handler.path === "string" ? handler.path : typeof opts.method === "string" ? opts.method : "";
172
172
  const targetPath = `${`${opts.prefix || ""}/${path}`.replaceAll(/\/\/+/g, "/")}`;
173
173
  const fn = defineMoostEventHandler({
174
- contextType: "WS_MESSAGE",
175
174
  loggerTitle: LOGGER_TITLE,
176
175
  getIterceptorHandler: opts.getIterceptorHandler,
177
176
  getControllerInstance: opts.getInstance,
@@ -188,7 +187,6 @@ const LOGGER_TITLE = "moost-ws";
188
187
  }
189
188
  bindConnectHandler(opts) {
190
189
  const fn = defineMoostEventHandler({
191
- contextType: "WS_CONNECT",
192
190
  loggerTitle: LOGGER_TITLE,
193
191
  getIterceptorHandler: opts.getIterceptorHandler,
194
192
  getControllerInstance: opts.getInstance,
@@ -203,7 +201,6 @@ const LOGGER_TITLE = "moost-ws";
203
201
  }
204
202
  bindDisconnectHandler(opts) {
205
203
  const fn = defineMoostEventHandler({
206
- contextType: "WS_DISCONNECT",
207
204
  loggerTitle: LOGGER_TITLE,
208
205
  getIterceptorHandler: opts.getIterceptorHandler,
209
206
  getControllerInstance: opts.getInstance,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moostjs/event-ws",
3
- "version": "0.6.25",
3
+ "version": "0.6.27",
4
4
  "description": "@moostjs/event-ws",
5
5
  "keywords": [
6
6
  "composables",
@@ -39,15 +39,15 @@
39
39
  }
40
40
  },
41
41
  "dependencies": {
42
- "@wooksjs/event-ws": "^0.7.17"
42
+ "@wooksjs/event-ws": "^0.7.19"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vitest": "3.2.4"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "@prostojs/infact": "^0.4.1",
49
- "@wooksjs/event-core": "^0.7.17",
50
- "moost": "^0.6.25"
49
+ "@wooksjs/event-core": "^0.7.19",
50
+ "moost": "^0.6.27"
51
51
  },
52
52
  "scripts": {
53
53
  "pub": "pnpm publish --access public",