MCPcopy Create free account
hub / github.com/ShipSecAI/studio / isCredentialInput

Function isCredentialInput

frontend/src/utils/portUtils.ts:153–160  ·  view source on GitHub ↗
(input: InputPort)

Source from the content-addressed store, hash-verified

151};
152
153export const isCredentialInput = (input: InputPort): boolean => {
154 const resolved = resolvePortType(input);
155 return (
156 (resolved.kind === 'contract' && resolved.credential) ||
157 input.editor === 'secret' ||
158 input.id === 'connection'
159 );
160};
161
162export const runtimeInputTypeToConnectionType = (type: string): ConnectionType => {
163 const normalized = type.toLowerCase();

Callers 2

ConfigPanelFunction · 0.90

Calls 1

resolvePortTypeFunction · 0.85

Tested by

no test coverage detected