MCPcopy Create free account
hub / github.com/anomalyco/opencode / actionId

Function actionId

packages/app/src/context/command.tsx:39–42  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

37}
38
39function actionId(id: string) {
40 if (!id.startsWith(SUGGESTED_PREFIX)) return id
41 return id.slice(SUGGESTED_PREFIX.length)
42}
43
44function normalizeKey(key: string) {
45 if (key === ",") return "comma"

Callers 4

isAllowedEditableKeybindFunction · 0.85
bindFunction · 0.85
command.tsxFile · 0.85
keybindConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected