;; shadow-cljs build for the committed dist/ — deterministic ESM for browsers.
;; One module per subpath export ("." -> dist/index.js, "./xkey" -> dist/xkey.js,
;; "./selftest" -> dist/selftest.js) over a :shared base. :index and :xkey both
;; depend only on :shared, so their common namespaces (crypto/identity/profile)
;; hoist into shared and dist/xkey.js never drags the bridge in — mirroring how
;; bundlers split the TS original. @noble/curves stays an EXTERNAL import
;; (:js-provider :import): only dist/xkey.js references it, so the optional
;; peerDependency stays optional for apps that never import "./xkey".
{:deps {:aliases [:dev]}
:builds
{:lib
{:target :esm
:output-dir "dist"
:compiler-options {:optimizations :advanced
:infer-externs :auto
:source-map false}
:js-options {:js-provider :import}
:modules
{:shared {:entries []}
:index {:entries [ardegazu.id.index]
:depends-on #{:shared}
:exports {utf8 ardegazu.id.index/utf8
randomBytes ardegazu.id.index/random-bytes
toB64 ardegazu.id.index/to-b64
fromB64 ardegazu.id.index/from-b64
toB64url ardegazu.id.index/to-b64url
fromB64url ardegazu.id.index/from-b64url
Identity ardegazu.id.index/Identity
verifyRaw ardegazu.id.index/verify-raw
verifyAssertion ardegazu.id.index/verify-assertion
fingerprintOf ardegazu.id.index/fingerprint-of
isEd25519Supported ardegazu.id.index/is-ed25519-supported
EMPTY_PROFILE ardegazu.id.index/EMPTY-PROFILE
MAX_NAME_LEN ardegazu.id.index/MAX-NAME-LEN
hueOfPub ardegazu.id.index/hue-of-pub
effectiveHue ardegazu.id.index/effective-hue
colorOfPub ardegazu.id.index/color-of-pub
defaultGlyph ardegazu.id.index/default-glyph
clampProfile ardegazu.id.index/clamp-profile
BRIDGE_PATH ardegazu.id.index/BRIDGE-PATH
DEFAULT_BRIDGE_URL ardegazu.id.index/DEFAULT-BRIDGE-URL
BRIDGE_STORE_KEY ardegazu.id.index/BRIDGE-STORE-KEY
SEED_RE ardegazu.id.index/SEED-RE
APP_ORIGIN_RE ardegazu.id.index/APP-ORIGIN-RE
DEV_ORIGINS ardegazu.id.index/DEV-ORIGINS
APP_KEY_RE ardegazu.id.index/APP-KEY-RE
RESERVED_APP_KEYS ardegazu.id.index/RESERVED-APP-KEYS
appKeyOfOrigin ardegazu.id.index/app-key-of-origin
isAllowedAppOrigin ardegazu.id.index/is-allowed-app-origin
isBridgeReply ardegazu.id.index/is-bridge-reply
isBridgeRequest ardegazu.id.index/is-bridge-request
MAX_RECORD_BYTES ardegazu.id.index/MAX-RECORD-BYTES
MAX_APP_STATE_BYTES ardegazu.id.index/MAX-APP-STATE-BYTES
RESERVED_CORE_BYTES ardegazu.id.index/RESERVED-CORE-BYTES
MAX_APPS_BYTES ardegazu.id.index/MAX-APPS-BYTES
sanitizeRecord ardegazu.id.index/sanitize-record
readBridgeRecord ardegazu.id.index/read-bridge-record
writeBridgeRecord ardegazu.id.index/write-bridge-record
initBridgeHost ardegazu.id.index/init-bridge-host
IdBridge ardegazu.id.index/IdBridge}}
:xkey {:entries [ardegazu.id.xkey]
:depends-on #{:shared}
:exports {SUITE_SALT ardegazu.id.xkey/SUITE-SALT
deriveXKeyPair ardegazu.id.xkey/derive-x-key-pair
deriveSuiteXKeyPair ardegazu.id.xkey/derive-suite-x-key-pair
signXCert ardegazu.id.xkey/sign-x-cert
verifyXCert ardegazu.id.xkey/verify-x-cert
wrapTo ardegazu.id.xkey/wrap-to
unwrap ardegazu.id.xkey/unwrap}}
:selftest {:entries [ardegazu.id.selftest]
:depends-on #{:shared :index :xkey}
:exports {runIdKitSelfTest ardegazu.id.selftest/run-id-kit-self-test}}}}}}