ShellTier enum (T0-T6) with tree hierarchy, satisfies(), from_shell_class() backward compat mapping. Exported as GSH_SHELL_TIER alongside GSH_SHELL_CLASS. SessionState carries shell_tier derived from AC shell_tier field, GSH_SHELL_TIER env, or shell_class mapping. Prompt shows tier: [governed] T2:tking@gsh. Optional LMDB enrichment (behind `lmdb` feature flag): reads earned credentials and identity class from substrate-identity-store, displays in banner. 16 shell_tier tests, 3 LMDB enrichment tests, 3 governance_env tests. 66 tests without lmdb, 69 with --features lmdb. Signed-off-by: Tyler J King <tking@guildhouse.dev> Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Tyler J King <tking@guildhouse.dev>
28 lines
769 B
TOML
28 lines
769 B
TOML
[package]
|
|
name = "libgsh"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
description = "Governed shell library — AC validation, CR building, corpus gate"
|
|
|
|
[dependencies]
|
|
guildhouse-did = { path = "../../guildhouse-did" }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
hex = { workspace = true }
|
|
chrono = { workspace = true }
|
|
dirs = { workspace = true }
|
|
tracing = { workspace = true }
|
|
substrate-ipc = { workspace = true }
|
|
substrate-identity-store = { workspace = true, optional = true }
|
|
tokio = { workspace = true }
|
|
libc = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
lmdb = ["substrate-identity-store"]
|
|
|
|
[dev-dependencies]
|
|
substrate-identity-store = { workspace = true }
|
|
tempfile = "3"
|