@stellar-agent/core
v0.5.2
Published
Core types, configuration, amount parsing, errors, and redaction for Stellar Agent Bridge.
Readme
@stellar-agent/core
Shared core types and helpers for Stellar Agent packages.
This package contains the configuration model, network profiles, amount and asset parsing, structured command envelopes, error serialization, path helpers, IDs, wallet public views, and conservative redaction utilities used by the CLI and supporting packages.
Install
npm install @stellar-agent/coreExample
import { createDefaultConfig, parseAmount, redactSensitive } from "@stellar-agent/core";
const config = createDefaultConfig();
const amount = parseAmount("1.25", "XLM");
const publicOutput = redactSensitive({ config, amount });Safety
- Mainnet is disabled in default configuration.
- Secret-like strings and sensitive object fields are redacted before output.
- Testnet wallet secret keys are omitted from public wallet views.
Links
- GitHub: https://github.com/someone-in-texas/Stellar-Agent
- Threat model: https://github.com/someone-in-texas/Stellar-Agent/blob/main/docs/threat-model.md
- npm CLI package: https://www.npmjs.com/package/@stellar-agent/cli
