@nextclaw/server 0.10.0 → 0.10.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/dist/index.d.ts CHANGED
@@ -283,6 +283,26 @@ type MarketplaceApiConfig = {
283
283
  installer?: MarketplaceInstaller;
284
284
  };
285
285
 
286
+ type ChatSessionTypeCtaView = {
287
+ kind: string;
288
+ label?: string;
289
+ href?: string;
290
+ };
291
+ type ChatSessionTypeOptionView = {
292
+ value: string;
293
+ label: string;
294
+ ready?: boolean;
295
+ reason?: string | null;
296
+ reasonMessage?: string | null;
297
+ supportedModels?: string[];
298
+ recommendedModel?: string | null;
299
+ cta?: ChatSessionTypeCtaView | null;
300
+ };
301
+ type ChatSessionTypesView = {
302
+ defaultType: string;
303
+ options: ChatSessionTypeOptionView[];
304
+ };
305
+
286
306
  type ApiError = {
287
307
  code: string;
288
308
  message: string;
@@ -462,6 +482,7 @@ type SessionConfigView = {
462
482
  maxPingPongTurns?: number;
463
483
  };
464
484
  };
485
+
465
486
  type SessionEntryView = {
466
487
  key: string;
467
488
  createdAt: string;
@@ -658,25 +679,6 @@ type ChatCapabilitiesView = {
658
679
  stopSupported: boolean;
659
680
  stopReason?: string;
660
681
  };
661
- type ChatSessionTypeCtaView = {
662
- kind: string;
663
- label?: string;
664
- href?: string;
665
- };
666
- type ChatSessionTypeOptionView = {
667
- value: string;
668
- label: string;
669
- ready?: boolean;
670
- reason?: string | null;
671
- reasonMessage?: string | null;
672
- supportedModels?: string[];
673
- recommendedModel?: string | null;
674
- cta?: ChatSessionTypeCtaView | null;
675
- };
676
- type ChatSessionTypesView = {
677
- defaultType: string;
678
- options: ChatSessionTypeOptionView[];
679
- };
680
682
  type ChatCommandOptionView = {
681
683
  name: string;
682
684
  description: string;
package/dist/index.js CHANGED
@@ -4917,6 +4917,15 @@ var SessionRoutesController = class {
4917
4917
  };
4918
4918
 
4919
4919
  // src/ui/router.ts
4920
+ function registerAuthRoutes(app, authController) {
4921
+ app.get("/api/auth/status", authController.getStatus);
4922
+ app.post("/api/auth/setup", authController.setup);
4923
+ app.post("/api/auth/login", authController.login);
4924
+ app.post("/api/auth/logout", authController.logout);
4925
+ app.put("/api/auth/password", authController.updatePassword);
4926
+ app.put("/api/auth/enabled", authController.updateEnabled);
4927
+ app.post("/api/auth/bridge", authController.issueBridgeSession);
4928
+ }
4920
4929
  function createUiRouter(options) {
4921
4930
  const app = new Hono();
4922
4931
  const marketplaceBaseUrl = normalizeMarketplaceBaseUrl(options);
@@ -4947,13 +4956,7 @@ function createUiRouter(options) {
4947
4956
  });
4948
4957
  app.get("/api/health", appController.health);
4949
4958
  app.get("/api/app/meta", appController.appMeta);
4950
- app.get("/api/auth/status", authController.getStatus);
4951
- app.post("/api/auth/setup", authController.setup);
4952
- app.post("/api/auth/login", authController.login);
4953
- app.post("/api/auth/logout", authController.logout);
4954
- app.put("/api/auth/password", authController.updatePassword);
4955
- app.put("/api/auth/enabled", authController.updateEnabled);
4956
- app.post("/api/auth/bridge", authController.issueBridgeSession);
4959
+ registerAuthRoutes(app, authController);
4957
4960
  app.get("/api/config", configController.getConfig);
4958
4961
  app.get("/api/config/meta", configController.getConfigMeta);
4959
4962
  app.get("/api/config/schema", configController.getConfigSchema);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",
@@ -18,12 +18,12 @@
18
18
  "@hono/node-server": "^1.13.3",
19
19
  "hono": "^4.6.2",
20
20
  "ws": "^8.18.0",
21
- "@nextclaw/core": "0.9.2",
22
- "@nextclaw/ncp-http-agent-server": "0.3.1",
23
- "@nextclaw/mcp": "0.1.1",
21
+ "@nextclaw/mcp": "0.1.2",
24
22
  "@nextclaw/ncp": "0.3.1",
25
- "@nextclaw/openclaw-compat": "0.3.5",
26
- "@nextclaw/runtime": "0.2.2"
23
+ "@nextclaw/ncp-http-agent-server": "0.3.1",
24
+ "@nextclaw/openclaw-compat": "0.3.6",
25
+ "@nextclaw/core": "0.9.3",
26
+ "@nextclaw/runtime": "0.2.3"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/node": "^20.17.6",