MCPcopy Create free account
hub / github.com/TanStack/ai / q

Function q

packages/ai-claude-code/src/adapters/text.ts:90–92  ·  view source on GitHub ↗

POSIX single-quote escape for embedding values in the `claude …` command.

(value: string)

Source from the content-addressed store, hash-verified

88
89/** POSIX single-quote escape for embedding values in the `claude …` command. */
90function q(value: string): string {
91 return `'${value.replace(/'/g, `'\\''`)}'`
92}
93
94/** Format a host tool-bridge as claude's `--mcp-config` JSON. */
95function bridgeToMcpConfig(bridge: HostToolBridge): string {

Callers 2

buildCommandMethod · 0.70
chatStreamMethod · 0.70

Calls 1

replaceMethod · 0.65

Tested by

no test coverage detected