feat: NodeRegistry mesh node discovery and OneDriveConnector#22
Open
KetchCyork wants to merge 1 commit into
Open
feat: NodeRegistry mesh node discovery and OneDriveConnector#22KetchCyork wants to merge 1 commit into
KetchCyork wants to merge 1 commit into
Conversation
…#16) - NodeRegistry: JSON-persisted mesh node store with register (idempotent), heartbeat, deregister (marks offline), remove (hard-delete), and findByCapability; re-registration by name updates in place, keeping the same ID - OneDriveConnector: Microsoft Graph API client (Files.Read scope) for listing folder items, fetching single items, and recursive file traversal; injectable mock fetch interface for unit testing without real credentials; does NOT auto-ingest — returns metadata only, callers must explicitly queue for human-approved indexing - Engine exposes all node registry operations as public methods - HTTP routes: POST /nodes/register, GET /nodes, GET/DELETE /nodes/:id, POST /nodes/:id/heartbeat, POST /nodes/:id/deregister, POST /connectors/onedrive/list - MCP tools: register_node, list_nodes, list_onedrive_files - Test suites: NodeRegistry (16 assertions), OneDrive (6 assertions with mock fetch) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
src/memory/node-registry.ts): JSON-persisted registry of mesh runner nodes. Idempotentregister()(matches by name, updates in place).heartbeat()marks online;deregister()marks offline;remove()hard-deletes.findByCapability()returns only online nodes.src/connectors/onedrive.ts): Microsoft Graph API client with injectableFetchFnfor testing.listItems(),getItem(),listFilesRecursive(). Returns raw metadata — no auto-indexing; callers must queue for human-approved ingestion (per CLAUDE.md hard rule).NodeRegistrywith 8 public methods.POST /nodes/register,GET /nodes,GET/DELETE /nodes/:id,POST /nodes/:id/heartbeat,POST /nodes/:id/deregister,POST /connectors/onedrive/listregister_node,list_nodes,list_onedrive_filesTest plan
npm run typecheckexits 0Closes #15
Closes #16
🤖 Generated with Claude Code