keri-ts 0.2.2 → 0.2.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 +12 -137
- package/esm/app/cli/index.js +7 -0
- package/esm/app/index.js +7 -0
- package/esm/app/version.js +2 -2
- package/esm/npm/index.js +7 -2
- package/package.json +3 -2
- package/types/app/cli/index.d.ts +8 -0
- package/types/app/cli/index.d.ts.map +1 -0
- package/types/app/index.d.ts +8 -0
- package/types/app/index.d.ts.map +1 -0
- package/types/app/version.d.ts +2 -2
- package/types/app/version.d.ts.map +1 -1
- package/types/npm/index.d.ts +7 -2
- package/types/npm/index.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -1,150 +1,25 @@
|
|
|
1
|
-
# keri-ts
|
|
1
|
+
# keri-ts
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
KERI TypeScript runtime package with the `tufa` CLI and foundational
|
|
4
|
+
database/runtime modules.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
## Install
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
|
|
10
|
-
deno task tufa --help
|
|
11
|
-
|
|
12
|
-
# Initialize a keystore
|
|
13
|
-
deno task tufa init --name mykeystore
|
|
14
|
-
|
|
15
|
-
# Get help for specific commands
|
|
16
|
-
deno task tufa init --help
|
|
17
|
-
|
|
18
|
-
# Show CLI version
|
|
19
|
-
deno task tufa version
|
|
20
|
-
deno task tufa --version
|
|
21
|
-
|
|
22
|
-
# Annotate a CESR file
|
|
23
|
-
deno task tufa annotate --in samples/cesr-streams/CESR_1_0-oor-auth-vc.cesr
|
|
24
|
-
|
|
25
|
-
# Annotate CESR from stdin
|
|
26
|
-
cat samples/cesr-streams/CESR_1_0-oor-auth-vc.cesr | deno task tufa annotate
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Install CLI (`tufa`)
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
# npm (global)
|
|
33
|
-
npm install -g keri-ts
|
|
34
|
-
tufa --help
|
|
35
|
-
|
|
36
|
-
# Deno (global)
|
|
37
|
-
deno install --global --allow-all --unstable-ffi --name tufa mod.ts
|
|
38
|
-
tufa --help
|
|
39
|
-
|
|
40
|
-
# make sure to add the Deno bin path to your PATH var
|
|
41
|
-
export PATH="$HOME/.deno/bin:$PATH"
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
### Features
|
|
45
|
-
|
|
46
|
-
- TODO Fully integrates with KERIpy, KERIA, and SignifyTS, both CESR 1.0 and
|
|
47
|
-
CESR 2.0
|
|
48
|
-
- TODO Creates and manages keystores
|
|
49
|
-
- TODO Parses and packs CESR streams
|
|
50
|
-
- ✅ Provides CLI for interaction with KERI keystores (basic implementation)
|
|
51
|
-
- TODO Provides a mailbox agent, controller agent, direct mode, and indirect
|
|
52
|
-
mode agents.
|
|
53
|
-
- TODO Creates, Issues, and Verifies ACDC credentials.
|
|
54
|
-
- TODO Provides a JSON Schema server to host ACDC schemas.
|
|
55
|
-
|
|
56
|
-
### Importing library
|
|
57
|
-
|
|
58
|
-
TBD
|
|
59
|
-
|
|
60
|
-
### Build scripts (Deno)
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
# Run CLI commands
|
|
64
|
-
deno task tufa init --name test
|
|
65
|
-
|
|
66
|
-
# Start server (legacy)
|
|
67
|
-
deno task start
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
### Versioning and Releases
|
|
71
|
-
|
|
72
|
-
- `keri-ts` and `cesr-ts` are versioned independently with Changesets.
|
|
73
|
-
- Runtime CLI version strings are generated from package manifest versions.
|
|
74
|
-
- CI builds automatically append build metadata to CLI display versions.
|
|
75
|
-
|
|
76
|
-
```bash
|
|
77
|
-
# Add a patch/minor/major release intent file
|
|
78
|
-
deno task release:changeset
|
|
79
|
-
|
|
80
|
-
# Apply version bumps/changelog updates from pending changesets
|
|
81
|
-
deno task release:version
|
|
82
|
-
|
|
83
|
-
# Regenerate and verify runtime version modules
|
|
84
|
-
deno task version:generate
|
|
85
|
-
deno task version:check
|
|
9
|
+
npm install keri-ts
|
|
86
10
|
```
|
|
87
11
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
**KERIpy Compatibility**: This project requires LMDB data format v1 for
|
|
91
|
-
interoperability with KERIpy databases. The `lmdb-js` package defaults to LMDB
|
|
92
|
-
v2 format, using v0.9.90 of LMDB, which is incompatible with databases created
|
|
93
|
-
by KERIpy (which uses `py-lmdb` with LMDB 0.9.33).
|
|
94
|
-
|
|
95
|
-
**Rebuilding lmdb with v1 support**:
|
|
96
|
-
|
|
97
|
-
After installing dependencies, rebuild the `lmdb` package with v1 data format
|
|
98
|
-
support:
|
|
12
|
+
## CLI
|
|
99
13
|
|
|
100
14
|
```bash
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
npm run recompile
|
|
104
|
-
cd ../..
|
|
15
|
+
npx tufa --help
|
|
16
|
+
npx tufa version
|
|
105
17
|
```
|
|
106
18
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
- After initial `npm install`
|
|
110
|
-
- After updating the `lmdb` package
|
|
111
|
-
- If you encounter `malloc` errors or database format incompatibility errors
|
|
112
|
-
when opening KERIpy-created databases
|
|
113
|
-
|
|
114
|
-
The `malloc` error looks like the following:
|
|
19
|
+
## Deno tasks (package-local)
|
|
115
20
|
|
|
116
21
|
```bash
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
**Note**: The v1 format uses LMDB 0.9.29 (via `lmdb-data-v1`), which is
|
|
122
|
-
compatible with KERIpy's LMDB 0.9.33. Some newer LMDB features (encryption,
|
|
123
|
-
remapping) are not available with v1 format.
|
|
124
|
-
|
|
125
|
-
## Development Notes
|
|
126
|
-
|
|
127
|
-
### Deno install locally
|
|
128
|
-
|
|
129
|
-
`tufa` will show a few warnings locally unless you install it with the
|
|
130
|
-
`--allow-scripts` option like below:
|
|
131
|
-
|
|
132
|
-
```zsh
|
|
133
|
-
deno install --global \
|
|
134
|
-
--config /Users/kbull/code/keri/kentbull/keri-ts/deno.json \
|
|
135
|
-
--node-modules-dir=auto \
|
|
136
|
-
--allow-scripts=npm:lmdb,npm:msgpackr-extract \
|
|
137
|
-
--allow-all \
|
|
138
|
-
--unstable-ffi \
|
|
139
|
-
--name tufa \
|
|
140
|
-
/Users/kbull/code/keri/kentbull/keri-ts/mod.ts
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
This is because of how Deno blocks build/install scripts for installed
|
|
144
|
-
dependencies unless explicitly allowed.
|
|
145
|
-
|
|
146
|
-
You may need to warm dependencies once with the following command:
|
|
147
|
-
|
|
148
|
-
```zsh
|
|
149
|
-
deno install --node-modules-dir=auto --allow-scripts=npm:lmdb,npm:msgpackr-extract
|
|
22
|
+
deno task tufa --help
|
|
23
|
+
deno task test:quality
|
|
24
|
+
deno task build:npm
|
|
150
25
|
```
|
package/esm/app/index.js
ADDED
package/esm/app/version.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Generated by scripts/generate_versions.ts.
|
|
3
3
|
* Do not edit by hand.
|
|
4
4
|
*/
|
|
5
|
-
export const PACKAGE_VERSION = "0.2.
|
|
6
|
-
export const BUILD_METADATA = "";
|
|
5
|
+
export const PACKAGE_VERSION = "0.2.3";
|
|
6
|
+
export const BUILD_METADATA = "build.2.ae619744";
|
|
7
7
|
export const DISPLAY_VERSION = BUILD_METADATA
|
|
8
8
|
? `${PACKAGE_VERSION}+${BUILD_METADATA}`
|
|
9
9
|
: PACKAGE_VERSION;
|
package/esm/npm/index.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* npm package root entrypoint.
|
|
3
|
+
*
|
|
4
|
+
* Keep this file stable because build_npm.ts and package export paths
|
|
5
|
+
* are wired to ./src/npm/index.ts -> ./esm/npm/index.js.
|
|
6
|
+
*/
|
|
1
7
|
import "../_dnt.polyfills.js";
|
|
2
8
|
export * from "../core/index.js";
|
|
3
9
|
export * from "../db/index.js";
|
|
4
|
-
export
|
|
5
|
-
export * from "../app/version.js";
|
|
10
|
+
export * from "../app/index.js";
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keri-ts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "KERI TypeScript package with database primitives and CLI runtime",
|
|
5
5
|
"homepage": "https://github.com/kentbull/keri-ts",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/kentbull/keri-ts.git"
|
|
8
|
+
"url": "git+https://github.com/kentbull/keri-ts.git",
|
|
9
|
+
"directory": "packages/keri"
|
|
9
10
|
},
|
|
10
11
|
"license": "Apache-2.0",
|
|
11
12
|
"bugs": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/app/cli/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/app/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC"}
|
package/types/app/version.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by scripts/generate_versions.ts.
|
|
3
3
|
* Do not edit by hand.
|
|
4
4
|
*/
|
|
5
|
-
export declare const PACKAGE_VERSION = "0.2.
|
|
6
|
-
export declare const BUILD_METADATA = "";
|
|
5
|
+
export declare const PACKAGE_VERSION = "0.2.3";
|
|
6
|
+
export declare const BUILD_METADATA = "build.2.ae619744";
|
|
7
7
|
export declare const DISPLAY_VERSION: string;
|
|
8
8
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/app/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/app/version.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,eAAe,UAAU,CAAC;AACvC,eAAO,MAAM,cAAc,qBAAqB,CAAC;AACjD,eAAO,MAAM,eAAe,QAET,CAAC"}
|
package/types/npm/index.d.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* npm package root entrypoint.
|
|
3
|
+
*
|
|
4
|
+
* Keep this file stable because build_npm.ts and package export paths
|
|
5
|
+
* are wired to ./src/npm/index.ts -> ./esm/npm/index.js.
|
|
6
|
+
*/
|
|
1
7
|
import "../_dnt.polyfills.js";
|
|
2
8
|
export * from "../core/index.js";
|
|
3
9
|
export * from "../db/index.js";
|
|
4
|
-
export
|
|
5
|
-
export * from "../app/version.js";
|
|
10
|
+
export * from "../app/index.js";
|
|
6
11
|
//# sourceMappingURL=index.d.ts.map
|
package/types/npm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/npm/index.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/npm/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,sBAAsB,CAAC;AAE9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|