Fix Story 1.3: StateStore spec compliance and minor cleanup

Critical Fix:
- StateStore now uses global Hooks.callAll directly (per spec)
- Removed hooks parameter from StateStore constructor
- Updated module.js to pass only adapter.settings
- Updated tests to stub globalThis.Hooks

Minor Cleanup:
- Fixed misleading warning in SocketHandler.registerPendingOp
- Added clarifying comment for setMatrix _revision behavior

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
2026-05-22 11:38:45 +02:00
parent 110b295a7b
commit 5ba7717ecd
17 changed files with 2391 additions and 55 deletions
+8
View File
@@ -10,3 +10,11 @@ declare const Hooks: {
call(event: string, ...args: unknown[]): boolean;
callAll(event: string, ...args: unknown[]): boolean;
};
declare const ui: {
notifications?: {
info(msg: string): void;
warn(msg: string): void;
error(msg: string): void;
};
};