@stellar-agent/core 0.4.2 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# @stellar-agent/core
|
|
2
|
+
|
|
3
|
+
Shared core types and helpers for Stellar Agent packages.
|
|
4
|
+
|
|
5
|
+
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.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @stellar-agent/core
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```js
|
|
16
|
+
import { createDefaultConfig, parseAmount, redactSensitive } from "@stellar-agent/core";
|
|
17
|
+
|
|
18
|
+
const config = createDefaultConfig();
|
|
19
|
+
const amount = parseAmount("1.25", "XLM");
|
|
20
|
+
const publicOutput = redactSensitive({ config, amount });
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Safety
|
|
24
|
+
|
|
25
|
+
- Mainnet is disabled in default configuration.
|
|
26
|
+
- Secret-like strings and sensitive object fields are redacted before output.
|
|
27
|
+
- Testnet wallet secret keys are omitted from public wallet views.
|
|
28
|
+
|
|
29
|
+
## Links
|
|
30
|
+
|
|
31
|
+
- GitHub: https://github.com/someone-in-texas/Stellar-Agent
|
|
32
|
+
- Threat model: https://github.com/someone-in-texas/Stellar-Agent/blob/main/docs/threat-model.md
|
|
33
|
+
- npm CLI package: https://www.npmjs.com/package/@stellar-agent/cli
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stellar-agent/core",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Core types, configuration, amount parsing, errors, and redaction for Stellar Agent Bridge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"bugs": {
|
|
13
13
|
"url": "https://github.com/someone-in-texas/Stellar-Agent/issues"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/someone-in-texas/Stellar-Agent#readme",
|
|
15
|
+
"homepage": "https://github.com/someone-in-texas/Stellar-Agent/tree/main/packages/core#readme",
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=22"
|
|
18
18
|
},
|