@owlmeans/socket 0.1.18-rc.29 → 0.1.18-rc.30
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 +2 -2
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/socket/SKILL.md +5 -5
- package/build/consts.d.ts +3 -4
- package/build/consts.d.ts.map +1 -1
- package/build/consts.js +3 -4
- package/build/consts.js.map +1 -1
- package/package.json +4 -4
- package/src/consts.ts +3 -4
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ Shared WebSocket connection types and message protocol for OwlMeans real-time co
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
bun add @owlmeans/socket@^0.1.18-rc.
|
|
15
|
+
bun add @owlmeans/socket@^0.1.18-rc.30
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
## Usage
|
|
@@ -91,7 +91,7 @@ This package ships embedded agent skills under `agent-meta/`. After installing y
|
|
|
91
91
|
your project's skill store (`.agents/skills/`):
|
|
92
92
|
|
|
93
93
|
```sh
|
|
94
|
-
npx @owlmeans/agent-skills@^0.1.18-rc.
|
|
94
|
+
npx @owlmeans/agent-skills@^0.1.18-rc.34
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
The embedded files are version-matched to this package release. Do not edit them
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/socket",
|
|
4
|
-
"version": "0.1.18-rc.
|
|
5
|
-
"generatedAt": "2026-09-
|
|
4
|
+
"version": "0.1.18-rc.30",
|
|
5
|
+
"generatedAt": "2026-09-22T20:45:24.053Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/socket
|
|
9
9
|
|
|
10
10
|
**Layer:** Core
|
|
11
|
-
**Install:** `"@owlmeans/socket": "^0.1.18-rc.
|
|
11
|
+
**Install:** `"@owlmeans/socket": "^0.1.18-rc.30"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
Contracts and one implementation-free connection model. It knows nothing about WebSockets: the
|
|
14
14
|
browser side is `@owlmeans/client-socket`, the Fastify side `@owlmeans/server-socket`, and each
|
|
@@ -91,12 +91,12 @@ subscription a handler opened is released there.
|
|
|
91
91
|
| `disconnected` | The socket dropped and a retry IS scheduled (client-socket only) — `{ code }` |
|
|
92
92
|
| `reconnecting` | Before each retry attempt (client-socket only) — `{ attempt, delay }` |
|
|
93
93
|
| `reconnected` | A retry succeeded, same `Connection` model (client-socket only) — `{ attempts }` |
|
|
94
|
-
| `lost` | The retry budget elapsed with no success
|
|
94
|
+
| `lost` | The retry budget elapsed with no success (client-socket only). NOT followed by `close`: the connection stays revivable until its owner closes it |
|
|
95
95
|
|
|
96
96
|
`close` is the only one of the five a plain carrier with no retry logic (like `server-socket`, or
|
|
97
|
-
`client-socket` itself with `reconnect: false`) will ever emit
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
`client-socket` itself with `reconnect: false`) will ever emit. A listener that must react to a
|
|
98
|
+
reconnecting carrier giving up listens for `lost` — a `close` there comes only from its owner's
|
|
99
|
+
own `close()` or a terminal server code.
|
|
100
100
|
|
|
101
101
|
## What the model expects of a carrier
|
|
102
102
|
|
package/build/consts.d.ts
CHANGED
|
@@ -13,10 +13,9 @@ export declare const CALL_TIMEOUT = 60000;
|
|
|
13
13
|
/**
|
|
14
14
|
* System frames a carrier synthesises around the lifecycle of the underlying transport.
|
|
15
15
|
*
|
|
16
|
-
* `Close`
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* this carried reconnect support still sees exactly the frame it always did once retries give up.
|
|
16
|
+
* `Close` means the connection is gone for good — a client-initiated close, or a terminal server
|
|
17
|
+
* code. A drop the carrier intends to retry is reported as `Disconnected`, and an exhausted retry
|
|
18
|
+
* budget as `Lost` alone: a lost connection can still be revived, so it is not closed.
|
|
20
19
|
*/
|
|
21
20
|
export declare enum SocketSystemEvent {
|
|
22
21
|
Close = "close",
|
package/build/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY,QAAQ,CAAA;AAEjC
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW;IACrB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,YAAY,QAAQ,CAAA;AAEjC;;;;;;GAMG;AACH,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,IAAI,SAAS;CACd;AAED;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,OAAO,CAAA"}
|
package/build/consts.js
CHANGED
|
@@ -14,10 +14,9 @@ export const CALL_TIMEOUT = 60000;
|
|
|
14
14
|
/**
|
|
15
15
|
* System frames a carrier synthesises around the lifecycle of the underlying transport.
|
|
16
16
|
*
|
|
17
|
-
* `Close`
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* this carried reconnect support still sees exactly the frame it always did once retries give up.
|
|
17
|
+
* `Close` means the connection is gone for good — a client-initiated close, or a terminal server
|
|
18
|
+
* code. A drop the carrier intends to retry is reported as `Disconnected`, and an exhausted retry
|
|
19
|
+
* budget as `Lost` alone: a lost connection can still be revived, so it is not closed.
|
|
21
20
|
*/
|
|
22
21
|
export var SocketSystemEvent;
|
|
23
22
|
(function (SocketSystemEvent) {
|
package/build/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAN,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACnB,CAAC,EAVW,WAAW,KAAX,WAAW,QAUtB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../src/consts.ts"],"names":[],"mappings":"AACA,MAAM,CAAN,IAAY,WAUX;AAVD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,oCAAqB,CAAA;IACrB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACnB,CAAC,EAVW,WAAW,KAAX,WAAW,QAUtB;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAA;AAEjC;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,kDAA6B,CAAA;IAC7B,kDAA6B,CAAA;IAC7B,gDAA2B,CAAA;IAC3B,kCAAa,CAAA;AACf,CAAC,EANW,iBAAiB,KAAjB,iBAAiB,QAM5B;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/socket",
|
|
3
|
-
"version": "0.1.18-rc.
|
|
3
|
+
"version": "0.1.18-rc.30",
|
|
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.18-rc.
|
|
25
|
-
"@owlmeans/basic-ids": "^0.1.18-rc.
|
|
26
|
-
"@owlmeans/error": "^0.1.18-rc.
|
|
24
|
+
"@owlmeans/auth": "^0.1.18-rc.32",
|
|
25
|
+
"@owlmeans/basic-ids": "^0.1.18-rc.31",
|
|
26
|
+
"@owlmeans/error": "^0.1.18-rc.32"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@owlmeans/dep-config": "workspace:*",
|
package/src/consts.ts
CHANGED
|
@@ -16,10 +16,9 @@ export const CALL_TIMEOUT = 60000
|
|
|
16
16
|
/**
|
|
17
17
|
* System frames a carrier synthesises around the lifecycle of the underlying transport.
|
|
18
18
|
*
|
|
19
|
-
* `Close`
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* this carried reconnect support still sees exactly the frame it always did once retries give up.
|
|
19
|
+
* `Close` means the connection is gone for good — a client-initiated close, or a terminal server
|
|
20
|
+
* code. A drop the carrier intends to retry is reported as `Disconnected`, and an exhausted retry
|
|
21
|
+
* budget as `Lost` alone: a lost connection can still be revived, so it is not closed.
|
|
23
22
|
*/
|
|
24
23
|
export enum SocketSystemEvent {
|
|
25
24
|
Close = 'close',
|