Manage operators and pipelines
Two registry services back the executor. The operator registry holds installable node plugins; the pipeline registry holds reusable pipeline definitions. Both clients share a shape, with one asymmetry: operators are keyed by name, pipelines by id.
Manage operators
install
{ name, version, platform?, force? }
{ name, version, installPath, status }
uninstall
{ name, version }
{ name, version, removed }
list
{ remote?, page?, pageSize?, operator?, versions? }
{ operators, total, page, pageSize }
info
{ name, version, remote? }
Operator metadata
status
{ name, version }
{ name, version, status }
push
{ name, version, tarPath?, localOnly? }
{ name, version, pushed, installed }
repair
{}
{ repaired, issues }
An operator is in one of four install states: INSTALLED, NOT_INSTALLED, BROKEN, or CACHED.
import { OperatorRegistryClient } from "@anthriq_dev/services";
const registry = new OperatorRegistryClient({
endpoint: "ipc:///tmp/bxi-operator-registry.sock",
});
await registry.connect();
await registry.install({ name: "fft", version: "1.0.0" });
const local = await registry.list();
for (const operator of local.data?.operators ?? []) {
console.log(`${operator.name}@${operator.version} -> ${operator.installPath}`);
}
const state = await registry.status({ name: "fft", version: "1.0.0" });
console.log(state.data?.status);from anthriq_services import OperatorRegistryClient
async with OperatorRegistryClient("ipc:///tmp/bxi-operator-registry.sock") as registry:
await registry.install(name="fft", version="1.0.0")
local = await registry.list()
for operator in local.data.get("operators", []):
print(f"{operator['name']}@{operator['version']} -> {operator['installPath']}")
state = await registry.status(name="fft", version="1.0.0")
print(state.data["status"])platform is auto-detected when omitted. Set force: true to reinstall over an existing copy. Pass remote: true to list to query the remote registry instead of the local store.
Read operator metadata
info() returns the full manifest. The parameters and signals fields are the contract a pipeline author writes against.
name, version
string
Identity
description
string
Summary
authors
string[]
Authors
createdAt
string
Build timestamp
os, arch
string
Target platform
license
string
License identifier
size
string
Package size
tags
string[]
Search tags
checksum
string
Package checksum
entryPoints
object
Per-language entry points
executable, entrypoint
string
Resolved executable and entry symbol
parameters
array
Configuration the node accepts
signals
array
Signals the node accepts at runtime
inputTypes, outputTypes
object
Port type contracts
artifacts
array
Files in the package
Cross-check signals before calling signalPipeline. The executor reports delivery rather than acceptance, so an unrecognised signal name fails silently from the caller's side. See Run pipelines.
Publish an operator
localOnly: true installs into the local store without publishing, which is what you want while iterating.
Repair a broken store
repair() reconciles the registry index against the files on disk. Run it when an operator reports BROKEN, which happens after an interrupted install or a manual file deletion.
Manage pipeline definitions
install
{ id, version, force? }
{ id, version, installPath, status }
uninstall
{ id, version }
{ id, version, removed }
list
{ remote?, page?, pageSize? }
{ pipelines, total, page, pageSize }
info
{ id, version, remote?, extend? }
Pipeline metadata
status
{ id, version }
{ id, version, status }
push
{ id, version, pipelineJson?, tarPath?, localOnly? }
{ id, version, pushed, installed }
pull
{ id, version, force? }
{ id, version, installPath }
Register a pipeline from JSON
push accepts either pipelineJson for an inline definition or tarPath for a packaged one.
Note: Stored pipeline nodes name the operator with
nameandversion. That differs from the inline formatcreatePipelineaccepts, wheretypenames the operator directly.
Resolve operator details
extend: true resolves each node's operator metadata inline instead of returning bare references. entry and exit declare the graph's external ports.
Pull from the remote registry
pull fetches and installs in one call. install assumes the package is already cached locally.
Install what a pipeline needs
A pipeline definition references operators by name and version. Both must be installed before the executor can run the graph.
Note: The executor reports a missing operator as a pipeline creation failure, not a registry error. Check operator status first when
createPipelinefails on a definition that used to work.
Next steps
Last updated
Was this helpful?

