MCPcopy Create free account

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

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

↓ 3 callersFunctionmapIsoError
* Map an iso (isomorphic-git) error to a GitErrorCode. iso errors carry * a `.code` property and sometimes a `.data.statusCode` for HTTP failures.
apps/desktop/git/git-engine.ts:308
↓ 3 callersFunctionmapOpenverseResult
(r: OpenverseImageResult)
apps/web/server/api/ai/image-search.ts:200
↓ 3 callersFunctionmarkClientActive
(clientId: string)
apps/web/server/utils/mcp-sync-state.ts:87
↓ 3 callersFunctionmergePreference
( ctx: DesignContext, override: { what: string; from: string; to: string }, )
packages/pen-ai-skills/src/memory/document-context.ts:46
↓ 3 callersFunctionmoveNodePreservingVisualPosition
( doc: PenDocument, activePageId: string | null, id: string, newParentId: string | null, index?: num
apps/web/src/stores/document-position-utils.ts:29
↓ 3 callersFunctionnoFill
()
packages/pen-engine/src/core/svg-parser.ts:547
↓ 3 callersFunctionnormalizeColor
(raw: string)
packages/pen-engine/src/core/svg-parser.ts:542
↓ 3 callersFunctionnormalizeGradientStops
(raw: unknown[] | undefined)
packages/pen-core/src/normalize.ts:177
↓ 3 callersFunctionnormalizeOpenAICompatBaseURL
(baseURL?: string)
apps/web/server/api/ai/provider-url.ts:11
↓ 3 callersFunctionnormalizeURL
(url?: string)
apps/web/src/lib/builtin-provider-presets.ts:269
↓ 3 callersMethodonDocumentMutated
Called when the document is mutated by any manager.
packages/pen-engine/src/core/design-engine.ts:386
↓ 3 callersFunctionopenDocument
()
apps/web/src/utils/file-operations.ts:120
↓ 3 callersFunctionopenDocumentFS
()
apps/web/src/utils/file-operations.ts:72
↓ 3 callersFunctionparseCodexJsonLine
(line: string)
apps/web/server/utils/codex-client.ts:346
↓ 3 callersFunctionparseFigFile
(fileBuffer: ArrayBuffer)
packages/pen-figma/src/fig-parser.ts:211
↓ 3 callersFunctionparseHexColor
Parse #rgb / #rrggbb / #rrggbbaa to {r,g,b}. Returns null on parse failure.
packages/pen-ai-skills/src/diagnostics/detectors.ts:55
↓ 3 callersFunctionparsePaddingValues
( padding: number | [number, number] | [number, number, number, number] | string | undefined, )
apps/web/src/services/ai/generation-utils.ts:56
↓ 3 callersFunctionprepareImportedDocument
( raw: unknown, options: ImportSourceOptions = {}, )
apps/web/src/utils/import-pen-document.ts:23
↓ 3 callersFunctionprobeLiveSyncUrl
(baseUrl: string)
packages/pen-mcp/src/document-manager.ts:90
↓ 3 callersFunctionprojectTextEditStateToViewport
( editingText: TextEditState, viewport: ViewportState, )
apps/web/src/canvas/skia/text-edit-overlay.ts:12
↓ 3 callersMethodpromptAsync
* Send async message * * Create and send a new message to a session asynchronously, starting the session if needed and returning immediately.
apps/web/server/opencode/gen/sdk.gen.ts:2075
↓ 3 callersFunctionpromptWithTimeout
( ocClient: any, payload: Record<string, unknown>, timeoutMs = OPENCODE_PROMPT_TIMEOUT_MS, )
apps/web/server/api/ai/generate.ts:166
↓ 3 callersFunctionpushOnce
(id: string | null | undefined)
apps/web/src/services/ai/orchestrator.ts:454
↓ 3 callersFunctionreadBigEndianUint16
(bytes: Uint8Array, offset: number)
apps/web/src/services/ai/consumer-view-enrichment.ts:49
↓ 3 callersFunctionreadDebugTail
( path: string | undefined, maxLines = 40, )
packages/pen-mcp/src/utils/log-utils.ts:14
↓ 3 callersMethodregisterFont
Register a font from raw ArrayBuffer data
packages/pen-renderer/src/font-manager.ts:188
↓ 3 callersFunctionregisterTools
Register tool handlers on a Server instance.
packages/pen-mcp/src/server.ts:97
↓ 3 callersFunctionrelativeLuminance
WCAG 2.x relative luminance for sRGB. Returns 0.0–1.0.
packages/pen-ai-skills/src/diagnostics/detectors.ts:46
↓ 3 callersMethodremove
* Remove PTY session * * Remove and terminate a specific pseudo-terminal (PTY) session.
apps/web/server/opencode/gen/sdk.gen.ts:616
↓ 3 callersMethodrenameVariable
(oldName: string, newName: string)
packages/pen-engine/src/core/design-engine.ts:347
↓ 3 callersMethodreorderPage
(pageId: string, direction: 'left' | 'right')
packages/pen-engine/src/core/page-manager.ts:84
↓ 3 callersFunctionreplaceFillColor
* Replace fill color in a fill value. Mutates the fill array in-place if the * first solid fill matches `from`.
packages/pen-mcp/src/routes/style-operations-routes.ts:121
↓ 3 callersMethodrequest
Start loading an image if not already cached or in progress.
packages/pen-renderer/src/image-loader.ts:58
↓ 3 callersFunctionrequireAuthStore
()
apps/desktop/git/ipc-handlers.ts:57
↓ 3 callersMethodresize
(width: number, height: number)
packages/pen-engine/src/browser/canvas-bindings.ts:7
↓ 3 callersFunctionresolveAllPendingIcons
()
apps/web/src/services/ai/icon-font-fetcher.ts:148
↓ 3 callersFunctionresolveGeminiCli
()
apps/web/server/utils/resolve-gemini-cli.ts:26
↓ 3 callersFunctionresolveImageBlobs
( nodes: PenNode[], imageBlobs: Map<number, Uint8Array>, imageFiles?: Map<string, Uint8Array>, )
packages/pen-figma/src/figma-image-resolver.ts:8
↓ 3 callersFunctionresolvePending
(response: ScreenshotResponse)
apps/web/server/utils/mcp-screenshot-rpc.ts:53
↓ 3 callersFunctionresolveSshKeyPath
(keyId: string)
apps/desktop/git/git-engine.ts:212
↓ 3 callersFunctionresolveStyleReferences
* Resolve style references (fill, stroke, text, effect) to inline properties. * Figma stores styles as separate nodes (styleType='FILL'|'TEXT'|'EFFEC
packages/pen-figma/src/figma-node-mapper.ts:25
↓ 3 callersFunctionresolveToNode
Resolve a pathKey's override/derived entries to a target node GUID.
packages/pen-figma/src/converters/frame-converter.ts:311
↓ 3 callersFunctionrestoreFileFromCommit
(opts: { handle: IsoRepoHandle; filepath: string; commitHash: string; })
apps/desktop/git/git-iso.ts:328
↓ 3 callersFunctionrewriteLlmAntiPatterns
(node: PenNode)
apps/web/src/services/ai/sanitize-llm-anti-patterns.ts:618
↓ 3 callersFunctionrewriteOpenStrokePathsWithDuplicateFill
(node: PenNode)
apps/web/src/services/ai/sanitize-llm-anti-patterns.ts:411
↓ 3 callersFunctionrunCodex
* Run the codex CLI with args, handling Windows shim spawning. * * Since Node 18.20/20.12 (CVE-2024-27980), execFileSync refuses to spawn * .cmd/.b
apps/web/server/api/ai/mcp-install.ts:273
↓ 3 callersFunctionrunCodexExec
( userPrompt: string, options: CodexExecOptions = {}, )
apps/web/server/utils/codex-client.ts:98
↓ 3 callersFunctionrunMerge
(opts: { handle: IsoRepoHandle; filepath: string; oursCommit: string; theirsCommit: string; baseComm
apps/desktop/git/merge-orchestrator.ts:31
↓ 3 callersFunctionrunPull
(auth?: GitAuthCreds)
apps/web/src/components/panels/git-panel/git-panel-remote-controls.tsx:88
↓ 3 callersFunctionsanitizeLayoutChildPositions
(node: PenNode, parentHasLayout: boolean)
apps/web/src/services/ai/design-node-sanitization.ts:64
↓ 3 callersFunctionsaveIndex
(keys: SshKeyInfo[])
apps/desktop/git/ssh-keys.ts:64
↓ 3 callersMethodscalePreviewRect
(rect: PreviewRect, from: PreviewRect, to: PreviewRect)
apps/web/src/canvas/skia/skia-interaction.ts:532
↓ 3 callersFunctionscreenToScene
( clientX: number, clientY: number, canvasRect: DOMRect, vp: ViewportState, )
packages/pen-renderer/src/viewport.ts:17
↓ 3 callersFunctionsendToClient
(clientId: string, payload: Record<string, unknown>)
apps/web/server/utils/mcp-sync-state.ts:101
↓ 3 callersFunctionsequenceEqual
(a: string[], b: string[])
packages/pen-core/src/merge/node-merge.ts:314
↓ 3 callersFunctionserializeJson
(value: unknown)
apps/web/src/services/ai/structure-bundle.ts:107
↓ 3 callersFunctionsetAutoUpdateEnabled
(enabled: boolean)
apps/desktop/auto-updater.ts:73
↓ 3 callersFunctionsetGenerationCanvasWidth
(width: number)
apps/web/src/services/ai/design-canvas-ops.ts:112
↓ 3 callersFunctionsetGenerationContextHint
(hint?: string)
apps/web/src/services/ai/design-canvas-ops.ts:108
↓ 3 callersMethodsetIconLookup
Set injectable icon lookup function.
packages/pen-renderer/src/node-renderer.ts:82
↓ 3 callersFunctionsetInflightMerge
(repoId: string, merge: InflightMerge)
apps/desktop/git/repo-session.ts:107
↓ 3 callersFunctionsetNodeChildren
(node: PenNode, children: PenNode[])
apps/web/src/services/ai/design-node-sanitization.ts:11
↓ 3 callersFunctionsetPathPointType
( anchors: PenPathAnchor[], anchorIndex: number, pointType: PenPathPointType, closed: boolean, )
apps/web/src/canvas/skia/path-editing.ts:116
↓ 3 callersMethodsetRedrawCallback
Set callback to trigger re-render when async images finish loading.
packages/pen-renderer/src/node-renderer.ts:77
↓ 3 callersFunctionsetSkillRegistry
(entries: SkillRegistryEntry[])
packages/pen-ai-skills/src/engine/loader.ts:19
↓ 3 callersFunctionsetSyncDocument
(doc: PenDocument, sourceClientId?: string)
apps/web/server/utils/mcp-sync-state.ts:29
↓ 3 callersFunctionsetValueForTheme
(themeValue: string, newValue: string | number | boolean)
apps/web/src/components/panels/variable-row.tsx:93
↓ 3 callersMethodsetViewport
(zoom: number, panX: number, panY: number)
apps/web/src/canvas/skia/skia-engine.ts:699
↓ 3 callersFunctionsetupClonePair
()
apps/desktop/git/__tests__/git-engine.test.ts:970
↓ 3 callersFunctionstartMcpHttpServer
(port: number)
apps/web/server/utils/mcp-server-manager.ts:103
↓ 3 callersFunctionstopVite
()
apps/desktop/dev.ts:180
↓ 3 callersFunctionstripHistoricalAttachments
( message: T, keepAttachments: boolean, )
apps/web/src/services/ai/context-optimizer.ts:20
↓ 3 callersFunctionstripPrefix
(path: string, prefix: string)
apps/web/src/utils/document-assets.ts:244
↓ 3 callersFunctionstripRingFrameFills
(node: PenNode)
apps/web/src/services/ai/sanitize-llm-anti-patterns.ts:597
↓ 3 callersFunctionswitchBranch
(opts: { handle: IsoRepoHandle; name: string; filepath: string; })
apps/desktop/git/git-iso.ts:508
↓ 3 callersMethodsyncFromDocument
()
packages/pen-renderer/src/renderer.ts:261
↓ 3 callersMethodsyncFromDocument
()
packages/pen-engine/src/browser/canvas-renderer.ts:104
↓ 3 callersFunctionsysAbortMerge
(opts: { cwd: string })
apps/desktop/git/worktree-merge.ts:278
↓ 3 callersFunctionsysPush
(opts: { cwd: string; remote?: string; branch: string; env?: Record<string, string>; timeoutMs?: num
apps/desktop/git/git-sys.ts:186
↓ 3 callersFunctionsysReadHead
(opts: { cwd: string })
apps/desktop/git/worktree-merge.ts:299
↓ 3 callersFunctionsysRestoreOurs
(opts: { cwd: string; filepath: string })
apps/desktop/git/worktree-merge.ts:201
↓ 3 callersFunctiontoHex
(v: number)
packages/pen-figma/src/converters/common.ts:186
↓ 3 callersFunctiontoolToCursor
(tool: ToolType | string)
packages/pen-engine/src/browser/interaction/interaction-controller.ts:10
↓ 3 callersFunctiontoolToCursor
(tool: ToolType | string)
apps/web/src/canvas/skia/skia-interaction-types.ts:20
↓ 3 callersFunctiontopoSort
(chunks: PlannedChunk[])
apps/web/server/utils/codegen-plan-store.ts:141
↓ 3 callersFunctiontrimChatHistory
( messages: T[], maxMessages: number = DEFAULT_MAX_MESSAGES, maxChars: number = DEFAULT_MAX_CHARS, )
apps/web/src/services/ai/context-optimizer.ts:64
↓ 3 callersFunctiontryManualPathParse
(ck: CanvasKit, d: string)
packages/pen-renderer/src/path-utils.ts:145
↓ 3 callersFunctiontryNpmInstall
(pkg: string, binary: string)
apps/web/server/api/ai/install-agent.ts:132
↓ 3 callersFunctiontryParseContract
(str: string, chunkId: string)
apps/web/src/services/ai/code-generation-pipeline.ts:160
↓ 3 callersFunctiontryParseDS
(json: string)
apps/web/src/services/ai/design-system-generator.ts:61
↓ 3 callersFunctiontryParseNodes
(json: string)
apps/web/src/services/ai/design-parser.ts:258
↓ 3 callersFunctiontryParsePlan
(text: string, designMd?: DesignMdSpec)
apps/web/src/services/ai/orchestrator-planning.ts:57
↓ 3 callersFunctiontryRepairPlan
( text: string, prompt: string, designMd?: DesignMdSpec, )
apps/web/src/services/ai/orchestrator-planning.ts:76
↓ 3 callersMethodungroupNode
(groupId: string)
packages/pen-engine/src/core/design-engine.ts:157
↓ 3 callersFunctionunregisterSession
(repoId: string)
apps/desktop/git/repo-session.ts:130
↓ 3 callersMethodupdate
* Update PTY session * * Update properties of an existing pseudo-terminal (PTY) session.
apps/web/server/opencode/gen/sdk.gen.ts:684
↓ 3 callersFunctionupdateTrackedFile
(repoId: string, trackedFilePath: string)
apps/desktop/git/repo-session.ts:85
↓ 3 callersFunctionuseGitPanelLogLoader
(kinds: ReadonlyArray<string>)
apps/web/src/components/panels/git-panel/use-git-panel-log-loader.ts:20
↓ 3 callersFunctionviewportMatrix
(vp: ViewportState)
packages/pen-renderer/src/viewport.ts:10
↓ 3 callersFunctionvisit
(node: PenNode)
apps/web/src/services/ai/structure-bundle.ts:114
← previousnext →801–900 of 3,401, ranked by callers