@kb-labs/core-state-daemon 1.6.0 → 1.7.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.
- package/dist/manifest.js +22 -0
- package/dist/manifest.js.map +1 -0
- package/package.json +7 -7
- package/dist/index.d.ts +0 -26
package/dist/manifest.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// src/manifest.ts
|
|
2
|
+
var manifest = {
|
|
3
|
+
schema: "kb.service/1",
|
|
4
|
+
id: "state-daemon",
|
|
5
|
+
name: "State Daemon",
|
|
6
|
+
version: "1.4.0",
|
|
7
|
+
description: "Distributed state management (State Broker HTTP server)",
|
|
8
|
+
runtime: {
|
|
9
|
+
entry: "dist/bin.cjs",
|
|
10
|
+
port: 7777,
|
|
11
|
+
healthCheck: "/health"
|
|
12
|
+
},
|
|
13
|
+
env: {
|
|
14
|
+
PORT: { description: "HTTP port", default: "7777" },
|
|
15
|
+
NODE_ENV: { description: "Environment mode", default: "development" }
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
var manifest_default = manifest;
|
|
19
|
+
|
|
20
|
+
export { manifest_default as default, manifest };
|
|
21
|
+
//# sourceMappingURL=manifest.js.map
|
|
22
|
+
//# sourceMappingURL=manifest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/manifest.ts"],"names":[],"mappings":";AAEO,IAAM,QAAA,GAA4B;AAAA,EACvC,MAAA,EAAQ,cAAA;AAAA,EACR,EAAA,EAAI,cAAA;AAAA,EACJ,IAAA,EAAM,cAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,WAAA,EAAa,yDAAA;AAAA,EACb,OAAA,EAAS;AAAA,IACP,KAAA,EAAO,cAAA;AAAA,IACP,IAAA,EAAM,IAAA;AAAA,IACN,WAAA,EAAa;AAAA,GACf;AAAA,EACA,GAAA,EAAK;AAAA,IACH,IAAA,EAAM,EAAE,WAAA,EAAa,WAAA,EAAa,SAAS,MAAA,EAAO;AAAA,IAClD,QAAA,EAAU,EAAE,WAAA,EAAa,kBAAA,EAAoB,SAAS,aAAA;AAAc;AAExE;AAEA,IAAO,gBAAA,GAAQ","file":"manifest.js","sourcesContent":["import type { ServiceManifest } from '@kb-labs/plugin-contracts';\n\nexport const manifest: ServiceManifest = {\n schema: 'kb.service/1',\n id: 'state-daemon',\n name: 'State Daemon',\n version: '1.4.0',\n description: 'Distributed state management (State Broker HTTP server)',\n runtime: {\n entry: 'dist/bin.cjs',\n port: 7777,\n healthCheck: '/health',\n },\n env: {\n PORT: { description: 'HTTP port', default: '7777' },\n NODE_ENV: { description: 'Environment mode', default: 'development' },\n },\n};\n\nexport default manifest;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kb-labs/core-state-daemon",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "State daemon server for persistent cross-invocation state",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -32,12 +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.
|
|
36
|
-
"@kb-labs/core-platform": "^1.
|
|
37
|
-
"@kb-labs/core-runtime": "^1.
|
|
38
|
-
"@kb-labs/core-state-broker": "^1.
|
|
39
|
-
"@kb-labs/core-sys": "^1.
|
|
40
|
-
"@kb-labs/shared-http": "^1.
|
|
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",
|
|
40
|
+
"@kb-labs/shared-http": "^1.4.0",
|
|
41
41
|
"fastify": "^5.2.0",
|
|
42
42
|
"fastify-type-provider-zod": "^6.0.0"
|
|
43
43
|
},
|
package/dist/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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 };
|