Color legend used across diagrams:
- Blue:
core/platform/mcp/ - Purple:
flat/tools/mcp/ - Green: other
flat/ - Yellow: knowledge-search / MCP knowledge-indexing code
- Gray: external systems or non-MCP infrastructure
The Brain System is an intelligent event-driven personal assistant that processes incoming messages and automatically performs appropriate actions based on the content. It serves as a central coordinator for managing tasks, todos, calendar events, and various lists through AI-powered analysis of text messages, document updates, and other input sources.
The system operates on an event-driven architecture where incoming messages trigger specialized "brains" that analyze the content and determine whether to take actions like:
The isSelected method is defined as an instance method on the LexicalNode class (in packages/lexical/src/LexicalNode.ts). Its purpose is to determine whether "this" node is included in a given selection (or—if no selection is provided—the current selection returned by $getSelection()). In other words, it tells you whether that node is "selected" by comparing its own unique key with the list of node keys that make up the selection.
When isSelected is called, it does the following:
| export class HttpTool { | |
| constructor(readonly name: string) {} | |
| url() { | |
| const n = this.name.toLowerCase().replace("/", "-"); | |
| return `https://${n}.web.val.run`; | |
| } | |
| async call(ops: any): Promise<string> { | |
| const url = this.url(); |
| <!DOCTYPE html> | |
| <!-- saved from url=(0052)https://www.espn.com/nba/boxscore/_/gameId/401585418 --> | |
| <html lang="en" data-react-helmet="lang"> | |
| <head class="at-element-marker"> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <script | |
| async="" | |
| src="./Grizzlies 113-110 Bucks (Feb 15, 2024) Box Score - ESPN_files/P31187EE2-AC6E-46CB-BB54-D07591BED067.js" | |
| ></script> |
| from textual.app import App | |
| from textual.reactive import reactive | |
| from textual.widget import Widget | |
| from textual.widgets import Footer, Header, Input, Label, ListItem, ListView, Static | |
| """ | |
| My naive expectation was that, when I update Numbers#term, the ListView would | |
| re-render. But it doesn't. | |
| I am almost positive I understand why. If term was used in a render method, it would smart refresh. |
| { | |
| "components": { | |
| "parameters": { | |
| "owner": { | |
| "name": "owner", | |
| "description": "The account owner of the repository. The name is not case sensitive.", | |
| "in": "path", | |
| "required": true, | |
| "schema": { | |
| "type": "string" |
| export const NUM_BOARDS = 16; | |
| export const NUM_GUESSES = 21; | |
| export const START_DATE = (() => { | |
| // Use this method so that the start date is offset by current timezone offset | |
| // Old method had problems with the start date being before DST | |
| const utcDate = new Date("2022-02-14T00:00:00Z").getTime(); | |
| const offset = new Date().getTimezoneOffset(); | |
| return new Date(utcDate + offset * 60 * 1000); |
Generated from CodeTour
| { | |
| "openapi": "3.0.1", | |
| "info": { | |
| "title": "API for modeling Orgs, Projects, and Users", | |
| "description": "", | |
| "version": "0.0.1" | |
| }, | |
| "servers": [ | |
| { | |
| "url": "https://api.liveramp.com/orgs" |