Package com.shaft.commandline.runtime
package com.shaft.commandline.runtime
-
ClassDescriptionBuilds a tool-arguments JSON object from either a
--args '{...}'JSON string or repeatedkey=valuepairs.Seam over the standaloneCaptureCliengine (file-to-code codegen, no MCP session), socodegencan be unit-tested without exercising the real generator.Chooses the MCP transport for a command per the routing rule: if a daemon session is live, connect to it over streamable HTTP (so browser/device state persists); otherwise spawn an ephemeral stdio child.Supplies a connectedMcpClientfor a command, applying the HTTP-vs-stdio routing rule.Runs a single tool call end-to-end: routes the connection, parses arguments, renders the result, and returns a process exit code.Shared options mixed into every tool-invoking command.