MCPcopy Create free account
hub / github.com/blockmatic/basilic / toActionKey

Function toActionKey

packages/cli/scripts/generate-cli.mjs:23–26  ·  view source on GitHub ↗
(operationId)

Source from the content-addressed store, hash-verified

21
22// Extract action key from operationId (e.g. accountApikeysCreate -> create)
23function toActionKey(operationId) {
24 const match = operationId.match(/[A-Z][a-z]+$/)
25 return match ? match[0].toLowerCase() : operationId
26}
27
28// Build nested object structure from path segments (same as core generate-wrapper)
29function buildNestedObject(obj, segments, operationId) {

Callers 1

buildNestedObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected