fix(daemon): forward snapshot entries and map workspace errors
- Preserve the snapshot entries tail in the cache and WS frames (cold,
cached and bus paths), so the browser receives {state, entries}.
- Await a plugin snapshot on the first subscribe of a fresh session.
- Return E_FORBIDDEN (403) for workspace paths outside PI2_WORKSPACE_ROOTS.
- Mint cli.token only after the singleton lock is held, so a second daemon
cannot invalidate the running one.
- Add hostname/os/version/uptimeMs/pid/port to /api/v1/info and make
/health reflect instance, workspace and auth state.
This commit is contained in:
1 parent
31f36302bd
commit
5572ac0d84
15 files changed
+661
-22
No files matched your search
@@ -39,6 +39,7 @@ export interface HarnessOptions {
|
||||
wsOverrides?: {
|
||||
maxBufferedBytes?: number;
|
||||
closeBufferedBytes?: number;
|
||||
snapshotWaitMs?: number;
|
||||
measureBufferedAmount?: (socket: unknown) => number;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user