MCPcopy Create free account
hub / github.com/Noumena-Network/code / isLocalPluginSource

Function isLocalPluginSource

src/utils/plugins/schemas.ts:1205–1207  ·  view source on GitHub ↗
(source: PluginSource)

Source from the content-addressed store, hash-verified

1203 * @returns true if the source is a local path, false if it's an external source
1204 */
1205export function isLocalPluginSource(source: PluginSource): source is string {
1206 return typeof source === 'string' && source.startsWith('./')
1207}
1208
1209/**
1210 * Whether a marketplace source points at a user-controlled local filesystem path.

Callers 2

installSelectedPluginsFunction · 0.85
installResolvedPluginFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected