@kb-labs/core-state-daemon 1.7.0 → 1.8.0

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.
@@ -0,0 +1,26 @@
1
+ import { ILogger } from '@kb-labs/core-platform';
2
+
3
+ interface StateDaemonConfig {
4
+ port?: number;
5
+ host?: string;
6
+ logger?: ILogger;
7
+ }
8
+ declare class StateDaemonServer {
9
+ private readonly config;
10
+ private readonly broker;
11
+ private readonly observability;
12
+ private readonly logger;
13
+ private server;
14
+ private isShuttingDown;
15
+ constructor(config?: StateDaemonConfig);
16
+ start(): Promise<void>;
17
+ stop(): Promise<void>;
18
+ private shutdown;
19
+ private getBrokerHealth;
20
+ private getBrokerStats;
21
+ private registerRoutes;
22
+ }
23
+
24
+ declare function bootstrap(cwd?: string): Promise<void>;
25
+
26
+ export { type StateDaemonConfig, StateDaemonServer, bootstrap };
@@ -0,0 +1,5 @@
1
+ import { ServiceManifest } from '@kb-labs/plugin-contracts';
2
+
3
+ declare const manifest: ServiceManifest;
4
+
5
+ export { manifest as default, manifest };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kb-labs/core-state-daemon",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "description": "State daemon server for persistent cross-invocation state",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -32,11 +32,12 @@
32
32
  "dependencies": {
33
33
  "@fastify/swagger": ">=9.5.1",
34
34
  "@fastify/swagger-ui": "^5.2.0",
35
- "@kb-labs/core-contracts": "^1.7.0",
36
- "@kb-labs/core-platform": "^1.7.0",
37
- "@kb-labs/core-runtime": "^1.7.0",
38
- "@kb-labs/core-state-broker": "^1.7.0",
39
- "@kb-labs/core-sys": "^1.7.0",
35
+ "@kb-labs/core-contracts": "^1.8.0",
36
+ "@kb-labs/core-platform": "^1.8.0",
37
+ "@kb-labs/core-runtime": "^1.8.0",
38
+ "@kb-labs/core-state-broker": "^1.8.0",
39
+ "@kb-labs/core-sys": "^1.8.0",
40
+ "@kb-labs/plugin-contracts": "^1.4.0",
40
41
  "@kb-labs/shared-http": "^1.4.0",
41
42
  "fastify": "^5.2.0",
42
43
  "fastify-type-provider-zod": "^6.0.0"