Licence
MIT
Version
0.5.3
Deps
1
Size
96 kB
Vulns
0
Weekly
0
@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, atomic file replacement, IDs, wallet public views, and conservative redaction utilities used by the CLI and supporting packages.
Install
npm install @stellar-agent/core
Example
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.
- Serialized error messages and hints use the same secret and URL-query redaction as structured details.
writeFileAtomicreplaces persisted state from a private same-directory temporary file.- Testnet wallet secret keys are omitted from public wallet views.