@nextclaw/server 0.6.11 → 0.6.12
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/dist/index.js +12 -1
- package/package.json +2 -6
package/dist/index.js
CHANGED
|
@@ -3142,7 +3142,18 @@ function createUiRouter(options) {
|
|
|
3142
3142
|
const app = new Hono();
|
|
3143
3143
|
const marketplaceBaseUrl = normalizeMarketplaceBaseUrl(options);
|
|
3144
3144
|
app.notFound((c) => c.json(err("NOT_FOUND", "endpoint not found"), 404));
|
|
3145
|
-
app.get(
|
|
3145
|
+
app.get(
|
|
3146
|
+
"/api/health",
|
|
3147
|
+
(c) => c.json(
|
|
3148
|
+
ok({
|
|
3149
|
+
status: "ok",
|
|
3150
|
+
services: {
|
|
3151
|
+
chatRuntime: options.chatRuntime ? "ready" : "unavailable",
|
|
3152
|
+
cronService: options.cronService ? "ready" : "unavailable"
|
|
3153
|
+
}
|
|
3154
|
+
})
|
|
3155
|
+
)
|
|
3156
|
+
);
|
|
3146
3157
|
app.get("/api/app/meta", (c) => c.json(ok(buildAppMetaView(options))));
|
|
3147
3158
|
app.get("/api/config", (c) => {
|
|
3148
3159
|
const config = loadConfigOrDefault(options.configPath);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextclaw/server",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Nextclaw UI/API server.",
|
|
6
6
|
"type": "module",
|
|
@@ -18,17 +18,13 @@
|
|
|
18
18
|
"@hono/node-server": "^1.13.3",
|
|
19
19
|
"hono": "^4.6.2",
|
|
20
20
|
"ws": "^8.18.0",
|
|
21
|
-
"@nextclaw/core": "0.7.7",
|
|
22
21
|
"@nextclaw/openclaw-compat": "0.2.6",
|
|
22
|
+
"@nextclaw/core": "0.7.7",
|
|
23
23
|
"@nextclaw/runtime": "0.1.6"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^20.17.6",
|
|
27
27
|
"@types/ws": "^8.5.14",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
29
|
-
"@typescript-eslint/parser": "^7.18.0",
|
|
30
|
-
"eslint": "^8.57.1",
|
|
31
|
-
"eslint-config-prettier": "^9.1.0",
|
|
32
28
|
"prettier": "^3.3.3",
|
|
33
29
|
"tsup": "^8.3.5",
|
|
34
30
|
"tsx": "^4.19.2",
|