(featureName: string, { codexCliBin = null } = {})
| 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); |
nothing calls this directly
no outgoing calls
no test coverage detected