@jini-ai/server 0.6.16 → 0.6.19
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/CHANGELOG.md +10 -0
- package/dist/create-local-node-daemon.js +3 -1
- package/dist/host-bootstrap.d.ts +0 -9
- package/dist/host-bootstrap.js +12 -1
- package/package.json +17 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { inspect } from 'node:util';
|
|
2
|
+
import { redactSecrets } from '@jini-ai/core';
|
|
1
3
|
/**
|
|
2
4
|
* @module create-local-node-daemon
|
|
3
5
|
*
|
|
@@ -173,7 +175,7 @@ export async function createLocalNodeDaemon(config) {
|
|
|
173
175
|
// rejection stays on `stopPromise`, so an explicit `stop()` caller still observes it.
|
|
174
176
|
void stop().catch((error) => {
|
|
175
177
|
// eslint-disable-next-line no-console
|
|
176
|
-
console.error('[@jini-ai/server] shutdown requested through POST /api/daemon/shutdown failed', error);
|
|
178
|
+
console.error('[@jini-ai/server] shutdown requested through POST /api/daemon/shutdown failed', redactSecrets({ input: inspect(error) }, { redactPii: false }));
|
|
177
179
|
});
|
|
178
180
|
},
|
|
179
181
|
}),
|
package/dist/host-bootstrap.d.ts
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module host-bootstrap
|
|
3
|
-
*
|
|
4
|
-
* Generic host-lifecycle primitives ported from an origin daemon's CLI-startup module — see
|
|
5
|
-
* `archived provenance ledger`. Only the two functions with no CLI-flag-parsing or env-var-reading inside their
|
|
6
|
-
* own bodies are ported here: `parseDaemonCliStartupArgs` (argv/env parsing for a `od <cmd>`-style
|
|
7
|
-
* CLI) and the higher-level `startDaemonRuntime`/`runDaemonCliStartup` wrappers belong to a future
|
|
8
|
-
* `@jini-ai/cli` task, not this one — this module is deliberately CLI-shape-agnostic.
|
|
9
|
-
*/
|
|
10
1
|
import type { Server } from 'node:http';
|
|
11
2
|
export declare const DEFAULT_DAEMON_BIND_HOST = "127.0.0.1";
|
|
12
3
|
/**
|
package/dist/host-bootstrap.js
CHANGED
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module host-bootstrap
|
|
3
|
+
*
|
|
4
|
+
* Generic host-lifecycle primitives ported from an origin daemon's CLI-startup module — see
|
|
5
|
+
* `archived provenance ledger`. Only the two functions with no CLI-flag-parsing or env-var-reading inside their
|
|
6
|
+
* own bodies are ported here: `parseDaemonCliStartupArgs` (argv/env parsing for a `od <cmd>`-style
|
|
7
|
+
* CLI) and the higher-level `startDaemonRuntime`/`runDaemonCliStartup` wrappers belong to a future
|
|
8
|
+
* `@jini-ai/cli` task, not this one — this module is deliberately CLI-shape-agnostic.
|
|
9
|
+
*/
|
|
10
|
+
import { inspect } from 'node:util';
|
|
11
|
+
import { redactSecrets } from '@jini-ai/core';
|
|
1
12
|
export const DEFAULT_DAEMON_BIND_HOST = '127.0.0.1';
|
|
2
13
|
/**
|
|
3
14
|
* Trims `input` to a usable bind-host string, falling back to the loopback default for
|
|
@@ -115,7 +126,7 @@ export function installGracefulShutdown({ stop }, options = {}) {
|
|
|
115
126
|
void stop()
|
|
116
127
|
.catch((error) => {
|
|
117
128
|
// eslint-disable-next-line no-console
|
|
118
|
-
logger.error(`[@jini-ai/server] graceful shutdown failed after ${signal}`, error);
|
|
129
|
+
logger.error(`[@jini-ai/server] graceful shutdown failed after ${signal}`, redactSecrets({ input: inspect(error) }, { redactPii: false }));
|
|
119
130
|
// Re-thrown so the `.finally` below still distinguishes success from failure via rejection
|
|
120
131
|
// state rather than a second flag.
|
|
121
132
|
throw error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/server",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.19",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -77,24 +77,24 @@
|
|
|
77
77
|
"better-sqlite3": "^13.0.0",
|
|
78
78
|
"express": "^4.21.0",
|
|
79
79
|
"kysely": "^0.29.6",
|
|
80
|
-
"@jini-ai/agent-runtime": "0.6.
|
|
81
|
-
"@jini-ai/core": "0.6.
|
|
82
|
-
"@jini-ai/
|
|
83
|
-
"@jini-ai/http-kit": "0.6.
|
|
84
|
-
"@jini-ai/db": "0.6.
|
|
85
|
-
"@jini-ai/
|
|
86
|
-
"@jini-ai/
|
|
87
|
-
"@jini-ai/
|
|
88
|
-
"@jini-ai/
|
|
80
|
+
"@jini-ai/agent-runtime": "0.6.19",
|
|
81
|
+
"@jini-ai/core": "0.6.19",
|
|
82
|
+
"@jini-ai/daemon": "0.6.19",
|
|
83
|
+
"@jini-ai/http-kit": "0.6.19",
|
|
84
|
+
"@jini-ai/db": "0.6.19",
|
|
85
|
+
"@jini-ai/sidecar": "0.6.19",
|
|
86
|
+
"@jini-ai/chat": "0.6.19",
|
|
87
|
+
"@jini-ai/registry": "0.6.19",
|
|
88
|
+
"@jini-ai/platform": "0.6.19"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@jini-ai/core": "^0.6.
|
|
92
|
-
"@jini-ai/
|
|
93
|
-
"@jini-ai/
|
|
94
|
-
"@jini-ai/
|
|
95
|
-
"@jini-ai/
|
|
96
|
-
"@jini-ai/
|
|
97
|
-
"@jini-ai/sidecar": "^0.6.
|
|
91
|
+
"@jini-ai/core": "^0.6.19",
|
|
92
|
+
"@jini-ai/agent-runtime": "^0.6.19",
|
|
93
|
+
"@jini-ai/daemon": "^0.6.19",
|
|
94
|
+
"@jini-ai/db": "^0.6.19",
|
|
95
|
+
"@jini-ai/http-kit": "^0.6.19",
|
|
96
|
+
"@jini-ai/registry": "^0.6.19",
|
|
97
|
+
"@jini-ai/sidecar": "^0.6.19"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
100
|
"better-sqlite3": "^13.0.0",
|