MCPcopy Create free account

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

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

↓ 1 callersFunctionsetPretty
(v: boolean)
apps/cli/src/output.ts:7
↓ 1 callersMethodsetSourceResolver
(resolver: (src: string) => ResolvedImageSource)
packages/pen-renderer/src/image-loader.ts:42
↓ 1 callersFunctionsetSshKeyManager
(mgr: SshKeyManager | null)
apps/desktop/git/git-engine.ts:204
↓ 1 callersMethodsetThemes
(themes: Record<string, string[]>)
packages/pen-engine/src/core/variable-manager.ts:97
↓ 1 callersMethodsetViewport
Set viewport state with zoom clamping.
packages/pen-engine/src/core/viewport-controller.ts:37
↓ 1 callersFunctionsetWrappedLineCounter
(counter: WrappedLineCounter)
packages/pen-core/src/layout/text-measure.ts:236
↓ 1 callersFunctionsetupAutoUpdater
()
apps/desktop/auto-updater.ts:141
↓ 1 callersFunctionsetupGitIPC
()
apps/desktop/git/ipc-handlers.ts:206
↓ 1 callersFunctionsetupIPC
(deps: IpcDeps)
apps/desktop/ipc-handlers.ts:31
↓ 1 callersFunctionshouldApplyLegacyPenCompatibility
(doc: PenDocument, filePath?: string | null)
packages/pen-mcp/src/document-manager.ts:311
↓ 1 callersFunctionshouldApplyLegacyPenCompatibility
( doc: PenDocument, options: ImportSourceOptions, )
apps/web/src/utils/import-pen-document.ts:50
↓ 1 callersFunctionshouldDropDuplicateOpenPathFill
(node: PenNode)
apps/web/src/services/ai/sanitize-llm-anti-patterns.ts:387
↓ 1 callersFunctionshouldStripFill
(childFill: string, rootFill: string | null)
packages/pen-core/src/layout/strip-redundant-section-fills.ts:157
↓ 1 callersFunctionslugifyName
(name: string | undefined, fallback: string)
apps/web/src/services/ai/codegen-assets.ts:50
↓ 1 callersFunctionsolidFill
(color: string)
apps/web/src/services/ai/mobile-status-bar.ts:41
↓ 1 callersFunctionsplitOperations
* Split DSL operations handling multi-line JSON bodies. Splits on newlines * that are OUTSIDE quoted strings and balanced brackets. This lets agents
packages/pen-mcp/src/tools/batch-design.ts:122
↓ 1 callersFunctionsplitSections
(markdown: string)
packages/pen-core/src/design-md-parser.ts:28
↓ 1 callersFunctionsplitTopLevel
(str: string)
packages/pen-mcp/src/tools/batch-design.ts:694
↓ 1 callersMethodstartArcDrag
(_scene: { x: number; y: number }, _engine: DesignEngine)
packages/pen-engine/src/browser/interaction/arc-handler.ts:10
↓ 1 callersMethodstartArcDrag
* Try to start an arc drag. Returns true if an arc handle was hit.
apps/web/src/canvas/skia/skia-interaction-arc.ts:26
↓ 1 callersFunctionstartDesktop
()
apps/cli/src/launcher.ts:116
↓ 1 callersMethodstartDrawing
(tool: ToolType, scene: { x: number; y: number })
packages/pen-engine/src/browser/interaction/draw-handler.ts:17
↓ 1 callersFunctionstartNitroServer
()
apps/desktop/main.ts:238
↓ 1 callersFunctionstartRenameVariant
(tv: string)
apps/web/src/components/panels/variable-theme-manager.tsx:478
↓ 1 callersMethodstartRenderLoop
()
packages/pen-renderer/src/renderer.ts:297
↓ 1 callersMethodstartRenderLoop
()
packages/pen-engine/src/browser/canvas-renderer.ts:202
↓ 1 callersMethodstartRenderLoop
()
apps/web/src/canvas/skia/skia-engine.ts:213
↓ 1 callersMethodstartResize
* Try to start a resize from a handle hit. Returns true if a handle was hit.
apps/web/src/canvas/skia/skia-interaction-resize.ts:41
↓ 1 callersMethodstartRotation
* Try to start a rotation from a rotation zone hit. Returns true if hit.
apps/web/src/canvas/skia/skia-interaction-resize.ts:124
↓ 1 callersFunctionstartWeb
()
apps/cli/src/launcher.ts:137
↓ 1 callersFunctionstopApp
()
apps/cli/src/launcher.ts:175
↓ 1 callersFunctionstopMcpHttpServer
()
apps/web/server/utils/mcp-server-manager.ts:169
↓ 1 callersFunctionstopMcpServer
()
apps/desktop/dev.ts:194
↓ 1 callersFunctionstreamCodexExec
( userPrompt: string, options: CodexExecOptions = {}, )
apps/web/server/utils/codex-client.ts:156
↓ 1 callersFunctionstreamViaAgentSDK
Stream via Claude Agent SDK — emits text/thinking deltas as SSE
apps/web/server/api/ai/generate.ts:307
↓ 1 callersFunctionstreamViaAgentSDK
Stream via Claude Agent SDK (uses local Claude Code OAuth login, no API key needed)
apps/web/server/api/ai/chat.ts:228
↓ 1 callersFunctionstreamViaBuiltin
* Stream via builtin provider — direct API key, no CLI tool needed. * Uses Zig NAPI addon (agent-native) with Anthropic or OpenAI-compatible provider
apps/web/server/api/ai/chat.ts:978
↓ 1 callersFunctionstreamViaCodex
Stream via Codex CLI — emits text/error deltas as SSE
apps/web/server/api/ai/generate.ts:360
↓ 1 callersFunctionstreamViaCodex
(body: ChatBody, model?: string)
apps/web/server/api/ai/chat.ts:530
↓ 1 callersFunctionstreamViaCopilot
Stream via GitHub Copilot SDK (@github/copilot-sdk)
apps/web/server/api/ai/chat.ts:899
↓ 1 callersFunctionstreamViaGemini
Stream via Gemini CLI — emits text deltas as SSE
apps/web/server/api/ai/generate.ts:447
↓ 1 callersFunctionstreamViaGemini
Stream via Gemini CLI (`gemini -p -o stream-json`) — CLI handles its own auth
apps/web/server/api/ai/chat.ts:843
↓ 1 callersFunctionstreamViaOpenCode
Stream via OpenCode SDK — emits text/thinking deltas as SSE
apps/web/server/api/ai/generate.ts:385
↓ 1 callersFunctionstreamViaOpenCode
Stream via OpenCode SDK using event subscription for real-time streaming
apps/web/server/api/ai/chat.ts:598
↓ 1 callersFunctionstreamWithTimeout
Wrap an async generator with a timeout — yields values until timeout fires
apps/web/server/api/ai/chat.ts:519
↓ 1 callersFunctionstripEmptySlots
(params: Params)
apps/web/server/opencode/v2/gen/core/params.gen.ts:97
↓ 1 callersFunctionstripEmptySlots
(params: Params)
apps/web/server/opencode/gen/core/params.gen.ts:97
↓ 1 callersFunctionstripNoToolsRestriction
* Strip "NEVER use tools" and similar instructions from system prompt * when we need Claude Code Agent SDK to use its Read tool for image analysis.
apps/web/server/api/ai/chat.ts:223
↓ 1 callersFunctionstripNoise
* Strip fields that don't influence code generation. Keeps request bodies small * enough that proxies don't reject them with 403/413, and reduces inp
apps/web/src/services/ai/codegen-prompts.ts:15
↓ 1 callersFunctionstripNonStandardTags
* Strip non-standard XML-like tags that third-party models may inject * (e.g. `<minimax:tool_call>`, `<tool_call>`, `<|im_start|>`). * Preserves con
apps/web/src/services/ai/design-parser.ts:25
↓ 1 callersFunctionstripStepBlocks
(text: string)
apps/web/src/components/panels/chat-message-tool-call.tsx:52
↓ 1 callersFunctionstripToolCallBlocks
* Strip fake tool call blocks that basic-tier models (MiniMax, etc.) may emit. * These look like `{tool => "Write", args => { ... }}` and are not val
apps/web/src/services/ai/design-parser.ts:38
↓ 1 callersFunctionstripToolCallXml
Strip raw tool-call / function-call XML that should never be shown to users
apps/web/src/components/panels/chat-message.tsx:25
↓ 1 callersFunctionsubmitAuthAndRetry
( which: 'pull' | 'push', creds: GitAuthCreds, remember: boolean, )
apps/web/src/components/panels/git-panel/git-panel-remote-controls.tsx:164
↓ 1 callersFunctionsummarizeNode
(n: PenNode, depth = 0)
apps/web/src/components/panels/design-md-ai-generator.ts:100
↓ 1 callersFunctiontick
()
apps/web/server/utils/sse-keepalive.ts:5
↓ 1 callersFunctiontimestamp
()
apps/desktop/logger.ts:24
↓ 1 callersFunctiontimestamp
()
apps/web/server/utils/server-logger.ts:35
↓ 1 callersFunctiontoFileUrl
(filePath: string)
apps/web/src/utils/document-assets.ts:94
↓ 1 callersFunctiontoHex7
Convert any CSS color string to #rrggbb for <input type="color">.
packages/pen-react/src/components/color-picker.tsx:5
↓ 1 callersFunctiontoHex7
Convert any CSS color string to #rrggbb for <input type="color">.
apps/web/src/components/shared/color-picker.tsx:5
↓ 1 callersFunctiontoKebabCase
* Convert concatenated lowercase to kebab-case for icon name matching. * e.g. "arrowright" → "arrow-right", "chevrondown" → "chevron-down"
apps/web/server/api/ai/icon.ts:211
↓ 1 callersFunctiontoRelativePath
(baseDir: string, targetPath: string)
apps/web/src/utils/document-assets.ts:119
↓ 1 callersFunctiontoRuntimeLocalAssetUrl
(filePath: string)
apps/web/src/utils/document-assets.ts:108
↓ 1 callersFunctiontodayStamp
()
packages/pen-mcp/src/tools/debug-logs-tail.ts:29
↓ 1 callersFunctiontodayStamp
()
apps/desktop/logger.ts:28
↓ 1 callersFunctiontodayStamp
()
apps/web/server/utils/server-logger.ts:31
↓ 1 callersFunctiontokenize
(code: string, rules: TokenRule[])
apps/web/src/utils/syntax-highlight.ts:90
↓ 1 callersFunctiontouch
(planId: string)
apps/web/server/utils/codegen-plan-store.ts:40
↓ 1 callersFunctiontrackNewIds
(n: PenNode)
apps/web/src/services/ai/design-canvas-ops.ts:205
↓ 1 callersFunctiontransfer8to32
(fileByte: Uint8Array, start: number)
packages/pen-figma/src/fig-parser.ts:32
↓ 1 callersFunctiontryAutoInstall
(agent: string, binary: string)
apps/web/server/api/ai/install-agent.ts:115
↓ 1 callersFunctiontryCopilotInstall
(binary: string)
apps/web/server/api/ai/install-agent.ts:181
↓ 1 callersFunctiontryImmediateIconResolution
(nodeId: string, iconName: string)
apps/web/src/services/ai/icon-font-fetcher.ts:19
↓ 1 callersFunctiontryOpenCodeInstall
(binary: string)
apps/web/server/api/ai/install-agent.ts:159
↓ 1 callersFunctiontryParseSingleRootNode
* Try to parse a single root PenNode with nested children from raw text. * Handles the case where weaker models output a single JSON object * instea
apps/web/src/services/ai/design-parser.ts:243
↓ 1 callersFunctiontryPasteFigmaFromClipboard
()
apps/web/src/hooks/use-figma-paste.ts:107
↓ 1 callersFunctiontryReadGifSize
(bytes: Uint8Array)
apps/web/src/services/ai/consumer-view-enrichment.ts:91
↓ 1 callersFunctiontryReadJpegSize
(bytes: Uint8Array)
apps/web/src/services/ai/consumer-view-enrichment.ts:98
↓ 1 callersFunctiontryReadPngSize
(bytes: Uint8Array)
apps/web/src/services/ai/consumer-view-enrichment.ts:84
↓ 1 callersFunctionuninstallMcpServer
(config: Record<string, any>)
apps/web/server/api/ai/mcp-install.ts:213
↓ 1 callersFunctionupdateFeedback
( entry: HistoryEntry, feedback: NonNullable<HistoryEntry['feedback']>, )
packages/pen-ai-skills/src/memory/generation-history.ts:41
↓ 1 callersFunctionupsertPreparedNodes
Same as upsertNodesToCanvas but skips sanitization (caller already did it).
apps/web/src/services/ai/design-canvas-ops.ts:496
↓ 1 callersMethoduse
(fn: Interceptor)
apps/web/server/opencode/gen/client/utils.gen.ts:269
↓ 1 callersFunctionuseBeforeUnload
()
apps/web/src/hooks/use-before-unload.ts:9
↓ 1 callersFunctionuseChatHandlers
()
apps/web/src/components/panels/ai-chat-handlers.ts:483
↓ 1 callersFunctionuseClipboardShortcuts
()
apps/web/src/hooks/use-clipboard-shortcuts.ts:18
↓ 1 callersFunctionuseDesignMdAIGenerator
()
apps/web/src/components/panels/design-md-ai-generator.ts:147
↓ 1 callersFunctionuseDesignMdActions
()
apps/web/src/components/panels/design-md-actions.tsx:15
↓ 1 callersFunctionuseEditShortcuts
()
apps/web/src/hooks/use-edit-shortcuts.ts:10
↓ 1 callersFunctionuseElectronMenu
()
apps/web/src/hooks/use-electron-menu.ts:38
↓ 1 callersFunctionuseFigmaPaste
()
apps/web/src/hooks/use-figma-paste.ts:132
↓ 1 callersFunctionuseFileDrop
()
apps/web/src/hooks/use-file-drop.ts:34
↓ 1 callersFunctionuseHistory
()
packages/pen-react/src/hooks/use-history.ts:19
↓ 1 callersFunctionuseHistoryShortcuts
()
apps/web/src/hooks/use-history-shortcuts.ts:6
↓ 1 callersFunctionuseKeyboardShortcuts
()
apps/web/src/hooks/use-keyboard-shortcuts.ts:6
↓ 1 callersFunctionuseMcpSync
()
apps/web/src/hooks/use-mcp-sync.ts:137
↓ 1 callersFunctionuseSystemFonts
()
packages/pen-react/src/components/font-picker.tsx:72
↓ 1 callersFunctionuseSystemFonts
()
apps/web/src/hooks/use-system-fonts.ts:116
↓ 1 callersFunctionuseToolShortcuts
()
apps/web/src/hooks/use-tool-shortcuts.ts:17
← previousnext →2,301–2,400 of 3,401, ranked by callers