MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / entryFileName

Function entryFileName

src/artifacts/store.ts:78–81  ·  view source on GitHub ↗
(type: ArtifactType)

Source from the content-addressed store, hash-verified

76
77/** The canonical entry filename inside a version folder for a type. */
78export function entryFileName(type: ArtifactType): string {
79 // Web types use index.* so a static server / browser can open the folder directly.
80 return type === 'react' ? `App.${extensionForType(type)}` : `index.${extensionForType(type)}`;
81}
82
83/** Turn a human title into a stable, filesystem-safe kebab id. */
84export function slugifyArtifactId(title: string): string {

Callers 3

createArtifactFunction · 0.85
updateArtifactFunction · 0.85

Calls 1

extensionForTypeFunction · 0.85

Tested by

no test coverage detected