@bytesbrains/pi-factory-gate

extensionmaintained

AI Factory gateway for pi agents — dispatch jobs, manage environments, list agents/workers/workflows, stream results from a wrok.in orchestrator.

by · v1.0.3 · published 4w ago

$ pi install npm:@bytesbrains/pi-factory-gate
downloads/mo
74
stars
0
last push
5d ago
open issues
4

Signals

license: MITtestspi manifest: missinginstall size: —deps: 0peer deps: 0

Download trend

No downloads in the last 12 weeks.

README

pi-factory-gate

AI Factory orchestration gateway for pi agents — dispatch jobs, manage environments, list agents/workers/workflows, and stream results from a wrok.in orchestrator.

Install

pi install npm:@bytesbrains/pi-factory-gate

Configuration

Add a .factoryrc.yml to your repo root:

orchestratorUrl: http://localhost:3002
defaultEnvironment: default
defaultLimit: 20
requestTimeout: 15000
maxLogLines: 500
KeyDefaultDescription
orchestratorUrlhttp://localhost:3002Base URL of the wrok.in orchestrator
defaultEnvironment(none)Default environment for job dispatch
defaultLimit20Default page size for list operations
requestTimeout15000API call timeout in ms
maxLogLines500Max lines for streamed job output

Tools

Agents

ToolDescription
factory_list_agentsList all agents, optionally filtered by environment
factory_get_agentGet agent detail including inheritance and resolved config

Jobs

ToolDescription
factory_create_jobDispatch a job (single, chain, or parallel mode)
factory_get_jobGet job status and results
factory_list_jobsList all jobs in the factory
factory_stream_jobPoll for completion, returns final state

Environments

ToolDescription
factory_list_environmentsList all registered environments
factory_get_environmentGet environment detail
factory_create_environmentRegister a new environment (clone a repo)

Workers

ToolDescription
factory_list_workersList all workers with health/status

Workflows

ToolDescription
factory_list_workflowsList workflow templates (DB + disk discovery)
factory_run_workflowExecute a workflow template

Events & Status

ToolDescription
factory_get_eventsGet recent system events
factory_statusHealth check — is the orchestrator reachable?

About wrok.in

This gate works with the wrok.in AI Factory — a personal AI workflow orchestrator that manages pi workers across Docker containers with multi-repo environments, agent inheritance, DB-backed agents, and workflow scheduling.

License

MIT


Built and maintained by BytesBrains — AI automation & agents, engineered to production standards. The model proposes, code guarantees.