MCPcopy Create free account

hub / github.com/ZSeven-W/openpencil / functions

Functions3,401 in github.com/ZSeven-W/openpencil

↓ 1 callersFunctionfindPartialHint
* Try to find a matching hint for text that may span multiple lines or * may be a subset of a longer HTML text.
packages/pen-figma/src/figma-clipboard.ts:404
↓ 1 callersFunctionfindServerEntry
Find the Nitro server entry relative to CLI's location.
apps/cli/src/launcher.ts:102
↓ 1 callersFunctionfindShadow
(effects?: PenEffect[])
packages/pen-react/src/components/sections/effects-section.tsx:13
↓ 1 callersFunctionfindShadow
(effects?: PenEffect[])
apps/web/src/components/panels/effects-section.tsx:15
↓ 1 callersMethodfinishDrawing
(engine: DesignEngine)
packages/pen-engine/src/browser/interaction/draw-handler.ts:47
↓ 1 callersFunctionfirstWordToken
* Extract the first meaningful alphabetic token from a string, skipping * leading whitespace, punctuation, digits, and single-letter fragments. * Re
apps/web/src/services/ai/role-resolver.ts:170
↓ 1 callersFunctionfixButtonForegroundContrast
(parent: FrameNode)
apps/web/src/services/ai/role-resolver.ts:734
↓ 1 callersFunctionfixHorizontalOverflow
(parent: FrameNode, children: PenNode[], canvasWidth: number)
apps/web/src/services/ai/role-resolver.ts:961
↓ 1 callersFunctionfixInputSiblingConsistency
(_parent: FrameNode, children: PenNode[])
apps/web/src/services/ai/role-resolver.ts:905
↓ 1 callersFunctionfixOrphanContainerContrast
(node: FrameNode, parentNode?: PenNode)
apps/web/src/services/ai/role-resolver.ts:855
↓ 1 callersFunctionfixPath
()
apps/desktop/main.ts:99
↓ 1 callersFunctionfixSectionAlternation
(parent: FrameNode, children: PenNode[])
apps/web/src/services/ai/role-resolver.ts:781
↓ 1 callersFunctionfixTextHeights
(_parent: FrameNode, children: PenNode[], _canvasWidth: number)
apps/web/src/services/ai/role-resolver.ts:1127
↓ 1 callersFunctionfixUnresolvedImages
* Walk the node tree and convert image nodes with unresolved __blob:/__hash: * references into placeholder rectangles. Clipboard data often lacks th
packages/pen-figma/src/figma-clipboard.ts:183
↓ 1 callersFunctionflattenDFS
(node: TreeNode)
packages/pen-figma/src/converters/frame-converter.ts:286
↓ 1 callersFunctionfontWeightFactor
* Font weight multiplier — bold/semibold text is wider than regular text. * Values based on typical proportional font width scaling.
packages/pen-core/src/layout/text-measure.ts:69
↓ 1 callersMethodforceFlushPending
Force-insert any remaining pending nodes whose parents never arrived. * Called at stream end (done event) to avoid losing orphaned nodes.
apps/web/src/services/ai/streaming-design-renderer.ts:136
↓ 1 callersFunctionformatCompactTime
* Format an author timestamp as a compact relative time. Accepts a Unix * timestamp in seconds (git's native format) or milliseconds. Returns * stri
apps/web/src/components/panels/git-panel/git-panel-history-list.tsx:310
↓ 1 callersFunctionformatConflictReason
( reason: GitConflictBag['nodeConflicts'][number]['reason'], )
apps/web/src/components/panels/git-panel/conflict-formatters.ts:112
↓ 1 callersFunctionformatGuideMetadataLine
( guide: (typeof styleGuideRegistry)[number], mode: PlanningContextMode, )
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:473
↓ 1 callersFunctionformatGuideSnippet
(guide: (typeof styleGuideRegistry)[number])
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:483
↓ 1 callersFunctionformatPadding
( padding: number | [number, number] | [number, number, number, number] | string, )
apps/web/src/services/ai/consumer-view-enrichment.ts:537
↓ 1 callersFunctionformatPublicKeyOpenSsh
(pemPublic: string, comment: string)
apps/desktop/git/ssh-keys.ts:77
↓ 1 callersFunctionformatRelativeTime
* Format a unix timestamp (seconds OR milliseconds) as a localized * relative time string. Returns an empty string for null timestamps.
apps/web/src/components/panels/git-panel/git-panel-tracked-picker.tsx:212
↓ 1 callersFunctionframeHasTextDescendant
(node: PenNode)
apps/web/src/services/ai/sanitize-llm-anti-patterns.ts:325
↓ 1 callersFunctionfriendlyClaudeError
Map raw Agent SDK errors to user-friendly messages
apps/web/server/api/ai/connect-agent.ts:357
↓ 1 callersFunctionfriendlyGeminiError
Map Gemini CLI errors to user-friendly messages
apps/web/server/api/ai/connect-agent.ts:1066
↓ 1 callersFunctionfriendlyOpenCodeError
Map OpenCode connection errors to user-friendly messages
apps/web/server/api/ai/connect-agent.ts:856
↓ 1 callersFunctiongenerateCode
( nodes: PenNode[], framework: Framework, variables: Record<string, unknown> | undefined, onProgress:
apps/web/src/services/ai/code-generation-pipeline.ts:224
↓ 1 callersFunctiongenerateDesignCode
( prompt: string, designSystem: DesignSystem, options: CodeGenOptions, )
apps/web/src/services/ai/design-code-generator.ts:26
↓ 1 callersFunctiongenerateDesignModification
( nodesToModify: PenNode[], instruction: string, options?: { variables?: Record<string, VariableDefi
apps/web/src/services/ai/design-generator.ts:95
↓ 1 callersFunctiongenerateDesignSystem
( prompt: string, model?: string, provider?: AIProviderType, )
apps/web/src/services/ai/design-system-generator.ts:20
↓ 1 callersFunctiongenerateGemini
(opts: { prompt: string; model: string; apiKey: string; baseUrl?: string; width?: number; height?:
apps/web/server/api/ai/image-generate.ts:129
↓ 1 callersFunctiongenerateOpenAI
(opts: { prompt: string; model: string; apiKey: string; baseUrl?: string; width?: number; height?:
apps/web/server/api/ai/image-generate.ts:68
↓ 1 callersFunctiongenerateRegistry
(packageRoot: string)
packages/pen-ai-skills/vite-plugin-skills.ts:57
↓ 1 callersFunctiongenerateReplicate
(opts: { prompt: string; model: string; apiKey: string; baseUrl?: string; width?: number; height?:
apps/web/server/api/ai/image-generate.ts:199
↓ 1 callersFunctiongenerateSectionGuidelines
( section: { name: string; layout?: string; role?: string }, contentWidth: number, canvasWidth: number,
packages/pen-mcp/src/tools/design-skeleton.ts:205
↓ 1 callersFunctiongenerateStream
()
apps/web/server/utils/gemini-client.ts:153
↓ 1 callersFunctiongenerateStyleGuideRegistry
(packageRoot: string)
packages/pen-ai-skills/vite-plugin-skills.ts:91
↓ 1 callersFunctiongenerateViaAgentSDK
Generate via Claude Agent SDK (uses local Claude Code OAuth login, no API key needed)
apps/web/server/api/ai/generate.ts:61
↓ 1 callersFunctiongenerateViaCodex
( body: GenerateBody, model?: string, )
apps/web/server/api/ai/generate.ts:124
↓ 1 callersFunctiongenerateViaGemini
Generate via Gemini CLI (`gemini -p -o json`) — CLI handles its own auth
apps/web/server/api/ai/generate.ts:290
↓ 1 callersFunctiongenerateViaOpenCode
Generate via OpenCode SDK (connects to a running OpenCode server)
apps/web/server/api/ai/generate.ts:205
↓ 1 callersMethodgetActivePage
()
packages/pen-engine/src/core/design-engine.ts:179
↓ 1 callersMethodgetActivePageChildren
Returns the children of the active page (public accessor for DesignEngine).
packages/pen-engine/src/core/document-manager.ts:184
↓ 1 callersFunctiongetAgentThinkingConfig
( body: ChatBody, )
apps/web/server/api/ai/chat.ts:172
↓ 1 callersFunctiongetAuthToken
( auth: Auth, callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken, )
apps/web/server/opencode/v2/gen/core/auth.gen.ts:22
↓ 1 callersFunctiongetAuthToken
( auth: Auth, callback: ((auth: Auth) => Promise<AuthToken> | AuthToken) | AuthToken, )
apps/web/server/opencode/gen/core/auth.gen.ts:22
↓ 1 callersFunctiongetAutoUpdateEnabled
()
apps/desktop/auto-updater.ts:69
↓ 1 callersFunctiongetBorderStroke
Resolve border color: prefer $color-border variable if it exists, else neutral gray
packages/pen-ai-skills/src/diagnostics/detectors.ts:86
↓ 1 callersFunctiongetBuiltinLeadToolDefs
()
apps/web/src/services/ai/agent-tools.ts:265
↓ 1 callersFunctiongetCanonicalBuiltinBaseURL
( preset: BuiltinProviderPreset, region: 'cn' | 'global' = 'cn', )
apps/web/src/lib/builtin-provider-presets.ts:345
↓ 1 callersFunctiongetCanvasBackground
()
apps/web/src/canvas/canvas-constants.ts:44
↓ 1 callersFunctiongetCanvasKit
()
packages/pen-renderer/src/init.ts:71
↓ 1 callersMethodgetCanvasSize
()
apps/web/src/canvas/skia/skia-engine.ts:729
↓ 1 callersFunctiongetConfig
()
apps/web/server/opencode/v2/gen/client/client.gen.ts:25
↓ 1 callersFunctiongetConfig
()
apps/web/server/opencode/gen/client/client.gen.ts:25
↓ 1 callersMethodgetContentBounds
* Compute the bounding box of all nodes on the active page. * Returns null if the page is empty. * Used by DesignCanvas to zoom-to-fit on initia
packages/pen-engine/src/core/design-engine.ts:239
↓ 1 callersFunctiongetCrudToolDefs
()
apps/web/src/services/ai/agent-tools.ts:75
↓ 1 callersFunctiongetCurrentVisualReference
()
apps/web/src/services/ai/visual-ref-orchestrator.ts:37
↓ 1 callersFunctiongetDashboardPlaceholderHeight
(plan: OrchestratorPlan)
apps/web/src/services/ai/orchestrator.ts:422
↓ 1 callersFunctiongetDefaultDesignSystem
()
apps/web/src/services/ai/visual-ref-orchestrator.ts:219
↓ 1 callersFunctiongetEngine
()
apps/web/src/canvas/skia/skia-interaction-types.ts:48
↓ 1 callersFunctiongetFigmaPages
( decoded: FigmaDecodedFile, )
packages/pen-figma/src/figma-node-mapper.ts:252
↓ 1 callersFunctiongetFirstFillColor
Extract the first fill color from a node (raw, including variable refs)
packages/pen-ai-skills/src/diagnostics/detectors.ts:5
↓ 1 callersFunctiongetFreePort
()
apps/cli/src/launcher.ts:15
↓ 1 callersFunctiongetFreePorts
()
apps/desktop/main.ts:209
↓ 1 callersFunctiongetIconColor
()
packages/pen-react/src/components/icon-picker-dialog.tsx:8
↓ 1 callersFunctiongetIconColor
()
apps/web/src/components/shared/icon-picker-dialog.tsx:10
↓ 1 callersFunctiongetInstallInfo
(agent: string)
apps/web/server/api/ai/install-agent.ts:37
↓ 1 callersFunctiongetLinuxControlsSide
* Detect whether Linux DE places window controls on the left or right. * Uses gsettings (GNOME/Cinnamon/MATE) as primary check, checks XDG_CURRENT_DE
apps/desktop/main.ts:314
↓ 1 callersFunctiongetLogDir
()
apps/desktop/logger.ts:87
↓ 1 callersFunctiongetLogFilePath
()
apps/web/server/utils/server-logger.ts:39
↓ 1 callersFunctiongetMeasureCtx
()
packages/pen-renderer/src/document-flattener.ts:22
↓ 1 callersFunctiongetMobileSectionElements
Assign distinct element hints to each mobile section to prevent duplicate content.
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:209
↓ 1 callersMethodgetNativeFontSet
* Build a set of all native (OS-installed) font families using the * Local Font Access API (Chrome 103+, Edge 103+). * Falls back to empty set i
packages/pen-renderer/src/font-manager.ts:518
↓ 1 callersFunctiongetNodeRevealTime
(nodeId: string)
apps/web/src/services/ai/design-animation.ts:84
↓ 1 callersFunctiongetOpacityForTheme
(themeValue: string)
apps/web/src/components/panels/variable-row.tsx:110
↓ 1 callersFunctiongetOpenverseToken
(clientId: string, clientSecret: string)
apps/web/server/api/ai/image-search.ts:53
↓ 1 callersFunctiongetOrchestratorTimeouts
( promptLength: number, model?: string, )
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:67
↓ 1 callersFunctiongetOwnerPid
()
apps/web/server/plugins/port-file.ts:18
↓ 1 callersFunctiongetParseAs
(contentType: string | null)
apps/web/server/opencode/v2/gen/client/utils.gen.ts:68
↓ 1 callersFunctiongetParseAs
(contentType: string | null)
apps/web/server/opencode/gen/client/utils.gen.ts:68
↓ 1 callersFunctiongetPathBBoxDOM
* In browser environments, use the SVG DOM for accurate bounding box. * Falls back to coordinate estimation (used in Node.js and as catch fallback).
packages/pen-engine/src/core/svg-parser.ts:611
↓ 1 callersFunctiongetPathPointType
(anchor: PenPathAnchor)
apps/web/src/canvas/skia/path-editing.ts:294
↓ 1 callersFunctiongetPropertyValue
(node: PenNode, prop: PropertyName)
packages/pen-mcp/src/routes/style-operations-routes.ts:53
↓ 1 callersMethodgetProvider
()
packages/pen-renderer/src/font-manager.ts:121
↓ 1 callersFunctiongetReachableAppUrl
(port: number)
apps/cli/src/connection.ts:12
↓ 1 callersFunctiongetRefAlias
* Resolve an alias ref name to a fully-qualified ref: * 'main' → 'refs/heads/<currentBranch>' * 'autosaves' → 'refs/openpencil/autosaves/<c
apps/desktop/git/git-engine.ts:181
↓ 1 callersFunctiongetRootFillWidthFallback
()
packages/pen-core/src/layout/engine.ts:65
↓ 1 callersFunctiongetRuntimeOrigin
()
apps/web/src/utils/document-assets.ts:152
↓ 1 callersMethodgetSafeRasterSize
(sourceW: number, sourceH: number)
packages/pen-renderer/src/image-loader.ts:163
↓ 1 callersFunctiongetScope
()
packages/pen-core/src/boolean-ops.ts:64
↓ 1 callersFunctiongetSections
(content: string)
packages/pen-ai-skills/src/style-guide/style-guide-parser.ts:26
↓ 1 callersFunctiongetSelectableNodeIds
()
apps/web/src/canvas/selection-context.ts:11
↓ 1 callersFunctiongetServerEntry
()
apps/desktop/main.ts:225
↓ 1 callersFunctiongetSkillsByPhase
(phase: Phase)
packages/pen-ai-skills/src/engine/loader.ts:10
↓ 1 callersMethodgetSpatialIndex
* Access to the spatial index for browser adapter. * Not part of the public API spec, but needed internally.
packages/pen-engine/src/core/design-engine.ts:399
↓ 1 callersFunctiongetSubAgentTimeouts
(promptLength: number, model?: string)
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:44
↓ 1 callersFunctiongetSyncSelection
()
apps/web/server/utils/mcp-sync-state.ts:37
← previousnext →1,701–1,800 of 3,401, ranked by callers