Skip to content

hjs-spec/cli

JEP CLI v0.6

Command-line tool for creating and verifying JEP v0.6 events through the JEP API.

This CLI targets:

POST /events/create
POST /events/verify
GET  /health

It is aligned with:

  • draft-wang-jep-judgment-event-protocol-06
  • draft-wang-jep-profiles-00
  • draft-wang-jep-conformance-00
  • hjs-spec/jep-api

Status

Experimental implementation seed.

This CLI does not define new JEP-Core semantics and does not determine legal liability, factual truth, regulatory compliance, or complete-log availability.

Installation

pip install -e ".[dev]"

Configuration

Use flags:

jep --base-url http://127.0.0.1:8000 health

Or environment variables:

export JEP_API_URL=http://127.0.0.1:8000
export JEP_API_KEY=

Commands

Health

jep health

Create a Judgment event

jep create \
  --verb J \
  --who did:example:agent-789 \
  --what '{"claim":"approve","subject":"demo"}' \
  --aud https://api.example.org

Create with extensions

jep create \
  --verb J \
  --who did:example:agent-789 \
  --what '{"claim":"approve"}' \
  --ext 'https://example.org/profile={"name":"demo"}' \
  --ext-crit https://example.org/profile

Verify an event from a file

jep verify event.json --mode archival

Pipe create response into verify

jep create --verb J --who did:example:agent --what '{"claim":"approve"}' > response.json
jep extract-event response.json > event.json
jep verify event.json

Input Rules

--what and event arguments may be:

  • inline JSON;
  • a plain string;
  • a file path;
  • - for stdin.

Related Repositories

Public Drafts

License

MIT

About

Command-line tool for creating and verifying JEP v0.6 events through the JEP API.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages