diff options
| author | Christophe Besson <cbesson@gmail.com> | 2026-10-15 01:21:52 +0200 |
|---|---|---|
| committer | Christophe Besson <cbesson@gmail.com> | 2026-10-15 01:21:52 +0200 |
| commit | ced66b96f898abccec2526650ab356eb6b82f066 (patch) | |
| tree | 168eaa6b9b1b2fc9c9a1d932aa6573c0d01e974d /packages/meshbay-cli/tests/fake_node.py | |
| parent | 382fcc5f675f9942350013780335315757c245c5 (diff) | |
| download | meshbay-ced66b96f898abccec2526650ab356eb6b82f066.tar.gz | |
feat(cli): search across groups
search dials every group through the pool and matches each index here, on
the Search page's fields (name, folder, title, artist, album), every word
required. A group left out of Search by its operator (search_listed in the
sealed ack) is skipped before its index is asked for. A file several groups
hold is one result, keyed by its content hash, printed from the reader's own
node first, as a path get takes. A group that cannot be searched is named
and the others go on; one waiting for this machine's approval names its code
instead of holding everything up.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'packages/meshbay-cli/tests/fake_node.py')
| -rw-r--r-- | packages/meshbay-cli/tests/fake_node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/meshbay-cli/tests/fake_node.py b/packages/meshbay-cli/tests/fake_node.py index 46ad68e..73d6f72 100644 --- a/packages/meshbay-cli/tests/fake_node.py +++ b/packages/meshbay-cli/tests/fake_node.py @@ -59,6 +59,7 @@ class FakeNode: "pinned_via": "code"}] self.requests: list[dict] = [] self.role = "" # "operator": this key was paired here + self.ack: dict = {} # the sealed configuration, opened self.admin_ops: dict[str, dict] = {} def add(self, path: str, name: str, data: bytes, uploader_id: str = "") -> dict: @@ -74,7 +75,7 @@ class FakeNode: def session(self) -> GroupSession: return GroupSession(None, FakeChannel(self), GROUP_ID, "node-1", NODE_PK, self.gek, - {}, self.identity, self.nonce, self.role) + dict(self.ack), self.identity, self.nonce, self.role) def request_device(self, code: str) -> Identity: """Another machine files a request with `code`, as it would before its proof.""" |