Liking cljdoc? Tell your friends :D

hive-artcraft.mount

Mount an existing hive craft addon (hive-photocraft, hive-vectorcraft, ...) behind artcraft: construct it through its own manifest ctor, keep its one tool handler, and forward commands. No delegate code is copied; only the config handed to the ctor is derived here.

Mount an existing hive craft addon (hive-photocraft, hive-vectorcraft, ...) behind `artcraft`:
construct it through its own manifest ctor, keep its one tool handler, and forward commands.
No delegate code is copied; only the config handed to the ctor is derived here.
raw docstring

forwardclj

(forward mounted args)

Send string-keyed tool args (minus "app", with request defaults) to the mounted tool's own handler.

Send string-keyed tool args (minus "app", with request defaults) to the mounted tool's own handler.
sourceraw docstring

mount!clj

(mount! module delegate-config)

Resolve the module's ctor, construct and initialize the delegate addon, and return its tool.

Resolve the module's ctor, construct and initialize the delegate addon, and return its tool.
sourceraw docstring

mount-configclj

(mount-config module app-cfg port-res)

Config for the delegate ctor: the app's :apps override, plus the resolved control port only when every key the delegate's live port requires (:port-requires) is present.

Config for the delegate ctor: the app's :apps override, plus the resolved control port only
when every key the delegate's live port requires (:port-requires) is present.
sourceraw docstring

request-defaultsclj

What a call/control request carries when the caller omits it: request id 0 and empty params. Native dispatch and mounted forwarding share it, so every app sees the same request shape.

What a call/control request carries when the caller omits it: request id 0 and empty params.
Native dispatch and mounted forwarding share it, so every app sees the same request shape.
sourceraw docstring

tool-resultclj

(tool-result reply)

Normalise a delegate's reply into an MCP tool result: MCP content passes through, an {:ok ..}/{:error ..} envelope is rendered the way hive-vectorcraft renders it.

Normalise a delegate's reply into an MCP tool result: MCP content passes through,
an {:ok ..}/{:error ..} envelope is rendered the way hive-vectorcraft renders it.
sourceraw docstring

unmount!clj

(unmount! mounted)

Shut the delegate addon down.

Shut the delegate addon down.
sourceraw docstring

with-request-defaultsclj

(with-request-defaults args)

Fill in id and params for a call/control request when the caller left them out; a supplied value (nil included) is kept as given. Other commands pass through unchanged.

Fill in `id` and `params` for a call/control request when the caller left them out; a
supplied value (nil included) is kept as given. Other commands pass through unchanged.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close