Features: BV Text node with management-gated writing assistance (translate, improve, undo, prompt profiles); reuse of prepared MODEL/CLIP state for Krea 2 and Anima LLLite consumers; Regional refactoring. Security boundaries: one wall-clock budget per Remote LLM request enforced by a socket-closing watchdog across connect, TLS handshake, headers, chunk framing and body; writing assistance uses the profile's configured timeout; a shared bounded JSON reader with route-specific limits on every JSON route; endpoint binding negative tests for the assist path. Release and packaging: SECURITY.md; bundled-library notices and a readable bundle header; Registry scan replica as a hard test with a pinned count; a packaged-file-set test; publish only from a validated push to main with provenance checks, pinned comfy-cli, an input manifest and a byte-exact comparison of the stored archive; npm audit and a whole js/ rebuild gate in Validate; design references, brand sources and a type declaration excluded from the package. README and changelog for 1.4.4. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
25 lines
1.2 KiB
JavaScript
25 lines
1.2 KiB
JavaScript
import assert from 'node:assert/strict';
|
|
import test from 'node:test';
|
|
import {PopoverScope} from '../ui/src/ui/components/popoverScope.ts';
|
|
|
|
test('portalled dropdown belongs to its settings popover before option click',()=>{
|
|
const parent=new PopoverScope(),child=new PopoverScope(parent),grandchild=new PopoverScope(child);
|
|
const panel={},option={},deep={};
|
|
const remove=child.register(panel),removeDeep=grandchild.register(deep);
|
|
const parentPanel={};parent.register(parentPanel);
|
|
assert.equal(child.contains([parentPanel]),false);
|
|
assert.equal(parent.contains([parentPanel]),true);
|
|
assert.equal(parent.contains([option,panel]),true);
|
|
assert.equal(child.contains([option,panel]),true);
|
|
assert.equal(parent.contains([deep]),true);
|
|
assert.equal(parent.contains([{}]),false);
|
|
assert.equal(new PopoverScope().contains([panel]),false);
|
|
assert.equal(new PopoverScope(parent).contains([panel]),false);
|
|
remove();removeDeep();
|
|
assert.equal(parent.contains([panel,deep]),false);
|
|
const reopened={};const closeAgain=child.register(reopened);
|
|
assert.equal(parent.contains([reopened]),true);
|
|
assert.equal(parent.contains([panel]),false);
|
|
closeAgain();assert.equal(parent.contains([reopened]),false);
|
|
});
|