skip to content
$worker

harness

v0.5.1

Thin durable turn loop that wires session-manager, context-manager, and llm-router into an agent loop; spawns sub-agents as child sessions.

iiiverified
406 installs89 in 7d0 today
install
$iii worker add harness@0.5.1

exact versions are immutable; binary and bundle artifacts are digest-pinned.

functions

10

harness::fanout::session_created

function

Internal: fans out a newly-created session id to ui::sessions::changed::<browser_id>.

request
valueunknown
response
valueunknown

harness::provider::list

function

List providers declared to the harness.

request
valueunknown
response
valueunknown

harness::fs::read_inline

function

Read a host file via shell::fs::read, drain its channel, and return a {content:[{text}], details:{size, truncated, bytes_read}} envelope (max 256 KiB inline by default).

request
valueunknown
response
valueunknown

ui::unsubscribe

function

Remove a browser's subscription to a session (or its all-sessions sub if session_id is null).

request
valueunknown
response
valueunknown

ui::subscribe

function

Register a browser's interest in a session (or all sessions if session_id is null).

request
valueunknown
response
valueunknown

harness::fanout::agent_event_handler

function

Internal: agent::events fanout handler.

request
valueunknown
response
valueunknown

policy::check_permissions

function

Check a function call against iii-permissions.yaml; returns allow, deny, or needs_approval.

request
  • argsobject
  • function_idstringrequiredmin 1 chars
response
valueunknown

harness::trigger

function

Browser kickoff: forward payload to run::start. Used by console/web over the iii-browser-sdk.

request
valueunknown
response
valueunknown

harness::provider::resolve

function

Resolve a provider credential + settings (api_url, max_tokens) from the harness configuration. Server-side only.

request
valueunknown
response
valueunknown

harness::provider::register

function

Self-declare an LLM provider (id, config schema, defaults) into the dynamic harness configuration schema.

request
valueunknown
response
valueunknown

triggers

0
no triggers registered