MCPcopy Create free account

hub / github.com/cremich/promptz / functions

Functions244 in github.com/cremich/promptz

↓ 64 callersFunctioncn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 30 callersFunctionslugToId
(slug: string)
lib/formatter/slug.ts:27
↓ 28 callersFunctionisValidSlug
(slug: string)
lib/formatter/slug.ts:82
↓ 26 callersFunctionidToSlug
(id: string)
lib/formatter/slug.ts:9
↓ 22 callersFunctiongetLibraryName
(path: string)
lib/library.ts:25
↓ 17 callersFunctioncompareDatesNewestFirst
( dateA: string | undefined | null, dateB: string | undefined | null, )
lib/formatter/date.ts:93
↓ 17 callersFunctiondirectoryExists
(dirPath: string)
scripts/library-file-parser.ts:60
↓ 13 callersFunctionvalidateSearchIndex
(data: unknown)
lib/search.ts:44
↓ 11 callersFunctioncreateSearchError
(type: SearchErrorType, originalError?: unknown)
lib/search.ts:110
↓ 11 callersFunctiongetShortHash
(fullHash: string)
lib/formatter/git.ts:4
↓ 10 callersFunctioncreateEmptyLibrary
* Create an empty library structure * Replicates logic from lib/content-service.ts
scripts/generate-library-data.ts:727
↓ 10 callersFunctionhighlightMatches
(text: string, matches?: readonly FuseResultMatch[])
lib/search.ts:20
↓ 10 callersFunctionuseSearchModal
({ isOpen, onNavigate, onClose, loadSearchIndex = defaultLoadSearchIndex }: UseSearchModalOptions)
components/search/useSearchModal.ts:59
↓ 10 callersFunctionwriteJsonFile
* Write JSON data to file
scripts/generate-library-data.ts:248
↓ 9 callersFunctionformatDate
( dateInput: string | undefined | null, options: Intl.DateTimeFormatOptions = DEFAULT_DATE_OPTIONS, )
lib/formatter/date.ts:23
↓ 8 callersFunctiongetModalitySupport
(contentType: string)
components/modality-badge.tsx:34
↓ 7 callersFunctiongetDisplayAuthor
(content: ContentItem, fallback = 'Unknown Author')
lib/formatter/content.ts:7
↓ 7 callersFunctiongetFilesWithExtension
(dirPath: string, extension: string)
scripts/library-file-parser.ts:87
↓ 7 callersFunctionsafeFileRead
(filePath: string)
scripts/library-file-parser.ts:13
↓ 6 callersFunctioncreateMockResult
(overrides: Partial<SearchIndexItem> = {})
__tests__/unit/components/search/search-results.test.tsx:19
↓ 6 callersFunctiongeneratePathId
(libraryName: string, contentType: string, itemName: string)
scripts/library-file-parser.ts:110
↓ 6 callersFunctiongetAuthorAndDate
( frontmatterData: Record<string, unknown>, filePath: string, useDirectory = false )
scripts/metadata-extractor.ts:22
↓ 5 callersFunctioncreateMockContent
(path: string)
__tests__/unit/components/library-badge.test.tsx:29
↓ 5 callersFunctiongenerateTitleFromFilename
(filename: string)
scripts/library-file-parser.ts:100
↓ 5 callersFunctionreadJsonFile
* Read JSON file with error handling
scripts/build-search-index.ts:107
↓ 4 callersFunctionfilenameToSlug
(filename: string)
scripts/library-file-parser.ts:117
↓ 4 callersFunctiongenerateSlug
(text: string)
mdx-components.tsx:13
↓ 4 callersFunctiongetDirectories
(dirPath: string)
scripts/library-file-parser.ts:72
↓ 4 callersFunctiongetFormattedDisplayDate
( gitCreatedDate: string | undefined | null, frontmatterDate: string | undefined | null, )
lib/formatter/date.ts:51
↓ 4 callersFunctionparseYamlFrontmatter
(content: string)
scripts/library-file-parser.ts:25
↓ 4 callersFunctionreadSteering
* Read steering documents from a directory * Replicates logic from lib/content-service.ts
scripts/generate-library-data.ts:616
↓ 4 callersFunctionuseSearch
()
components/search-provider.tsx:13
↓ 3 callersFunctionformatGitDate
(gitDate: string)
scripts/git-extractor.ts:222
↓ 3 callersFunctiongetContentText
* Get content text from content item
scripts/build-search-index.ts:164
↓ 2 callersFunctionextractAgentMetadata
( libraryName: string, agentFile: string, agentPath: string )
scripts/metadata-extractor.ts:139
↓ 2 callersFunctionextractSteeringMetadata
( libraryName: string, steeringFile: string, steeringPath: string )
scripts/metadata-extractor.ts:301
↓ 2 callersFunctionfindGitRoot
* Find the git repository root for a given file path
scripts/git-extractor.ts:79
↓ 2 callersFunctiongetDateTimestamp
* Format date for sorting purposes (returns timestamp) * Used internally for date-based sorting operations * * @param dateInput - Date string from
lib/formatter/date.ts:77
↓ 2 callersFunctiongetGitInstance
* Get or create a git instance for a repository
scripts/git-extractor.ts:21
↓ 2 callersFunctioninitParticles
()
components/animations/pixel-particles.tsx:54
↓ 2 callersFunctionreadHooks
* Read hooks from a directory * Replicates logic from lib/content-service.ts
scripts/generate-library-data.ts:645
↓ 2 callersFunctionreadPowers
* Read powers from a directory * Replicates logic from lib/content-service.ts
scripts/generate-library-data.ts:528
↓ 2 callersFunctionreadPrompts
* Read prompts from a directory * Replicates logic from lib/content-service.ts
scripts/generate-library-data.ts:587
↓ 2 callersFunctionresizeCanvas
()
components/animations/pixel-particles.tsx:39
↓ 1 callersFunctionanimate
()
components/animations/pixel-particles.tsx:59
↓ 1 callersFunctionbuildSearchIndex
* Main function to generate search index
scripts/build-search-index.ts:28
↓ 1 callersFunctioncalculateLibraryStats
* Calculate content statistics for a library
lib/libraries.ts:165
↓ 1 callersFunctioncloseSearch
()
components/search-provider.tsx:29
↓ 1 callersFunctionconstructGitHubUrl
(content: ContentItem)
components/github-link.tsx:23
↓ 1 callersFunctioncreateMockSearchIndex
()
__tests__/unit/components/search/useSearchModal.test.ts:5
↓ 1 callersFunctioncreateParticle
()
components/animations/pixel-particles.tsx:44
↓ 1 callersFunctionensureDataDirectory
* Ensure data directory exists
scripts/generate-library-data.ts:98
↓ 1 callersFunctionextractDescription
* Extract description from README content
lib/libraries.ts:113
↓ 1 callersFunctionextractDescription
* Extract description from content item
scripts/build-search-index.ts:141
↓ 1 callersFunctionextractGitDirectoryInfo
(dirPath: string)
scripts/git-extractor.ts:149
↓ 1 callersFunctionextractGitFileInfo
(filePath: string)
scripts/git-extractor.ts:31
↓ 1 callersFunctionextractHookMetadata
( libraryName: string, hookFile: string, hookPath: string )
scripts/metadata-extractor.ts:349
↓ 1 callersFunctionextractKeywords
* Extract keywords from content item
scripts/build-search-index.ts:181
↓ 1 callersFunctionextractLibraryName
* Extract library name from content ID
scripts/build-search-index.ts:134
↓ 1 callersFunctionextractOwner
* Extract owner from repository URL
lib/libraries.ts:152
↓ 1 callersFunctionextractPowerMetadata
( libraryName: string, powerName: string, powerPath: string )
scripts/metadata-extractor.ts:74
↓ 1 callersFunctionextractPromptContent
* Extract prompt content from config (embedded or external file)
scripts/metadata-extractor.ts:196
↓ 1 callersFunctionextractPromptMetadata
( libraryName: string, promptFile: string, promptPath: string )
scripts/metadata-extractor.ts:253
↓ 1 callersFunctiongenerateAgentsData
* Generate agents.json
scripts/generate-library-data.ts:137
↓ 1 callersFunctiongenerateDetailPath
* Generate detail page path for content item
scripts/build-search-index.ts:208
↓ 1 callersFunctiongenerateHookMetadata
(hook: Hook)
app/hooks/[id]/page.tsx:56
↓ 1 callersFunctiongenerateHooksData
* Generate hooks.json
scripts/generate-library-data.ts:220
↓ 1 callersFunctiongenerateLibraryData
* Main function to generate all static JSON data
scripts/generate-library-data.ts:37
↓ 1 callersFunctiongeneratePowersData
* Generate powers.json
scripts/generate-library-data.ts:163
↓ 1 callersFunctiongeneratePromptsData
* Generate prompts.json
scripts/generate-library-data.ts:111
↓ 1 callersFunctiongenerateSteeringData
* Generate steering.json
scripts/generate-library-data.ts:190
↓ 1 callersFunctiongetBadgeArrangement
* Get badge arrangement configuration for different display contexts
components/badge-container.tsx:14
↓ 1 callersFunctiongetContentDescription
(content: ContentItem)
components/content-header.tsx:18
↓ 1 callersFunctiongetContentTitle
(content: ContentItem)
components/content-header.tsx:11
↓ 1 callersFunctiongetContentTypeStyles
* Get the appropriate styling for content type badges using brand colors * Each content type gets a distinct color from the brand palette
components/content-type-badge.tsx:13
↓ 1 callersFunctiongetDisplayTitle
(content: ContentItem)
lib/formatter/content.ts:14
↓ 1 callersFunctiongetLibraryBadgeVariant
* Get the appropriate badge variant and styling for library source badges
components/library-badge.tsx:18
↓ 1 callersFunctiongetLibraryCategory
* Determine library category based on owner and name
lib/libraries.ts:137
↓ 1 callersFunctiongetLibraryReadme
* Read README content for a library
lib/libraries.ts:99
↓ 1 callersFunctiongetLibraryStats
()
app/library/page.tsx:39
↓ 1 callersFunctiongetPluralType
* Convert singular content type to plural for ID lookup
lib/formatter/slug.ts:67
↓ 1 callersFunctiongetRelevantCommits
* Filter commits that affected the given directory
scripts/git-extractor.ts:130
↓ 1 callersFunctiongetRepositoryInfo
* Extract repository information from git submodules
lib/libraries.ts:42
↓ 1 callersFunctiongetShortHash
(fullHash: string)
components/contributor-info.tsx:12
↓ 1 callersFunctiongetShortHash
(fullHash: string)
scripts/git-extractor.ts:237
↓ 1 callersFunctionhandleMarkdownPrompt
* Handle markdown prompt with frontmatter
scripts/metadata-extractor.ts:235
↓ 1 callersFunctioninitializeFuse
()
components/search/useSearchModal.ts:80
↓ 1 callersFunctionisCommitRelevantToDirectory
* Check if a commit affects the given directory
scripts/git-extractor.ts:106
↓ 1 callersFunctionloadAllSteeringFiles
( power: Power )
app/powers/[id]/page.tsx:109
↓ 1 callersFunctionloadSteeringFileContent
( power: Power, filename: string )
app/powers/[id]/page.tsx:93
↓ 1 callersFunctionopenSearch
()
components/search-provider.tsx:28
↓ 1 callersFunctionparseAgentConfig
* Parse agent JSON configuration file
scripts/metadata-extractor.ts:178
↓ 1 callersFunctionparseGitmodules
* Parse gitmodules content and extract repository information
lib/libraries.ts:55
↓ 1 callersFunctionparseJsonConfig
(filePath: string)
scripts/library-file-parser.ts:45
↓ 1 callersFunctionparseSubmoduleBlock
* Parse a single submodule block
lib/libraries.ts:72
↓ 1 callersFunctionprocessLibrary
* Process a single library and create LibraryInfo
lib/libraries.ts:204
↓ 1 callersFunctionreadAgents
* Read agents from a directory * Updated to handle both JSON-only and JSON+MD agent patterns
scripts/generate-library-data.ts:557
↓ 1 callersFunctionreadAgentsFromKiroAgentDir
* Read agents from a single kiro-agent directory
scripts/generate-library-data.ts:429
↓ 1 callersFunctionreadAgentsFromKiroAgents
* Read agents from kiro-agents directory structure * Each subdirectory contains a .kiro/agents folder with JSON agent configs
scripts/generate-library-data.ts:410
↓ 1 callersFunctionreadExternalPromptFile
* Read external prompt file and handle frontmatter
scripts/metadata-extractor.ts:211
next →1–100 of 244, ranked by callers