MCPcopy Create free account

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

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

↓ 3 callersFunctionwidthSafetyFactor
(text: string)
packages/pen-core/src/layout/text-measure.ts:114
↓ 3 callersFunctionwithTempImageFile
( imageBase64: string, run: (tempPath: string) => Promise<T>, insideProject = false, )
apps/web/server/api/ai/validate.ts:67
↓ 3 callersFunctionwriteLine
(level: string, msg: string)
apps/web/server/utils/server-logger.ts:66
↓ 3 callersFunctionwritePortFile
(port: number)
apps/desktop/main.ts:184
↓ 3 callersFunctionwriteToFileHandle
( handle: FileSystemFileHandle, doc: PenDocument, )
apps/web/src/utils/file-operations.ts:26
↓ 3 callersFunctionwriteToFilePath
(filePath: string, doc: PenDocument)
apps/web/src/utils/file-operations.ts:37
↓ 3 callersMethodzoomToRect
( x: number, y: number, w: number, h: number, containerW: number, containerH: number,
packages/pen-engine/src/core/design-engine.ts:223
↓ 2 callersFunction__setLogDirForTests
(dir: string | null)
packages/pen-mcp/src/tools/debug-logs-tail.ts:21
↓ 2 callersMethod_clear
()
apps/web/src/utils/document-events.ts:54
↓ 2 callersMethod_loadNativeFontData
* Attempt to load a native font from the Local Font Access API blob data * into CanvasKit's TypefaceFontProvider for vector rendering.
packages/pen-renderer/src/font-manager.ts:398
↓ 2 callersFunctionabortSession
(session: AgentSession)
apps/web/server/utils/agent-sessions.ts:139
↓ 2 callersFunctionanchorsToPathData
(anchors: PenPathAnchor[], closed: boolean)
packages/pen-core/src/path-anchors.ts:179
↓ 2 callersFunctionangle
(ux: number, uy: number, vx: number, vy: number)
packages/pen-renderer/src/path-utils.ts:95
↓ 2 callersFunctionappendSeg
(parts: string[], from: PenAnchor, to: PenAnchor)
apps/web/src/canvas/skia/skia-overlays.ts:396
↓ 2 callersFunctionappendSegment
(parts: string[], from: PenPathAnchor, to: PenPathAnchor)
packages/pen-core/src/path-anchors.ts:195
↓ 2 callersFunctionareDocumentsEqual
(a: PenDocument, b: PenDocument)
apps/web/src/stores/history-store.ts:8
↓ 2 callersMethodareEqual
(a: PenDocument, b: PenDocument)
packages/pen-engine/src/core/history-manager.ts:133
↓ 2 callersFunctionasNonNegativeNumber
(value: unknown)
apps/web/src/services/ai/orchestrator-planning.ts:269
↓ 2 callersFunctionassemblePlan
(planId: string, _framework: Framework)
apps/web/server/utils/codegen-plan-store.ts:322
↓ 2 callersFunctionbeforeRequest
(options: RequestOptions)
apps/web/server/opencode/v2/gen/client/client.gen.ts:34
↓ 2 callersFunctionbeforeRequest
(options: RequestOptions)
apps/web/server/opencode/gen/client/client.gen.ts:34
↓ 2 callersFunctionblobToDataUrl
(bytes: Uint8Array)
packages/pen-figma/src/figma-image-resolver.ts:36
↓ 2 callersFunctionbroadcastUpdaterState
()
apps/desktop/auto-updater.ts:77
↓ 2 callersFunctionbuildAppMenu
()
apps/desktop/app-menu.ts:28
↓ 2 callersFunctionbuildChildren
(pageId: string | null, parentId: string | null)
packages/pen-core/src/merge/node-merge.ts:351
↓ 2 callersFunctionbuildClaudeConnectionInfo
Build Claude connection info from env + SDK account info
apps/web/server/api/ai/connect-agent.ts:270
↓ 2 callersFunctionbuildCodegenBundleManifest
(options: { framework: string; codeFile: string; codeBytes: Uint8Array; assets: CodegenAssetFile[]; })
apps/web/src/services/ai/codegen-assets.ts:233
↓ 2 callersFunctionbuildContextString
()
apps/web/src/components/panels/ai-chat-context-builder.ts:8
↓ 2 callersFunctionbuildDefaultHandles
( anchors: PenPathAnchor[], anchorIndex: number, closed: boolean, )
apps/web/src/canvas/skia/path-editing.ts:199
↓ 2 callersFunctionbuildDesignPrompt
(section?: string)
packages/pen-mcp/src/tools/design-prompt.ts:309
↓ 2 callersFunctionbuildExecCmd
Build a shell command to invoke a resolved binary (handles .ps1 on Windows)
apps/web/server/api/ai/connect-agent.ts:35
↓ 2 callersFunctionbuildFullPrompt
()
packages/pen-mcp/src/tools/design-prompt.ts:331
↓ 2 callersFunctionbuildOpenCodeReasoning
(body: GenerateBody)
apps/web/server/api/ai/generate.ts:146
↓ 2 callersFunctionbuildPenPathSvg
(points: PenAnchor[], closed: boolean)
apps/web/src/canvas/skia/skia-overlays.ts:379
↓ 2 callersFunctionbuildPrompt
(systemPrompt: string | undefined, userPrompt: string)
apps/web/server/utils/gemini-client.ts:203
↓ 2 callersFunctionbuildPrompt
( systemPrompt: string | undefined, userPrompt: string, imageFiles?: string[], )
apps/web/server/utils/codex-client.ts:215
↓ 2 callersFunctionbuildSingleFileCandidate
* Build a single CandidateFileInfo for a single-file repo. Counts come from * the heads + autosaves refs for the current branch (or zeros if no commi
apps/desktop/git/git-engine.ts:397
↓ 2 callersFunctionbuildSubAgentStyleGuideInstruction
( content: string, styleGuideName: string | undefined, tier: 'full' | 'standard' | 'basic', )
apps/web/src/services/ai/orchestrator-sub-agent-compact.ts:63
↓ 2 callersFunctionbuildSubAgentUserPrompt
( subtask: SubTask, plan: OrchestratorPlan, compactPrompt: string, fullPrompt: string, modelId?: str
apps/web/src/services/ai/orchestrator-sub-agent.ts:510
↓ 2 callersFunctionbuildSubAgentUserPromptForTest
(args: { subtask: SubTask; plan: OrchestratorPlan; compactPrompt: string; fullPrompt: string; modelI
apps/web/src/services/ai/orchestrator-sub-agent.ts:746
↓ 2 callersFunctionbuildTeamCapabilitiesPrompt
(concurrency: number)
apps/web/server/api/ai/agent.ts:101
↓ 2 callersFunctionbuildVariableContext
( variables?: Record<string, VariableDefinition>, themes?: Record<string, string[]>, )
apps/web/src/services/ai/design-generator.ts:43
↓ 2 callersFunctionbundleBinary
()
scripts/ensure-agent-native.cjs:47
↓ 2 callersFunctioncanonicalize
* Sort object keys recursively so JSON.stringify produces a deterministic string * regardless of insertion order.
packages/pen-core/src/merge/merge-helpers.ts:104
↓ 2 callersFunctioncaptureNodeState
Capture a flat snapshot of all node properties for diffing.
packages/pen-mcp/src/tools/design-refine.ts:138
↓ 2 callersMethodcaptureRenderNodeSnapshots
( rootId: string, engine: SkiaEngine, )
apps/web/src/canvas/skia/skia-interaction.ts:512
↓ 2 callersFunctioncheckConsistency
( siblings: PenNode[], property: string, issues: Issue[], severity: 'warning' | 'info', )
packages/pen-ai-skills/src/diagnostics/detectors.ts:396
↓ 2 callersFunctioncleanup
()
apps/desktop/dev.ts:221
↓ 2 callersFunctioncleanupPortFile
()
apps/desktop/main.ts:197
↓ 2 callersMethodclearParaCache
()
packages/pen-renderer/src/text-renderer.ts:69
↓ 2 callersFunctionclearRecentFiles
()
apps/web/src/utils/recent-files.ts:43
↓ 2 callersFunctionclearSyncState
()
apps/web/server/utils/mcp-sync-state.ts:41
↓ 2 callersFunctionclearUpdateTimer
()
apps/desktop/auto-updater.ts:111
↓ 2 callersFunctioncloneAnchors
(anchors: PenPathAnchor[])
apps/web/src/canvas/skia/path-editing.ts:298
↓ 2 callersFunctioncollectCollapsibleNodeIds
( nodes: PenNode[], allChildren: PenNode[], result: Set<string> = new Set(), )
packages/pen-react/src/components/layer-panel.tsx:116
↓ 2 callersFunctioncollectCollapsibleNodeIds
( nodes: PenNode[], allChildren: PenNode[], result: Set<string> = new Set(), )
apps/web/src/components/panels/layer-panel.tsx:108
↓ 2 callersFunctioncollectDescendants
* Collect all descendant nodes (including the parent itself) for the given * parent IDs.
packages/pen-mcp/src/routes/style-operations-routes.ts:394
↓ 2 callersFunctioncollectFonts
(nodes: { fontFamily?: string; children?: unknown[] }[])
packages/pen-core/src/design-md-parser.ts:320
↓ 2 callersFunctioncollectFonts
(nodes: import('@/types/pen').PenNode[])
apps/web/src/components/shared/figma-import-dialog.tsx:143
↓ 2 callersMethodcollectIdsRecursive
(node: { id: string; children?: unknown[] })
apps/web/src/services/ai/streaming-design-renderer.ts:223
↓ 2 callersFunctioncollectNames
Recursively collect all node names in the tree
apps/web/src/utils/__tests__/security.test.ts:22
↓ 2 callersFunctioncollectNearbyText
(node: PenNode, depth: number, exclude?: PenNode)
apps/web/src/services/ai/role-resolver.ts:1106
↓ 2 callersFunctioncomputeArcHandles
( x: number, y: number, w: number, h: number, startAngle: number, sweepAngle: number, innerRadiu
apps/web/src/canvas/skia/skia-overlays.ts:208
↓ 2 callersFunctioncomputeCandidateMeta
* Compute the candidate metadata (counts + last commit) for one file by * walking the heads and autosaves refs of the current branch and checking *
apps/desktop/git/git-engine.ts:412
↓ 2 callersFunctioncomputeChildrenBounds
Compute the bounding box that encloses all children (including stroke extent)
packages/pen-engine/src/core/svg-parser.ts:748
↓ 2 callersFunctioncomputeLayout
(parent: PenNode, vars: Vars)
apps/web/src/components/panels/node-preview-svg.tsx:115
↓ 2 callersFunctioncomputeLayoutTree
( nodes: PenNode[], allNodes: PenNode[], maxDepth: number, currentDepth = 0, parentX = 0, parentY
packages/pen-mcp/src/utils/node-operations.ts:121
↓ 2 callersFunctionconnect
()
apps/web/src/hooks/use-mcp-sync.ts:196
↓ 2 callersFunctionconnectAcp
( agentId: string, config: AcpAgentConfig, )
apps/web/server/utils/acp-connection-manager.ts:22
↓ 2 callersFunctionconsumeSSEAsText
(response: Response)
apps/web/src/services/ai/ai-service.ts:396
↓ 2 callersFunctionconvertChildren
(parent: TreeNode, ctx: ConversionContext)
packages/pen-figma/src/converters/index.ts:44
↓ 2 callersFunctioncountCommitsTouching
( handle: IsoRepoHandle, commits: CommitMetaIso[], filepath: string, )
apps/desktop/git/git-engine.ts:470
↓ 2 callersFunctioncountNodes
(nodes: PenNode[])
packages/pen-mcp/src/tools/design-content.ts:166
↓ 2 callersFunctioncreateCanvasOps
()
apps/web/src/canvas/skia/__tests__/skia-engine.test.ts:14
↓ 2 callersFunctioncreateCanvasStub
()
apps/web/src/canvas/skia/__tests__/skia-engine.test.ts:5
↓ 2 callersFunctioncreateClient
(config: Config = {})
apps/web/server/opencode/v2/gen/client/client.gen.ts:22
↓ 2 callersFunctioncreateClient
(config: Config = {})
apps/web/server/opencode/gen/client/client.gen.ts:22
↓ 2 callersFunctioncreateConfig
( override: Config<Omit<ClientOptions, keyof T> & T> = {}, )
apps/web/server/opencode/v2/gen/client/utils.gen.ts:308
↓ 2 callersFunctioncreateConfig
( override: Config<Omit<ClientOptions, keyof T> & T> = {}, )
apps/web/server/opencode/gen/client/utils.gen.ts:308
↓ 2 callersFunctioncreateConnection
* Create a ClientSideConnection from a bidirectional ndJSON stream. * The Client.sessionUpdate callback dispatches events to * state.sessionUpdateEm
packages/pen-acp/src/client.ts:19
↓ 2 callersFunctioncreateMobileStatusBar
(variant: StatusBarVariant = 'dark')
apps/web/src/services/ai/mobile-status-bar.ts:54
↓ 2 callersFunctioncreateMockEngine
()
packages/pen-react/src/__tests__/use-selection.test.tsx:8
↓ 2 callersFunctioncreateOpencodeClient
( config?: Config & { directory?: string; experimental_workspaceID?: string }, )
apps/web/server/opencode/client.ts:8
↓ 2 callersFunctioncreateQuerySerializer
({ parameters = {}, ...args }: QuerySerializerOptions = {})
apps/web/server/opencode/v2/gen/client/utils.gen.ts:14
↓ 2 callersFunctioncreateQuerySerializer
({ parameters = {}, ...args }: QuerySerializerOptions = {})
apps/web/server/opencode/gen/client/utils.gen.ts:14
↓ 2 callersFunctioncreateSession
( fields: Omit< NativeAgentSession, 'type' | 'toolOwners' | 'toolNames' | 'memberRoles' | 'layoutPha
apps/web/server/utils/agent-sessions.ts:57
↓ 2 callersFunctioncreateSessionState
()
apps/web/server/__tests__/agent-tool-guard.test.ts:8
↓ 2 callersMethodcreateSurface
(canvasEl: HTMLCanvasElement)
apps/web/src/canvas/skia/skia-engine.ts:455
↓ 2 callersFunctioncreateUnavailableBackend
()
apps/desktop/git/auth-store.ts:163
↓ 2 callersFunctioncreateWindow
()
apps/desktop/main.ts:355
↓ 2 callersFunctioncssColorToHex
* Convert a CSS color value (hex, rgb, rgba) to a #RRGGBB(AA) hex string.
packages/pen-figma/src/figma-clipboard.ts:243
↓ 2 callersFunctioncssToHex
Convert a computed CSS color value (oklch/rgb/etc.) to #rrggbb via an offscreen canvas.
apps/web/src/components/editor/top-bar.tsx:43
↓ 2 callersFunctiondecodeAgentEvent
(raw: string)
apps/web/src/components/panels/ai-chat-handlers.ts:7
↓ 2 callersFunctiondecodeBase64ToBytes
* Decode a base64 string to Uint8Array without relying on atob. * Handles URL-safe alphabet, whitespace, missing padding, and stray characters.
packages/pen-figma/src/figma-clipboard.ts:29
↓ 2 callersFunctiondecodeVectorNetworkBlob
* Decode Figma's vectorNetworkBlob (VectorNetwork) as a fallback when * fill/stroke geometry blobs are not available. * * The vectorNetwork blob fo
packages/pen-figma/src/figma-vector-decoder.ts:213
↓ 2 callersFunctiondecodeVectorNetworkBlob
* Decode Figma's vectorNetworkBlob (VectorNetwork) as a fallback when * fill/stroke geometry blobs are not available. * * The vectorNetwork blob fo
apps/web/src/services/figma/figma-vector-decoder.ts:213
↓ 2 callersFunctiondescribeFlexAlign
(value: string)
apps/web/src/services/ai/consumer-view-enrichment.ts:546
↓ 2 callersFunctiondescribeSizingValue
( axis: 'width' | 'height', value: number | string | undefined, )
apps/web/src/services/ai/consumer-view-enrichment.ts:325
↓ 2 callersFunctiondesignSystemToPromptContext
(ds: DesignSystem)
apps/web/src/services/ai/design-system-generator.ts:161
↓ 2 callersFunctiondetectAgentIntent
(message: string)
apps/web/src/services/ai/agent-tools.ts:66
← previousnext →901–1,000 of 3,401, ranked by callers