MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / enableFeature

Function enableFeature

test/core/bridge_coordinator.test.ts:774–786  ·  view source on GitHub ↗
(featureName: string, { codexCliBin = null } = {})

Source from the content-addressed store, hash-verified

772 return state.features.map((feature) => ({ ...feature }));
773 },
774 async enableFeature(featureName: string, { codexCliBin = null } = {}) {
775 calls.push({ kind: 'enable', featureName, cliBin: codexCliBin });
776 const current = state.features.find((feature) => feature.name === featureName);
777 if (current) {
778 current.enabled = true;
779 return;
780 }
781 state.features.push({
782 name: featureName,
783 maturity: 'experimental',
784 enabled: true,
785 });
786 },
787 async disableFeature(featureName: string, { codexCliBin = null } = {}) {
788 calls.push({ kind: 'disable', featureName, cliBin: codexCliBin });
789 const current = state.features.find((feature) => feature.name === featureName);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected