Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benjitaylor/agentation
/ functions
Functions
617 in github.com/benjitaylor/agentation
⨍
Functions
617
◇
Types & classes
36
↓ 2 callers
Function
generateOutput
( annotations: Annotation[], pathname: string, detailLevel: OutputDetailLevel = "standard", )
package/src/utils/generate-output.ts:27
↓ 2 callers
Function
generateRearrangeOutput
( state: RearrangeState, detailLevel: OutputDetailLevel = "standard", viewport?: ViewportSize, )
package/src/components/design-mode/output.ts:254
↓ 2 callers
Function
getAnnotation
(id: string)
mcp/src/server/store.ts:152
↓ 2 callers
Function
getCleanClassName
* Get the first meaningful class name (strip CSS module hashes).
package/src/components/design-mode/section-detection.ts:133
↓ 2 callers
Function
getDbPath
()
mcp/src/server/sqlite.ts:33
↓ 2 callers
Function
getDomCapture
()
package/src/utils/screenshot.ts:16
↓ 2 callers
Function
getElementPosition
(ref: React.RefObject<HTMLElement | null>, preferBelow = false)
package/example/src/app/components/FeaturesDemo.tsx:1646
↓ 2 callers
Function
getFiberFromElement
(element: HTMLElement)
package/src/utils/source-location.ts:210
↓ 2 callers
Function
getPageLayout
(viewport: { width: number; height: number })
package/src/components/design-mode/spatial.ts:606
↓ 2 callers
Function
getSession
( endpoint: string, sessionId: string )
package/src/utils/sync.ts:46
↓ 2 callers
Method
getSessionForUser
(userId: string, sessionId: string)
mcp/src/server/sqlite.ts:592
↓ 2 callers
Function
getTextSnippet
* Get first ~30 chars of visible text content (for forensic output).
package/src/components/design-mode/section-detection.ts:148
↓ 2 callers
Function
getTooltipPosition
(annotation: Annotation)
package/src/components/page-toolbar-css/index.tsx:3521
↓ 2 callers
Function
handleTool
(name: string, args: unknown)
mcp/src/server/mcp.ts:525
↓ 2 callers
Function
hasChanged
(s: DetectedSection)
package/src/components/design-mode/rearrange.tsx:726
↓ 2 callers
Function
initDatabase
(db: Database.Database)
mcp/src/server/sqlite.ts:41
↓ 2 callers
Function
isEffectivelyFixed
* Check if an element is effectively fixed to the viewport. * Walks up the DOM tree — if any ancestor is fixed or sticky, * the element doesn't sc
package/src/components/design-mode/section-detection.ts:44
↓ 2 callers
Function
isMoved
(s: DetectedSection)
package/src/components/design-mode/rearrange.tsx:731
↓ 2 callers
Function
isResized
(s: DetectedSection)
package/src/components/design-mode/rearrange.tsx:736
↓ 2 callers
Function
pickTarget
* Pick a reasonable capture target from any element. Walk up only to skip * tiny inline elements (span, em, strong, etc.) — otherwise take whatever
package/src/components/design-mode/rearrange.tsx:103
↓ 2 callers
Function
resetState
()
package/example/src/app/components/HeroDemo.tsx:150
↓ 2 callers
Function
rowToUser
(row: Record<string, unknown>)
mcp/src/server/sqlite.ts:171
↓ 2 callers
Function
run
()
package/example/src/app/components/FeaturesDemo.tsx:2581
↓ 2 callers
Function
saveWireframeState
(pathname: string, state: { rearrange: unknown; placements: unknown[]; purpose: string })
package/src/utils/storage.ts:227
↓ 2 callers
Method
setSequence
* Set sequence from persisted state (for server restart).
mcp/src/server/events.ts:98
↓ 2 callers
Function
siblingCandidates
(rects: "original" | "current")
package/src/components/design-mode/output.ts:308
↓ 2 callers
Function
startAnimation
()
package/example/src/app/components/HeroDemo.tsx:549
↓ 2 callers
Function
startHttpServer
(port: number, apiKey?: string)
mcp/src/server/http.ts:929
↓ 2 callers
Function
startMcpServer
(baseUrl?: string)
mcp/src/server/mcp.ts:702
↓ 1 callers
Function
addAnnotation
( sessionId: string, data: Omit<Annotation, "id" | "sessionId" | "status" | "createdAt"> )
mcp/src/server/store.ts:129
↓ 1 callers
Method
addAnnotation
( sessionId: string, data: Omit<Annotation, "id" | "sessionId" | "status" | "createdAt"> )
mcp/src/types.ts:185
↓ 1 callers
Function
addThreadMessage
( annotationId: string, role: "human" | "agent", content: string )
mcp/src/server/store.ts:197
↓ 1 callers
Method
addThreadMessage
( annotationId: string, role: "human" | "agent", content: string )
mcp/src/types.ts:199
↓ 1 callers
Function
analyzeLayoutPatterns
( sections: { label: string; originalRect: SectionRect; currentRect: SectionRect }[], )
package/src/components/design-mode/spatial.ts:489
↓ 1 callers
Function
animateIn
()
package/example/src/app/components/CodeBlock.tsx:79
↓ 1 callers
Function
animateIn
()
package/example/src/app/install/page.tsx:81
↓ 1 callers
Function
animateOut
()
package/example/src/app/components/CodeBlock.tsx:97
↓ 1 callers
Function
animateOut
()
package/example/src/app/install/page.tsx:95
↓ 1 callers
Function
captureElement
(el: HTMLElement)
package/src/components/design-mode/section-detection.ts:232
↓ 1 callers
Function
checkHealth
()
package/src/components/page-toolbar-css/index.tsx:960
↓ 1 callers
Function
checkMobile
()
package/example/src/app/ToolbarProvider.tsx:10
↓ 1 callers
Function
cleanSourcePath
* Strip bundler URL prefixes from a raw source path.
package/src/utils/source-location.ts:534
↓ 1 callers
Function
clearDesignPlacements
(pathname: string)
package/src/utils/storage.ts:166
↓ 1 callers
Function
clearRearrangeState
(pathname: string)
package/src/utils/storage.ts:201
↓ 1 callers
Function
clearSessionId
(pathname: string)
package/src/utils/storage.ts:273
↓ 1 callers
Function
collectDOMCandidates
* Collect visible page elements (2 levels deep from main/body) as spatial candidates.
package/src/components/design-mode/spatial.ts:39
↓ 1 callers
Function
componentCorrelatesWithDOM
* Check if a component name correlates with any DOM class
package/src/utils/react-detection.ts:280
↓ 1 callers
Function
constrainPosition
()
package/src/components/page-toolbar-css/index.tsx:3322
↓ 1 callers
Method
createApiKey
(userId: string, name: string, expiresAt?: string)
mcp/src/server/sqlite.ts:583
↓ 1 callers
Function
createHostComponentFiber
( tagName: string, parent?: MockFiberNode )
package/src/utils/source-location.test.ts:107
↓ 1 callers
Function
createMcpSession
* Initialize a new MCP server with HTTP transport for a session.
mcp/src/server/http.ts:75
↓ 1 callers
Function
createMemoFiber
( innerFiber: MockFiberNode, debugSource?: MockDebugSource | null )
package/src/utils/source-location.test.ts:120
↓ 1 callers
Function
createMockElement
()
package/src/utils/source-location.test.ts:38
↓ 1 callers
Method
createOrganization
(name: string)
mcp/src/server/sqlite.ts:573
↓ 1 callers
Function
createSQLiteStore
(dbPath?: string)
mcp/src/server/sqlite.ts:238
↓ 1 callers
Function
createSession
(url: string, projectId?: string)
mcp/src/server/store.ts:77
↓ 1 callers
Method
createSession
(url: string, projectId?: string)
mcp/src/types.ts:178
↓ 1 callers
Method
createSessionForUser
(userId: string, url: string, projectId?: string)
mcp/src/server/sqlite.ts:590
↓ 1 callers
Function
createTenantStore
(dbPath?: string)
mcp/src/server/sqlite.ts:607
↓ 1 callers
Method
createUser
(email: string, orgId: string, role?: UserRole)
mcp/src/server/sqlite.ts:577
↓ 1 callers
Function
debounce
(fn: T, ms: number)
package/example/src/hooks/useActiveScrollElement.ts:7
↓ 1 callers
Function
deleteAnnotation
(id: string)
mcp/src/server/store.ts:238
↓ 1 callers
Method
deleteAnnotation
(id: string)
mcp/src/types.ts:206
↓ 1 callers
Method
deleteApiKey
(id: string)
mcp/src/server/sqlite.ts:586
↓ 1 callers
Function
detectBoundsOverflow
* Detect if the target rect overflows viewport or its nearest container.
package/src/components/design-mode/spatial.ts:244
↓ 1 callers
Function
detectPageSections
()
package/src/components/design-mode/section-detection.ts:160
↓ 1 callers
Function
detectReactApp
()
package/src/utils/source-location.ts:143
↓ 1 callers
Function
dragTo
(sx: number, sy: number, ex: number, ey: number, steps: number, onStep?: (x: number, y: number) => void)
package/example/src/app/components/FeaturesDemo.tsx:2560
↓ 1 callers
Function
explicitToCandidates
(items: ExplicitCandidate[])
package/src/components/design-mode/spatial.ts:98
↓ 1 callers
Function
findCaptureTarget
* Find the smallest DOM element that covers a given viewport region. * Uses elementsFromPoint to get all elements at the region center, * then picks
package/src/utils/screenshot.ts:45
↓ 1 callers
Function
findDebugSource
* Walks up the fiber tree to find the nearest component with _debugSource * * @param fiber - Starting fiber node * @param maxDepth - Maximum tree d
package/src/utils/source-location.ts:284
↓ 1 callers
Function
findDebugSourceInFiberTree
(fiber: MockFiberNode)
package/src/utils/source-location.test.ts:220
↓ 1 callers
Function
findDebugSourceReact19
* Attempts to find source location using React 19's potentially different structure * * @param fiber - Starting fiber node * @returns Source locati
package/src/utils/source-location.ts:322
↓ 1 callers
Function
findNearestComponentSource
( element: HTMLElement, maxAncestors = 10 )
package/src/utils/source-location.ts:780
↓ 1 callers
Function
formatParentContext
* Format parent layout context for an element. * Returns a line like: "Parent: `flex`, flex-direction: `column`, gap: `24px` (`main > div`)"
package/src/components/design-mode/output.ts:61
↓ 1 callers
Function
formatPositionSummary
( ctx: SpatialContext, coords: { x: number; y: number }, size?: { width: number; height: number }, )
package/src/components/design-mode/spatial.ts:369
↓ 1 callers
Function
formatSourceLocation
( source: SourceLocation, format: "path" | "vscode" = "path" )
package/src/utils/source-location.ts:739
↓ 1 callers
Function
getAlignment
(rect: SectionRect, viewportWidth: number)
package/src/components/design-mode/spatial.ts:289
↓ 1 callers
Method
getAllPendingForUser
(userId: string)
mcp/src/server/sqlite.ts:597
↓ 1 callers
Function
getAncestorClasses
* Collect CSS classes from an element and its ancestors
package/src/utils/react-detection.ts:251
↓ 1 callers
Method
getApiKeyByHash
(hash: string)
mcp/src/server/sqlite.ts:584
↓ 1 callers
Function
getComponentName
(fiber: MockFiberNode)
package/src/utils/source-location.test.ts:192
↓ 1 callers
Function
getComponentNameFromFiber
(fiber: ReactFiber)
package/src/utils/react-detection.ts:466
↓ 1 callers
Function
getElementCSSContext
(selector: string)
package/src/components/design-mode/spatial.ts:697
↓ 1 callers
Function
getElementPath
(target: HTMLElement, maxDepth = 4)
package/src/utils/element-identification.ts:62
↓ 1 callers
Function
getEventsSince
(sessionId: string, sequence: number)
mcp/src/server/store.ts:252
↓ 1 callers
Method
getEventsSince
(sessionId: string, sequence: number)
mcp/src/types.ts:209
↓ 1 callers
Function
getFiberFromElement
(element: HTMLElement)
package/src/utils/react-detection.ts:451
↓ 1 callers
Function
getFiberFromElement
(element: HTMLElement)
package/src/utils/source-location.test.ts:172
↓ 1 callers
Function
getItemCenter
(type: string)
package/example/src/app/components/FeaturesDemo.tsx:2539
↓ 1 callers
Method
getOrganization
(id: string)
mcp/src/server/sqlite.ts:574
↓ 1 callers
Method
getPendingAnnotations
(sessionId: string)
mcp/src/types.ts:204
↓ 1 callers
Method
getPendingAnnotationsForUser
(userId: string, sessionId: string)
mcp/src/server/sqlite.ts:596
↓ 1 callers
Function
getReactDispatcher
* Access the React hooks dispatcher from React's module internals. * These are properties on the `react` module export, NOT on `window`. * Returns g
package/src/utils/source-location.ts:446
↓ 1 callers
Function
getReactFiberKey
(element: HTMLElement)
package/src/utils/react-detection.ts:440
↓ 1 callers
Function
getSession
(id: string)
mcp/src/server/store.ts:93
↓ 1 callers
Method
getSessionAnnotations
(sessionId: string)
mcp/src/types.ts:205
↓ 1 callers
Method
getSessionWithAnnotations
(id: string)
mcp/src/types.ts:180
↓ 1 callers
Method
getSessionWithAnnotationsForUser
(userId: string, sessionId: string)
mcp/src/server/sqlite.ts:593
↓ 1 callers
Function
getState
()
package/src/utils/freeze-animations.ts:42
← previous
next →
101–200 of 617, ranked by callers