mirror of
https://ghproxy.cflmy.top/https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-29 00:30:04 +08:00
* fix(typert): accept plain JSON values from any realm An isolated Client plugin builds its values in an iframe, so they inherit that realm's Array.prototype and Object.prototype, and the identity checks in the Remote JSON validation and the Gateway's record checks rejected them. dsh-util-values exports hasPlainPrototype, which matches this realm's intrinsics by identity and another realm's through their native constructors. isRemoteJsonValue and the Gateway's event-frame and event-request record checks use it. Objects and arrays that inherit any other prototype stay rejected, so an inherited toJSON cannot rewrite a validated value. * fix(client-store): compare Maps and Sets from any realm in shallowEqual shallowEqual delegated to zustand/shallow, which recognizes collections with instanceof Map and instanceof Set. A selector in a script-isolated plugin returns collections built by its iframe realm, so both checks failed and two Maps fell through to an Object.keys comparison, where any two Maps are equal. ui-workflow-run selects its running members as a Map, so under isolation its "Open ..." member buttons never appeared. shallowEqual now recognizes Maps and Sets by their Object.prototype.toString tag and otherwise keeps the one-level semantics: Object.is for scalars and values, Set membership, and own enumerable string keys for other objects and arrays. A Map comparison also requires each key to exist in the other Map, so new Map([["a", undefined]]) no longer equals new Map([["b", undefined]]). zustand remains a development dependency for createStore and subscribeWithSelector. * fix(ui-sidebar): ease the sidebar width from its layout owner props ui-sidebar eased its width under `[data-animating]:not([data-dragging])`, attributes of ui-layout's frame. With ui-sidebar's styles isolated that ancestor lies outside its scope, so collapse and expand lost the easing. ui-layout now passes the same state through `SidebarOwnerProps.animating`, true while the frame eases its tracks and false during a resize drag or a viewport change. The sidebar marks its own root `data-sidebar-animating` and keeps the width transition there, after the quiet-scrollbar transition it replaces, and reduced motion still turns it off. * fix(ui-chat): style only Chat's own DOM inside the Conversation scrollport ui-chat laid out its frame, scroller, aside layer, back-to-bottom control, and turn rail under `:global([data-conversation-scroll]) .x`, and set `overscroll-behavior-y` and `overflow-anchor` on ui-conversation's scrollport through `[data-conversation-scroll]:has(.root)`. With ui-chat's styles isolated, neither form matched, so Chat scrolled itself inside the shared scrollport and lost its anchoring, back-to-bottom position, and floating controls. Chat's rules now test the scrollport in `:is()` on its own compounds, `.frame:is(:global([data-conversation-scroll]) *)`, with unchanged specificity. The scrollport rules move to their owner: ui-conversation reads `data-conversation-overscroll="none"` and `data-conversation-scroll-anchor="none"` from an element a View marks inside the scrollport, and Chat marks its root with them, the second only while it follows the tail. * fix(ui-sidebar-documentpreview): hide the body a filling navigator covers ui-sidebar-files hid the body of any row marked `data-files-navigator-row` while its navigator Factory filled the row. The document preview's content row is documentpreview's DOM, so with ui-sidebar-files' styles isolated the covered preview stayed visible and reachable by Tab. The preview's own stylesheet now holds those rules on its `.content` row, reading the navigator's `data-files-navigator-mode` through the row's `:has()`, so the preview hides its body itself in both modes. The files page row never had a covered sibling, so ui-sidebar-files drops the rules and the `data-files-navigator-row` mark, and its README and Factory documentation state that the host hides the covered content. * chore(workflow-ptc): regenerate the workflow guest for the util-values prototype checks The guest bundles packages/util/values; its same-realm Object.prototype and Array.prototype fast paths changed the generated source.