MCPcopy Index your code
hub / github.com/ChatGPTNextWeb/NextChat / createEmptyPlugin

Function createEmptyPlugin

app/store/plugin.ts:158–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156};
157
158export const createEmptyPlugin = () =>
159 ({
160 id: nanoid(),
161 title: "",
162 version: "1.0.0",
163 content: "",
164 builtin: false,
165 createdAt: Date.now(),
166 }) as Plugin;
167
168export const DEFAULT_PLUGIN_STATE = {
169 plugins: {} as Record<string, Plugin>,

Callers 1

createFunction · 0.85

Calls 1

nanoidFunction · 0.85

Tested by

no test coverage detected