MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / mountExperimentsPanel

Function mountExperimentsPanel

apps/kimi-code/src/tui/commands/config.ts:624–639  ·  view source on GitHub ↗
(
  host: SlashCommandHost,
  features: readonly ExperimentalFeatureState[],
)

Source from the content-addressed store, hash-verified

622}
623
624function mountExperimentsPanel(
625 host: SlashCommandHost,
626 features: readonly ExperimentalFeatureState[],
627): void {
628 host.mountEditorReplacement(
629 new ExperimentsSelectorComponent({
630 features,
631 onApply: (changes) => {
632 void applyExperimentalFeatureChanges(host, changes);
633 },
634 onCancel: () => {
635 host.restoreEditor();
636 },
637 }),
638 );
639}
640
641type UpdatePreferenceHost = {
642 readonly state: {

Callers 1

showExperimentsPanelFunction · 0.85

Calls 3

restoreEditorMethod · 0.65

Tested by

no test coverage detected