MCPcopy Create free account
hub / github.com/simstudioai/sim / credBlock

Function credBlock

apps/sim/lib/workspaces/fork/remap/remap-references.test.ts:481–497  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479
480describe('scanWorkflowReferences canonical-pair detection', () => {
481 const credBlock = () =>
482 blockWith([
483 {
484 id: 'credential',
485 title: 'Account',
486 type: 'oauth-input',
487 canonicalParamId: 'credential',
488 mode: 'basic',
489 },
490 {
491 id: 'manualCredential',
492 title: 'Account ID',
493 type: 'short-input',
494 canonicalParamId: 'credential',
495 mode: 'advanced',
496 },
497 ])
498 // The advanced manualCredential is a short-input escape hatch (never scanned); the basic
499 // oauth-input is the detectable member, so the "active" assertion targets the basic mode.
500 const scanBlock = (canonicalModes?: Record<string, 'basic' | 'advanced'>) => ({

Callers 1

Calls 1

blockWithFunction · 0.70

Tested by

no test coverage detected