@dlovans/tenet-core 0.1.0 → 0.1.1
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 +7 -7
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# @tenet
|
|
1
|
+
# @dlovans/tenet-core
|
|
2
2
|
|
|
3
3
|
Declarative logic VM for JSON schemas. Reactive validation, temporal routing, and computed state.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @tenet
|
|
8
|
+
npm install @dlovans/tenet-core
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
@@ -13,9 +13,9 @@ npm install @tenet/core
|
|
|
13
13
|
### Browser
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<script src="https://unpkg.com/@tenet
|
|
16
|
+
<script src="https://unpkg.com/@dlovans/tenet-core/wasm/wasm_exec.js"></script>
|
|
17
17
|
<script type="module">
|
|
18
|
-
import { init, run } from '@tenet
|
|
18
|
+
import { init, run } from '@dlovans/tenet-core';
|
|
19
19
|
|
|
20
20
|
await init('/path/to/tenet.wasm');
|
|
21
21
|
|
|
@@ -40,10 +40,10 @@ console.log(result);
|
|
|
40
40
|
### Node.js
|
|
41
41
|
|
|
42
42
|
```javascript
|
|
43
|
-
import { init, run, verify } from '@tenet
|
|
43
|
+
import { init, run, verify } from '@dlovans/tenet-core';
|
|
44
44
|
|
|
45
45
|
// Initialize WASM
|
|
46
|
-
await init('./node_modules/@tenet
|
|
46
|
+
await init('./node_modules/@dlovans/tenet-core/wasm/tenet.wasm');
|
|
47
47
|
|
|
48
48
|
// Run schema logic
|
|
49
49
|
const result = run(schema, new Date());
|
|
@@ -75,7 +75,7 @@ Verify that a transformation is legal by replaying the logic.
|
|
|
75
75
|
Static analysis - find issues without executing the schema.
|
|
76
76
|
|
|
77
77
|
```javascript
|
|
78
|
-
import { lint } from '@tenet
|
|
78
|
+
import { lint } from '@dlovans/tenet-core';
|
|
79
79
|
|
|
80
80
|
const result = lint(schema);
|
|
81
81
|
// No init() needed - pure TypeScript!
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dlovans/tenet-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Declarative logic VM for JSON schemas - reactive validation, temporal routing, and computed state",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,7 +41,11 @@
|
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": "https://github.com/
|
|
44
|
+
"url": "https://github.com/dlovans/tenet"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/dlovans/tenet#readme",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/dlovans/tenet/issues"
|
|
45
49
|
},
|
|
46
50
|
"engines": {
|
|
47
51
|
"node": ">=18.0.0"
|