@jskit-ai/realtime 0.1.145 → 0.1.147
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/package.json +143 -3
- package/package.descriptor.mjs +0 -146
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/realtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.147",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -15,14 +15,154 @@
|
|
|
15
15
|
"./client/runtime": "./src/client/runtime.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"@jskit-ai/kernel": "0.1.150",
|
|
19
|
+
"@jskit-ai/shell-web": "0.1.154",
|
|
18
20
|
"@socket.io/redis-adapter": "^8.3.0",
|
|
19
|
-
"@jskit-ai/kernel": "0.1.147",
|
|
20
|
-
"@jskit-ai/shell-web": "0.1.149",
|
|
21
21
|
"redis": "^5.8.2",
|
|
22
22
|
"socket.io": "^4.8.3",
|
|
23
23
|
"socket.io-client": "^4.8.3"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"vue": "^3.5.13"
|
|
27
|
+
},
|
|
28
|
+
"description": "Thin, generic realtime runtime wrappers for socket.io server and client.",
|
|
29
|
+
"jskit": {
|
|
30
|
+
"kind": "runtime",
|
|
31
|
+
"options": {
|
|
32
|
+
"realtime-redis-url": {
|
|
33
|
+
"required": true,
|
|
34
|
+
"allowEmpty": true,
|
|
35
|
+
"values": [],
|
|
36
|
+
"defaultValue": "",
|
|
37
|
+
"promptLabel": "Realtime Redis URL",
|
|
38
|
+
"promptHint": "Leave empty to use in-memory socket adapter."
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"capabilities": {
|
|
42
|
+
"provides": [
|
|
43
|
+
"runtime.realtime",
|
|
44
|
+
"runtime.realtime.client"
|
|
45
|
+
],
|
|
46
|
+
"requires": []
|
|
47
|
+
},
|
|
48
|
+
"runtime": {
|
|
49
|
+
"server": {
|
|
50
|
+
"providerEntrypoint": "src/server/RealtimeServiceProvider.js",
|
|
51
|
+
"providers": [
|
|
52
|
+
{
|
|
53
|
+
"entrypoint": "src/server/RealtimeServiceProvider.js",
|
|
54
|
+
"export": "RealtimeServiceProvider"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"client": {
|
|
59
|
+
"providers": [
|
|
60
|
+
{
|
|
61
|
+
"entrypoint": "src/client/RealtimeClientProvider.js",
|
|
62
|
+
"export": "RealtimeClientProvider"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"metadata": {
|
|
68
|
+
"apiSummary": {
|
|
69
|
+
"surfaces": [
|
|
70
|
+
{
|
|
71
|
+
"subpath": "./server",
|
|
72
|
+
"summary": "Exports RealtimeServiceProvider only."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"subpath": "./client",
|
|
76
|
+
"summary": "Exports RealtimeClientProvider only."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"subpath": "./client/listeners",
|
|
80
|
+
"summary": "Exports client listener registration helpers for provider-level realtime subscriptions."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"subpath": "./client/composables/*",
|
|
84
|
+
"summary": "Exports component-level realtime socket composables."
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"containerTokens": {
|
|
88
|
+
"server": [
|
|
89
|
+
"runtime.realtime",
|
|
90
|
+
"runtime.realtime.io"
|
|
91
|
+
],
|
|
92
|
+
"client": [
|
|
93
|
+
"runtime.realtime.client",
|
|
94
|
+
"runtime.realtime.client.socket",
|
|
95
|
+
"realtime.web.connection.indicator"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"ui": {
|
|
100
|
+
"placements": {
|
|
101
|
+
"outlets": [],
|
|
102
|
+
"contributions": [
|
|
103
|
+
{
|
|
104
|
+
"id": "realtime.connection.indicator",
|
|
105
|
+
"target": "shell.status",
|
|
106
|
+
"kind": "component",
|
|
107
|
+
"surfaces": [
|
|
108
|
+
"*"
|
|
109
|
+
],
|
|
110
|
+
"order": 950,
|
|
111
|
+
"componentToken": "realtime.web.connection.indicator",
|
|
112
|
+
"source": "mutations.text#realtime-placement-indicator"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"mutations": {
|
|
119
|
+
"dependencies": {
|
|
120
|
+
"runtime": {
|
|
121
|
+
"@jskit-ai/kernel": "0.1.150",
|
|
122
|
+
"@jskit-ai/shell-web": "0.1.154",
|
|
123
|
+
"@socket.io/redis-adapter": "^8.3.0",
|
|
124
|
+
"redis": "^5.8.2",
|
|
125
|
+
"socket.io": "^4.8.3",
|
|
126
|
+
"socket.io-client": "^4.8.3"
|
|
127
|
+
},
|
|
128
|
+
"dev": {}
|
|
129
|
+
},
|
|
130
|
+
"packageJson": {
|
|
131
|
+
"scripts": {}
|
|
132
|
+
},
|
|
133
|
+
"procfile": {},
|
|
134
|
+
"files": [],
|
|
135
|
+
"vite": {
|
|
136
|
+
"proxy": [
|
|
137
|
+
{
|
|
138
|
+
"id": "realtime-socket-io",
|
|
139
|
+
"path": "/socket.io",
|
|
140
|
+
"changeOrigin": true,
|
|
141
|
+
"ws": true
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
"text": [
|
|
146
|
+
{
|
|
147
|
+
"file": ".env",
|
|
148
|
+
"op": "upsert-env",
|
|
149
|
+
"key": "REALTIME_REDIS_URL",
|
|
150
|
+
"value": "${option:realtime-redis-url}",
|
|
151
|
+
"reason": "Configure optional Redis backplane URL for realtime socket adapter.",
|
|
152
|
+
"category": "runtime-config",
|
|
153
|
+
"id": "realtime-redis-url"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"op": "append-text",
|
|
157
|
+
"file": "src/placement.js",
|
|
158
|
+
"position": "bottom",
|
|
159
|
+
"skipIfContains": "id: \"realtime.connection.indicator\"",
|
|
160
|
+
"value": "\naddPlacement({\n id: \"realtime.connection.indicator\",\n target: \"shell.status\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 950,\n componentToken: \"realtime.web.connection.indicator\"\n});\n",
|
|
161
|
+
"reason": "Append realtime connection indicator placement into app-owned placement registry.",
|
|
162
|
+
"category": "realtime-web",
|
|
163
|
+
"id": "realtime-placement-indicator"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
27
167
|
}
|
|
28
168
|
}
|
package/package.descriptor.mjs
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
export default Object.freeze({
|
|
2
|
-
packageVersion: 1,
|
|
3
|
-
packageId: "@jskit-ai/realtime",
|
|
4
|
-
version: "0.1.145",
|
|
5
|
-
kind: "runtime",
|
|
6
|
-
description: "Thin, generic realtime runtime wrappers for socket.io server and client.",
|
|
7
|
-
options: {
|
|
8
|
-
"realtime-redis-url": {
|
|
9
|
-
required: true,
|
|
10
|
-
allowEmpty: true,
|
|
11
|
-
values: [],
|
|
12
|
-
defaultValue: "",
|
|
13
|
-
promptLabel: "Realtime Redis URL",
|
|
14
|
-
promptHint: "Leave empty to use in-memory socket adapter."
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
dependsOn: [
|
|
18
|
-
"@jskit-ai/kernel",
|
|
19
|
-
"@jskit-ai/shell-web"
|
|
20
|
-
],
|
|
21
|
-
capabilities: {
|
|
22
|
-
provides: [
|
|
23
|
-
"runtime.realtime",
|
|
24
|
-
"runtime.realtime.client"
|
|
25
|
-
],
|
|
26
|
-
requires: []
|
|
27
|
-
},
|
|
28
|
-
runtime: {
|
|
29
|
-
server: {
|
|
30
|
-
providerEntrypoint: "src/server/RealtimeServiceProvider.js",
|
|
31
|
-
providers: [
|
|
32
|
-
{
|
|
33
|
-
entrypoint: "src/server/RealtimeServiceProvider.js",
|
|
34
|
-
export: "RealtimeServiceProvider"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
client: {
|
|
39
|
-
providers: [
|
|
40
|
-
{
|
|
41
|
-
entrypoint: "src/client/RealtimeClientProvider.js",
|
|
42
|
-
export: "RealtimeClientProvider"
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
metadata: {
|
|
48
|
-
apiSummary: {
|
|
49
|
-
surfaces: [
|
|
50
|
-
{
|
|
51
|
-
subpath: "./server",
|
|
52
|
-
summary: "Exports RealtimeServiceProvider only."
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
subpath: "./client",
|
|
56
|
-
summary: "Exports RealtimeClientProvider only."
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
subpath: "./client/listeners",
|
|
60
|
-
summary: "Exports client listener registration helpers for provider-level realtime subscriptions."
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
subpath: "./client/composables/*",
|
|
64
|
-
summary: "Exports component-level realtime socket composables."
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
containerTokens: {
|
|
68
|
-
server: [
|
|
69
|
-
"runtime.realtime",
|
|
70
|
-
"runtime.realtime.io"
|
|
71
|
-
],
|
|
72
|
-
client: [
|
|
73
|
-
"runtime.realtime.client",
|
|
74
|
-
"runtime.realtime.client.socket",
|
|
75
|
-
"realtime.web.connection.indicator"
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
ui: {
|
|
80
|
-
placements: {
|
|
81
|
-
outlets: [],
|
|
82
|
-
contributions: [
|
|
83
|
-
{
|
|
84
|
-
id: "realtime.connection.indicator",
|
|
85
|
-
target: "shell.status",
|
|
86
|
-
kind: "component",
|
|
87
|
-
surfaces: ["*"],
|
|
88
|
-
order: 950,
|
|
89
|
-
componentToken: "realtime.web.connection.indicator",
|
|
90
|
-
source: "mutations.text#realtime-placement-indicator"
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
mutations: {
|
|
97
|
-
dependencies: {
|
|
98
|
-
runtime: {
|
|
99
|
-
"@jskit-ai/kernel": "0.1.147",
|
|
100
|
-
"@jskit-ai/shell-web": "0.1.149",
|
|
101
|
-
"@socket.io/redis-adapter": "^8.3.0",
|
|
102
|
-
"redis": "^5.8.2",
|
|
103
|
-
"socket.io": "^4.8.3",
|
|
104
|
-
"socket.io-client": "^4.8.3"
|
|
105
|
-
},
|
|
106
|
-
dev: {}
|
|
107
|
-
},
|
|
108
|
-
packageJson: {
|
|
109
|
-
scripts: {}
|
|
110
|
-
},
|
|
111
|
-
procfile: {},
|
|
112
|
-
files: [],
|
|
113
|
-
vite: {
|
|
114
|
-
proxy: [
|
|
115
|
-
{
|
|
116
|
-
id: "realtime-socket-io",
|
|
117
|
-
path: "/socket.io",
|
|
118
|
-
changeOrigin: true,
|
|
119
|
-
ws: true
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
text: [
|
|
124
|
-
{
|
|
125
|
-
file: ".env",
|
|
126
|
-
op: "upsert-env",
|
|
127
|
-
key: "REALTIME_REDIS_URL",
|
|
128
|
-
value: "${option:realtime-redis-url}",
|
|
129
|
-
reason: "Configure optional Redis backplane URL for realtime socket adapter.",
|
|
130
|
-
category: "runtime-config",
|
|
131
|
-
id: "realtime-redis-url"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
op: "append-text",
|
|
135
|
-
file: "src/placement.js",
|
|
136
|
-
position: "bottom",
|
|
137
|
-
skipIfContains: "id: \"realtime.connection.indicator\"",
|
|
138
|
-
value:
|
|
139
|
-
"\naddPlacement({\n id: \"realtime.connection.indicator\",\n target: \"shell.status\",\n kind: \"component\",\n surfaces: [\"*\"],\n order: 950,\n componentToken: \"realtime.web.connection.indicator\"\n});\n",
|
|
140
|
-
reason: "Append realtime connection indicator placement into app-owned placement registry.",
|
|
141
|
-
category: "realtime-web",
|
|
142
|
-
id: "realtime-placement-indicator"
|
|
143
|
-
}
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
});
|