MCPcopy Create free account

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

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

↓ 4 callersFunctionparseJsonArg
Parse a JSON-like argument, handling unquoted keys.
packages/pen-mcp/src/tools/batch-design.ts:527
↓ 4 callersFunctionpathDataToAnchors
(d: string)
packages/pen-core/src/path-anchors.ts:20
↓ 4 callersFunctionpushRef
( asset: CodegenAssetFile, bucket: 'rawRefs' | 'sanitizedRefs', ref: AIStructureBundleRef, )
apps/web/src/services/ai/structure-bundle.ts:230
↓ 4 callersFunctionreadLogTail
(opts: ReadLogTailOptions)
packages/pen-mcp/src/utils/log-utils.ts:47
↓ 4 callersFunctionrect
(id: string, x?: number, y?: number)
apps/web/src/stores/document-position-utils.test.ts:6
↓ 4 callersFunctionregisterPending
(requestId: string, timeoutMs: number)
apps/web/server/utils/mcp-screenshot-rpc.ts:42
↓ 4 callersMethodremovePage
(pageId: string)
packages/pen-engine/src/core/page-manager.ts:65
↓ 4 callersMethodrender
()
packages/pen-engine/src/browser/canvas-bindings.ts:6
↓ 4 callersMethodrender
()
apps/web/src/canvas/skia/skia-engine.ts:223
↓ 4 callersFunctionrenderWithProvider
(ui: React.ReactElement)
apps/web/src/components/panels/git-panel/__tests__/git-panel-empty-state.test.tsx:46
↓ 4 callersFunctionrenderWithProvider
(ui: React.ReactElement)
apps/web/src/components/panels/git-panel/__tests__/git-panel-ready.test.tsx:71
↓ 4 callersFunctionreplaceEmptyFrame
* Replace the active page's empty root frame with the generated frame * node, preserving the existing frame id so canvas sync continues to * work. R
apps/web/src/services/ai/design-canvas-ops.ts:830
↓ 4 callersFunctionrequireSshKeyManager
()
apps/desktop/git/ipc-handlers.ts:62
↓ 4 callersFunctionrequireSyncUrl
()
apps/cli/src/commands/codegen.ts:11
↓ 4 callersFunctionresetActivityTimeout
()
apps/web/src/services/ai/ai-service.ts:98
↓ 4 callersFunctionresolveArg
(arg: string | undefined)
apps/cli/src/output.ts:40
↓ 4 callersFunctionresolveFillColor
(fills?: PenFill[] | string)
packages/pen-renderer/src/paint-utils.ts:74
↓ 4 callersFunctionresolveFillColor
(fills: PenFill[] | undefined, vars: Vars)
apps/web/src/components/panels/node-preview-svg.tsx:28
↓ 4 callersFunctionresolveLayerDropMove
( dragId: string, overId: string, pos: Exclude<DropPosition, null>, rootChildren: PenNode[], getPare
apps/web/src/components/panels/layer-dnd-utils.ts:14
↓ 4 callersFunctionresolveOrReplace
(val: string)
packages/pen-core/src/variables/replace-refs.ts:26
↓ 4 callersFunctionresolveServableLocalImagePath
(path: string)
apps/web/server/utils/local-asset.ts:17
↓ 4 callersFunctionresolveStrokeColor
(stroke?: PenStroke)
packages/pen-renderer/src/paint-utils.ts:86
↓ 4 callersFunctionresolveStrokeColor
(node: PenNode, vars: Vars)
apps/web/src/components/panels/node-preview-svg.tsx:40
↓ 4 callersFunctionresolveStrokeWidth
(stroke?: PenStroke)
packages/pen-renderer/src/paint-utils.ts:95
↓ 4 callersFunctionresolveStrokeWidth
(node: PenNode, vars: Vars)
apps/web/src/components/panels/node-preview-svg.tsx:53
↓ 4 callersMethodresolveVariable
(ref: string)
packages/pen-engine/src/core/design-engine.ts:351
↓ 4 callersFunctionrunOrError
Run an action; thrown GitError transitions to the generic error state.
apps/web/src/stores/git-store.ts:75
↓ 4 callersFunctionsafeEnqueue
(chunk: Uint8Array)
apps/web/server/api/ai/agent.ts:607
↓ 4 callersFunctionscaleSvgPath
* Scale all coordinates in an SVG path `d` string by a factor. * Handles M/L/C/S/Q/T/H/V/A commands (both absolute and relative). * For arc (A) comm
packages/pen-engine/src/core/svg-parser.ts:567
↓ 4 callersMethodscreenToScene
(x: number, y: number)
packages/pen-engine/src/core/design-engine.ts:260
↓ 4 callersFunctionserializePrimitiveParam
({ allowReserved, name, value, }: SerializePrimitiveParam)
apps/web/server/opencode/v2/gen/core/pathSerializer.gen.ts:109
↓ 4 callersFunctionserializePrimitiveParam
({ allowReserved, name, value, }: SerializePrimitiveParam)
apps/web/server/opencode/gen/core/pathSerializer.gen.ts:109
↓ 4 callersFunctionsessionCount
()
apps/desktop/git/repo-session.ts:143
↓ 4 callersMethodsetPageChildren
(children: PenNode[])
packages/pen-engine/src/core/document-manager.ts:73
↓ 4 callersFunctionshouldShortCircuitPlanLayout
( session: LayoutSessionState, toolName: string, input: unknown, )
apps/web/server/utils/agent-tool-guard.ts:23
↓ 4 callersMethodstatus
* Get MCP status * * Get the status of all Model Context Protocol (MCP) servers.
apps/web/server/opencode/gen/sdk.gen.ts:3202
↓ 4 callersFunctionstripThinkTags
Strip <think>...</think> tags (closed and unclosed) from model text output.
apps/web/src/components/panels/ai-chat-handlers.ts:170
↓ 4 callersFunctionsubmitChunkResult
( planId: string, result: ChunkResult, statusOverride?: 'failed' | 'skipped', )
apps/web/server/utils/codegen-plan-store.ts:248
↓ 4 callersFunctionsubscribeToActivePageChildren
(onSync: () => void)
apps/web/src/canvas/canvas-document-sync.ts:12
↓ 4 callersFunctionsysAheadBehind
(opts: { cwd: string; branch: string; remote?: string; env?: Record<string, string>; })
apps/desktop/git/git-sys.ts:205
↓ 4 callersFunctionsysFinalizeMerge
(opts: { cwd: string; message: string; author: { name: string; email: string }; env?: Record<string, s
apps/desktop/git/worktree-merge.ts:238
↓ 4 callersFunctiontext
(props: NodeProps = {})
packages/pen-core/src/__tests__/normalize-stroke-fill-schema.test.ts:39
↓ 4 callersFunctiontoHex
(n: number)
packages/pen-figma/src/figma-color-utils.ts:19
↓ 4 callersFunctiontoHex
(n: number)
apps/web/src/services/figma/figma-color-utils.ts:19
↓ 4 callersFunctiontoHex7
Convert any CSS color string to #rrggbb for <input type="color">.
apps/web/src/components/panels/variable-row.tsx:8
↓ 4 callersFunctiontoOpenInfo
(session: RepoSession)
apps/desktop/git/git-engine.ts:380
↓ 4 callersFunctiontoStrokeThicknessNumber
( stroke: { thickness?: number | [number, number, number, number] } | undefined, fallback: number, )
apps/web/src/services/ai/generation-utils.ts:36
↓ 4 callersFunctionupdateLayoutSessionState
( session: LayoutSessionState, toolName: string | undefined, result: ToolResult, )
apps/web/server/utils/agent-tool-guard.ts:45
↓ 4 callersFunctionvaluesEqual
* Compare two values for equality. Handles arrays (cornerRadius, padding) * and primitives.
packages/pen-mcp/src/routes/style-operations-routes.ts:94
↓ 4 callersFunctionvisit
(node: PenNode)
apps/web/src/services/ai/codegen-assets.ts:164
↓ 4 callersMethodwaitForSettled
* Drive the engine to a stable rendered state suitable for readback. * * This must work regardless of whether the editor tab is focused. The
apps/web/src/canvas/skia/skia-engine.ts:524
↓ 4 callersFunctionwalk
(node: PenNode, parentFillColor: string | null)
packages/pen-ai-skills/src/diagnostics/detectors.ts:135
↓ 4 callersFunctionwalkCandidates
* Walk the worktree for *.op files (and *.pen, since the editor accepts both). * Skips: * - dotfiles and dotdirs (.git, .op-history, .DS_Store, ..
apps/desktop/git/git-engine.ts:502
↓ 4 callersFunctionwhich
(cmd: string)
apps/cli/src/commands/install.ts:37
↓ 4 callersFunctionwinNpmCandidates
Windows npm global installs may create .cmd or .ps1 wrappers — try both
apps/web/server/utils/resolve-claude-cli.ts:11
↓ 4 callersFunctionwinNpmCandidates
Windows npm global installs may create .cmd or .ps1 wrappers — try both
apps/web/server/utils/resolve-gemini-cli.ts:11
↓ 4 callersFunctionwinNpmCandidates
Windows npm global installs may create .cmd or .ps1 wrappers — try both
apps/web/server/utils/copilot-client.ts:10
↓ 4 callersFunctionwriteLine
(level: string, msg: string)
apps/desktop/logger.ts:32
↓ 3 callersFunction_setChildren
Shortcut: return a new document with active page's children replaced.
apps/web/src/stores/document-store-component-actions.ts:23
↓ 3 callersFunctionaddAgentFrame
(frameId: string, color: string, name: string)
apps/web/src/canvas/agent-indicator.ts:62
↓ 3 callersFunctionaddAgentIndicatorRecursive
( node: { id: string; children?: { id: string; children?: unknown[] }[] }, color: string, name: string,
apps/web/src/canvas/agent-indicator.ts:101
↓ 3 callersFunctionapplyGenerationHeuristics
(node: PenNode)
apps/web/src/services/ai/design-canvas-ops.ts:618
↓ 3 callersFunctionapplyIconStyle
Apply stroke/fill styling to a resolved icon node (caller must ensure path type).
apps/web/src/services/ai/icon-resolver.ts:178
↓ 3 callersFunctionapplyPostStreamingTreeHeuristics
(rootNodeId: string)
apps/web/src/services/ai/design-canvas-ops.ts:652
↓ 3 callersFunctionapplyZoom
(newZoom: number)
packages/pen-react/src/components/status-bar.tsx:15
↓ 3 callersFunctionapplyZoom
(newZoom: number)
apps/web/src/components/editor/status-bar.tsx:14
↓ 3 callersFunctionbasePlan
()
apps/web/src/services/ai/__tests__/orchestrator-append.test.ts:5
↓ 3 callersMethodbatch
(fn: () => void)
packages/pen-engine/src/core/design-engine.ts:320
↓ 3 callersFunctionbuildCompactPlanningPrompt
( prompt: string, _model?: string, designMd?: DesignMdSpec, )
apps/web/src/services/ai/orchestrator-prompt-optimizer.ts:352
↓ 3 callersFunctionbuildConflictState
( repo: RepoMeta, bag: GitConflictBag | null, unresolvedFiles: string[], finalizeError: string | null
apps/web/src/stores/git-store-helpers.ts:332
↓ 3 callersMethodbuildImageAdjustmentFilter
(adj: { exposure?: number; contrast?: number; saturation?: number; temperature?: number; t
packages/pen-renderer/src/node-renderer.ts:353
↓ 3 callersFunctionbuildRawAssetUri
(assetId: string)
apps/web/src/services/ai/structure-bundle.ts:218
↓ 3 callersFunctionbuildSshCommand
(privateKeyPath: string)
apps/desktop/git/git-sys.ts:278
↓ 3 callersFunctionbuildUnsavedChangesDialogOptions
(labels: UnsavedChangesDialogLabels)
apps/desktop/unsaved-changes-dialog.ts:11
↓ 3 callersMethodcanUndo
()
packages/pen-engine/src/core/design-engine.ts:310
↓ 3 callersFunctioncheckForAppUpdates
(force = false)
apps/desktop/auto-updater.ts:94
↓ 3 callersFunctioncleanup
(session: AgentSession)
apps/web/server/utils/agent-sessions.ts:106
↓ 3 callersFunctionclearSyncUrl
()
packages/pen-mcp/src/document-manager.ts:36
↓ 3 callersFunctioncollectChunkAssetHints
( chunkNodes: PenNode[], assets: CodegenAssetFile[], )
apps/web/src/services/ai/codegen-assets.ts:188
↓ 3 callersFunctioncollectComponents
( node: TreeNode, map: Map<string, string>, genId: () => string, )
packages/pen-figma/src/figma-tree-builder.ts:111
↓ 3 callersFunctioncollectInstanceIds
(nodes: PenNode[], result: Set<string>)
packages/pen-renderer/src/document-flattener.ts:402
↓ 3 callersFunctioncollectReusableIds
(nodes: PenNode[], result: Set<string>)
packages/pen-renderer/src/document-flattener.ts:391
↓ 3 callersFunctioncollectStreamText
* Collect all text content from a streamChat call. * Adapts the AIStreamChunk-based generator to return a plain string. * Throws on error chunks fro
apps/web/src/services/ai/code-generation-pipeline.ts:475
↓ 3 callersFunctioncompactSubAgentSkills
( skills: T[], tier: 'full' | 'standard' | 'basic', isMobileScreen: boolean, hasExplicitStyleGuide: bo
apps/web/src/services/ai/orchestrator-sub-agent-compact.ts:4
↓ 3 callersFunctioncompileSkills
(packageRoot: string)
packages/pen-ai-skills/vite-plugin-skills.ts:143
↓ 3 callersFunctioncomputeExecutionOrder
(chunks: PlannedChunk[])
apps/web/src/services/ai/code-generation-pipeline.ts:86
↓ 3 callersFunctionconfirmUnsaved
()
apps/web/src/hooks/use-electron-menu.ts:13
↓ 3 callersFunctioncornerRadiusValue
( cr: number | [number, number, number, number] | undefined, )
packages/pen-renderer/src/paint-utils.ts:54
↓ 3 callersFunctioncreateDocumentSyncScheduler
( getEngine: () => SyncableEngine | null, requestFrame: (cb: (time: number) => void) => number = (cb) => r
apps/web/src/canvas/skia/document-sync-scheduler.ts:6
↓ 3 callersFunctioncreateLocalRuntimeAssetSource
(sourcePath: string)
apps/web/src/utils/document-assets.ts:170
↓ 3 callersFunctioncreateMockEngine
()
packages/pen-react/src/__tests__/use-document.test.tsx:8
↓ 3 callersFunctioncreateMockEngine
()
packages/pen-react/src/__tests__/toolbar.test.tsx:9
↓ 3 callersFunctioncreateMockEngine
()
packages/pen-react/src/__tests__/design-canvas.test.tsx:39
↓ 3 callersFunctioncreateMockEngine
(selectedNode: any = null, selection: string[] = [])
packages/pen-react/src/__tests__/property-panel.test.tsx:7
↓ 3 callersFunctioncreateProviderHandle
( providerType: 'anthropic' | 'openai-compat', apiKey: string, model: string, baseURL?: string, maxC
apps/web/server/api/ai/agent.ts:395
↓ 3 callersFunctioncreateSshKeyManager
(opts: SshKeyManagerOpts)
apps/desktop/git/ssh-keys.ts:47
↓ 3 callersFunctiondecodeFileUrl
(url: string)
apps/web/src/utils/document-assets.ts:147
↓ 3 callersFunctiondesignMdColorsToVariables
( colors: DesignMdColor[], )
packages/pen-core/src/design-md-parser.ts:351
↓ 3 callersFunctiondetectActiveDocumentTheme
* Resolve the theme that should drive role defaults for an incoming * batch of nodes. * * Detection order — INPUT NODES FIRST, then live store: *
apps/web/src/services/ai/design-canvas-ops.ts:955
↓ 3 callersFunctiondetectThemeFromNode
(node: PenNode)
apps/web/src/services/ai/role-resolver.ts:468
← previousnext →601–700 of 3,401, ranked by callers