@hmharness/kernel 0.9.8 → 0.18.14
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/types.d.ts +16 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -122,6 +122,22 @@ export interface HmhConfig {
|
|
|
122
122
|
};
|
|
123
123
|
/** Named vendor endpoints for multi-provider routing. */
|
|
124
124
|
providers?: Record<string, ProviderConfig>;
|
|
125
|
+
/** Web UI exposure. Default loopback-only (zero remote attack surface).
|
|
126
|
+
* LAN/WAN listening REQUIRES a token: the approval endpoint is RCE by
|
|
127
|
+
* design, so any non-loopback bind without auth is a remote-code-execution
|
|
128
|
+
* hole, not a feature. */
|
|
129
|
+
web?: {
|
|
130
|
+
/** 'loopback' (default) | 'lan' | 'wan'. lan = bind 0.0.0.0, host-allowlist
|
|
131
|
+
* accepts private-range IPs; wan = same but host-allowlist is disabled
|
|
132
|
+
* (any Host/Origin header accepted) because WAN visitors arrive through
|
|
133
|
+
* NAT/frp/tailscale domains we cannot enumerate. Token is MANDATORY for
|
|
134
|
+
* both. */
|
|
135
|
+
exposure?: 'loopback' | 'lan' | 'wan';
|
|
136
|
+
/** Shared secret for non-loopback access. Sent as ?key= on first load,
|
|
137
|
+
* then via the X-Hmh-Key header (SSE cannot set custom headers, so the
|
|
138
|
+
* page keeps the key in sessionStorage and appends it to /api/events). */
|
|
139
|
+
token?: string;
|
|
140
|
+
};
|
|
125
141
|
/** Per-purpose provider names resolved against `providers`. */
|
|
126
142
|
routing?: {
|
|
127
143
|
/** main chat loop (default: `provider`) */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hmharness/kernel",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.14",
|
|
4
4
|
"description": "hmharness kernel: tool registry, provider adapters, the agent loop, session log, config. Zero runtime dependencies (Node >=22 native fetch).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|