Agreement Call¶
call is the top-level asactl command used to execute an action against an agreement-defined interface.
Usage¶
Flags¶
-a, --action <name>: action name (required)-v, --version <ver>: agreement version (latestby default)-h, --host <host>: target remote host-q, --query <json>: action input JSON--insecure: skip TLS certificate verification (development only)
Version rule:
- use exact version strings with
vprefix, for examplev1.0.0
Examples¶
# local
asactl call auth -a login
# pinned version
asactl call auth -a login -v v1.0.0
# remote host
asactl call try -a ping -h https://service.example.com
# with parameters
asactl call auth -a userinfo -q '{"accessToken":"xxx"}'
Remote Host Pattern¶
Example:
Transport Envelope (NDJSON)¶
External CLI / HTTP / HTTPS / WS integrations use NDJSON envelopes.
Request:
Response:
{"type":"response","response":{"requestid":1,"via":"cli","module":"account","action":"userinfo","ok":true,"data":{}}}
Notes¶
callbuilds request payloads from agreement definitions and validates inputs.- Call metadata can be persisted into the local workspace for reuse.
- The caller does not need to send
via; runtime injects it automatically. - The
-hhost must point to a service that already implements the target agreement.