@capyclaw/service-host 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 +2 -2
- package/dsh-suite.json +2 -2
- package/package.json +52 -47
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @capyclaw/service-host
|
|
2
2
|
|
|
3
3
|
DSH 公共服务宿主插件。功能插件通过 `ctx.serviceHost` 获得统一的 HTTP 运行时,不必再为每个插件复制 relay/路由/健康/指标/锁/静态资源代码。
|
|
4
4
|
|
|
@@ -63,6 +63,6 @@ await host.listen({ port: 3080 })
|
|
|
63
63
|
|
|
64
64
|
## 边界
|
|
65
65
|
|
|
66
|
-
- 不拥有业务状态;状态用
|
|
66
|
+
- 不拥有业务状态;状态用 `@capyclaw/state-service`
|
|
67
67
|
- 不拥有资产;资产用 `dsh-asset-service`
|
|
68
68
|
- 不拥有编辑器;编辑器用 `dsh-editor-host`
|
package/dsh-suite.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
2
|
+
"$schema": "../@capyclaw/suite-kit/suite.schema.json",
|
|
3
3
|
"name": "dsh-service-host-suite",
|
|
4
4
|
"version": "0.1.0",
|
|
5
5
|
"title": "Service Host",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"packages": {
|
|
8
8
|
"@capyclaw/service-host": {
|
|
9
9
|
"role": "provider",
|
|
10
|
-
"version": "^0.1.
|
|
10
|
+
"version": "^0.1.2",
|
|
11
11
|
"path": ".",
|
|
12
12
|
"provides": {
|
|
13
13
|
"services": [
|
package/package.json
CHANGED
|
@@ -1,47 +1,52 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@capyclaw/service-host",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "DSH 公共服务宿主插件:统一 HTTP 路由、健康检查、指标、单实例锁、端口复用与静态资源,向插件提供 ctx.serviceHost。",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./lib/host.mjs",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": "./lib/host.mjs",
|
|
9
|
-
"./src": "./src/index.mjs",
|
|
10
|
-
"./package.json": "./package.json"
|
|
11
|
-
},
|
|
12
|
-
"engines": {
|
|
13
|
-
"node": ">=18",
|
|
14
|
-
"dsh": "^0.2.0-rc.2"
|
|
15
|
-
},
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"access": "public"
|
|
18
|
-
},
|
|
19
|
-
"dsh": {
|
|
20
|
-
"bundle": {
|
|
21
|
-
"patch": "./cordis.patch.yml"
|
|
22
|
-
},
|
|
23
|
-
"suite": "./dsh-suite.json",
|
|
24
|
-
"category": "service",
|
|
25
|
-
"platform": "both",
|
|
26
|
-
"apiVersion": "1.0.0"
|
|
27
|
-
},
|
|
28
|
-
"meta": {
|
|
29
|
-
"title": "公共服务宿主",
|
|
30
|
-
"description": "统一 HTTP 路由、健康检查、指标、单实例锁与端口复用,向插件提供 ctx.serviceHost"
|
|
31
|
-
},
|
|
32
|
-
"files": [
|
|
33
|
-
"lib/",
|
|
34
|
-
"src/",
|
|
35
|
-
"cordis.patch.yml",
|
|
36
|
-
"dsh-suite.json",
|
|
37
|
-
"README.md"
|
|
38
|
-
],
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@capyclaw/service-host",
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "DSH 公共服务宿主插件:统一 HTTP 路由、健康检查、指标、单实例锁、端口复用与静态资源,向插件提供 ctx.serviceHost。",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./lib/host.mjs",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/host.mjs",
|
|
9
|
+
"./src": "./src/index.mjs",
|
|
10
|
+
"./package.json": "./package.json"
|
|
11
|
+
},
|
|
12
|
+
"engines": {
|
|
13
|
+
"node": ">=18",
|
|
14
|
+
"dsh": "^0.2.0-rc.2"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"dsh": {
|
|
20
|
+
"bundle": {
|
|
21
|
+
"patch": "./cordis.patch.yml"
|
|
22
|
+
},
|
|
23
|
+
"suite": "./dsh-suite.json",
|
|
24
|
+
"category": "service",
|
|
25
|
+
"platform": "both",
|
|
26
|
+
"apiVersion": "1.0.0"
|
|
27
|
+
},
|
|
28
|
+
"meta": {
|
|
29
|
+
"title": "公共服务宿主",
|
|
30
|
+
"description": "统一 HTTP 路由、健康检查、指标、单实例锁与端口复用,向插件提供 ctx.serviceHost"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"lib/",
|
|
34
|
+
"src/",
|
|
35
|
+
"cordis.patch.yml",
|
|
36
|
+
"dsh-suite.json",
|
|
37
|
+
"README.md"
|
|
38
|
+
],
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@capyclaw/plugin-kit": "^0.2.0"
|
|
42
|
+
},
|
|
43
|
+
"repository": {
|
|
44
|
+
"type": "git",
|
|
45
|
+
"url": "git+https://github.com/Maple496/capyclaw.git",
|
|
46
|
+
"directory": "packages/capyclaw-service-host"
|
|
47
|
+
},
|
|
48
|
+
"bugs": {
|
|
49
|
+
"url": "https://github.com/Maple496/capyclaw/issues"
|
|
50
|
+
},
|
|
51
|
+
"homepage": "https://github.com/Maple496/capyclaw/tree/main/packages/capyclaw-service-host#readme"
|
|
52
|
+
}
|