MCPcopy
hub / github.com/anomalyco/opencode / activeCounts

Function activeCounts

packages/tui/test/keymap.test.tsx:93–102  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91 bindings: config.keybinds.gather("test.base", ["model.list"]),
92 })
93 const activeCounts = () =>
94 Object.fromEntries(
95 Array.from(
96 keymap.getCommandBindings({
97 visibility: "active",
98 commands: ["session.list", "session.new", "session.page.up", "session.first", "model.list"],
99 }),
100 ([command, bindings]) => [command, bindings.length],
101 ),
102 )
103
104 counts.base = activeCounts()
105 const popQuestion = getOpencodeModeStack(keymap).push("question")

Callers 1

HarnessFunction · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected