MCPcopy
hub / github.com/anomalyco/opencode / createFileEntry

Function createFileEntry

packages/app/src/components/dialog-select-file.tsx:78–84  ·  view source on GitHub ↗
(path: string, category: string)

Source from the content-addressed store, hash-verified

76})
77
78const createFileEntry = (path: string, category: string): Entry => ({
79 id: "file:" + path,
80 type: "file",
81 title: path,
82 category,
83 path,
84})
85
86const createSessionEntry = (
87 input: {

Callers 2

createFileEntriesFunction · 0.85
itemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected