@owlmeans/socket 0.1.7 → 0.1.8

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
@@ -82,3 +82,20 @@ Default RPC call timeout in milliseconds (60 000).
82
82
 
83
83
  - [`@owlmeans/server-socket`](../server-socket) — server-side connection implementation
84
84
  - [`@owlmeans/client-socket`](../client-socket) — client-side connection implementation
85
+
86
+ <!-- owlmeans:agent-guidance:start -->
87
+ ## Agent guidance
88
+
89
+ This package ships embedded Claude Code skills and GitHub Copilot instructions under
90
+ `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
91
+ agent-skills installer to place them into your project's native locations
92
+ (`.claude/skills/` and `.github/instructions/`):
93
+
94
+ ```sh
95
+ npx @owlmeans/agent-skills
96
+ ```
97
+
98
+ The embedded files are version-matched to this package release. Do not edit them
99
+ directly — they are regenerated on each publish. To contribute guidance edits,
100
+ open a PR against the source monorepo.
101
+ <!-- owlmeans:agent-guidance:end -->
@@ -0,0 +1,31 @@
1
+ ---
2
+ description: "How to use @owlmeans/socket — abstract WebSocket protocol model, message types, and socket errors shared between client-socket and server-socket."
3
+ applyTo: "**/*.ts, **/*.tsx"
4
+ ---
5
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
6
+
7
+ # @owlmeans/socket
8
+
9
+ **Layer:** Core
10
+ **Install:** `"@owlmeans/socket": "^0.1.8"` in `dependencies`
11
+
12
+ ## Key Exports
13
+
14
+ | Export | Description |
15
+ |--------|-------------|
16
+ | `Message` types | Wire message shape (envelope, payload, headers) |
17
+ | `SocketEvent` types | Socket lifecycle events |
18
+ | Errors | Typed socket errors |
19
+ | Constants | Message types, channel names |
20
+ | Helpers | Encode/decode messages |
21
+
22
+ ## Usage
23
+
24
+ ```typescript
25
+ import type { Message } from '@owlmeans/socket'
26
+ const msg: Message = { type: 'subscribe', channel: 'projects', payload: { entityId } }
27
+ ```
28
+
29
+ ## Depends On
30
+
31
+ - `@owlmeans/error`, `@owlmeans/i18n`, `@owlmeans/basic-envelope`
@@ -0,0 +1,23 @@
1
+ {
2
+ "schemaVersion": 1,
3
+ "package": "@owlmeans/socket",
4
+ "version": "0.1.8",
5
+ "generatedAt": "2026-06-11T16:30:27.168Z",
6
+ "canonicalRepo": "https://github.com/owlmeans/common",
7
+ "entries": [
8
+ {
9
+ "kind": "skill",
10
+ "name": "socket",
11
+ "category": "package-specific",
12
+ "file": "skills/socket/SKILL.md",
13
+ "canonicalPath": ".claude/skills/socket/SKILL.md"
14
+ },
15
+ {
16
+ "kind": "instruction",
17
+ "name": "socket",
18
+ "category": "package-specific",
19
+ "file": "instructions/socket.instructions.md",
20
+ "canonicalPath": ".github/instructions/socket.instructions.md"
21
+ }
22
+ ]
23
+ }
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: socket
3
+ description: How to use @owlmeans/socket — abstract WebSocket protocol model, message types, and socket errors shared between client-socket and server-socket. Auto-invoked when importing socket types or message constants.
4
+ user-invocable: false
5
+ ---
6
+ <!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
7
+
8
+ # @owlmeans/socket
9
+
10
+ **Layer:** Core
11
+ **Install:** `"@owlmeans/socket": "^0.1.8"` in `dependencies`
12
+
13
+ ## Key Exports
14
+
15
+ | Export | Description |
16
+ |--------|-------------|
17
+ | `Message` types | Wire message shape (envelope, payload, headers) |
18
+ | `SocketEvent` types | Socket lifecycle events |
19
+ | Errors | Typed socket errors (Disconnected, AuthFailed, etc.) |
20
+ | Constants | Message types, channel names |
21
+ | Helpers | Encode/decode messages |
22
+
23
+ ## Usage
24
+
25
+ ```typescript
26
+ import type { Message } from '@owlmeans/socket'
27
+
28
+ const msg: Message = { type: 'subscribe', channel: 'projects', payload: { entityId } }
29
+ ```
30
+
31
+ Concrete implementations live in `@owlmeans/client-socket` (browser/native) and `@owlmeans/server-socket` (Fastify integration).
32
+
33
+ ## Depends On
34
+
35
+ - `@owlmeans/error`, `@owlmeans/i18n`
36
+ - `@owlmeans/basic-envelope` — message envelopes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/socket",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -21,9 +21,9 @@
21
21
  }
22
22
  },
23
23
  "dependencies": {
24
- "@owlmeans/auth": "^0.1.7",
25
- "@owlmeans/basic-ids": "^0.1.7",
26
- "@owlmeans/error": "^0.1.7"
24
+ "@owlmeans/auth": "^0.1.8",
25
+ "@owlmeans/basic-ids": "^0.1.8",
26
+ "@owlmeans/error": "^0.1.8"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@owlmeans/dep-config": "workspace:*",