client.eval
Evaluate a procedure reference (for dynamic composition)
browsernot registered- Package
- @procedures/client · README
- Path
["client","eval"]- CLI
- Not a
markcommand: it is not in the default registry. - As data
{"$proc":["client","eval"],"input":{}}- Tags
- core, meta, runs-refs
Use it
In TypeScript
import { Client, LocalTransport, PROCEDURE_REGISTRY, allCoreProcedures } from "@procedures/client";
for (const procedure of allCoreProcedures) {
if (!PROCEDURE_REGISTRY.has(procedure.path)) PROCEDURE_REGISTRY.register(procedure);
}
const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["client","eval"], {});
console.log(JSON.stringify(result));As data, in a program
{ "$proc": ["client", "eval"], "input": {} }Input
| Field | Type | Required |
|---|---|---|
procedure | unknown | no |
input | unknown | no |
Output
The schema does not list fields (any).
JSON Schemas
{
"input": {
"type": "object",
"properties": {
"procedure": {
"description": "Procedure reference (path or full ref)"
},
"input": {
"description": "Input to pass to the procedure"
}
}
},
"output": {
"description": "The result of the evaluated call"
}
}