@substrat-run/engine-absence 0.5.6 → 0.5.8
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/dist/entities.d.ts +1 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +3 -0
- package/dist/entities.js.map +1 -1
- package/dist/model.d.ts +12 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +14 -0
- package/dist/model.js.map +1 -0
- package/package.json +6 -6
package/dist/entities.d.ts
CHANGED
package/dist/entities.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;CAe1B,CAAC;AAEH,qEAAqE;AACrE,eAAO,MAAM,YAAY;;;;;iBAAuC,CAAC"}
|
package/dist/entities.js
CHANGED
|
@@ -23,6 +23,9 @@ export const absenceEntities = defineEntities({
|
|
|
23
23
|
active: z.number(),
|
|
24
24
|
created_at: z.string(),
|
|
25
25
|
}),
|
|
26
|
+
// The shipped DDL is `key TEXT PRIMARY KEY` — this row has no `id`, so the
|
|
27
|
+
// fact has to be declared or `emitModel` cannot state it (#976).
|
|
28
|
+
primaryKey: ['key'],
|
|
26
29
|
key: ['key'],
|
|
27
30
|
},
|
|
28
31
|
});
|
package/dist/entities.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../src/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,c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;AAEH,qEAAqE;AACrE,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC,YAAY,CAAC,CAAC,MAAM,CAAC"}
|
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The artifact of record for this engine (#697/#844, #976).
|
|
3
|
+
*
|
|
4
|
+
* `pnpm lint:model --check` re-emits this into `engines/absence/model.json`, so a
|
|
5
|
+
* changed table, a renamed field or a moved parent edge has to appear in a PR
|
|
6
|
+
* diff. No `lifecycles` option: this engine declares no state machine, and an
|
|
7
|
+
* empty one would claim otherwise.
|
|
8
|
+
*
|
|
9
|
+
* Imported by nothing, so the direction stays acyclic.
|
|
10
|
+
*/
|
|
11
|
+
export declare const absenceModel: import("@substrat-run/contracts").EmittedModel;
|
|
12
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,gDAA6B,CAAC"}
|
package/dist/model.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { emitModel } from '@substrat-run/contracts';
|
|
2
|
+
import { absenceEntities } from './entities.js';
|
|
3
|
+
/**
|
|
4
|
+
* The artifact of record for this engine (#697/#844, #976).
|
|
5
|
+
*
|
|
6
|
+
* `pnpm lint:model --check` re-emits this into `engines/absence/model.json`, so a
|
|
7
|
+
* changed table, a renamed field or a moved parent edge has to appear in a PR
|
|
8
|
+
* diff. No `lifecycles` option: this engine declares no state machine, and an
|
|
9
|
+
* empty one would claim otherwise.
|
|
10
|
+
*
|
|
11
|
+
* Imported by nothing, so the direction stays acyclic.
|
|
12
|
+
*/
|
|
13
|
+
export const absenceModel = emitModel(absenceEntities);
|
|
14
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../src/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,SAAS,CAAC,eAAe,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/engine-absence",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.8",
|
|
4
4
|
"description": "Substrat engine: approved absence — an append-only entry ledger over an opaque subject, balance as a fold, approval as a state machine",
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"repository": {
|
|
@@ -25,16 +25,16 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@substrat-run/
|
|
29
|
-
"@substrat-run/
|
|
28
|
+
"@substrat-run/kernel": "^0.96.0",
|
|
29
|
+
"@substrat-run/contracts": "^0.96.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"typescript": "^7.0.0",
|
|
33
33
|
"vitest": "^3.2.7",
|
|
34
34
|
"zod": "^4.4.3",
|
|
35
|
-
"@substrat-run/contract-tests": "^0.
|
|
36
|
-
"@substrat-run/engine-test-kit": "^0.3.
|
|
37
|
-
"@substrat-run/model-emit": "0.8.
|
|
35
|
+
"@substrat-run/contract-tests": "^0.96.0",
|
|
36
|
+
"@substrat-run/engine-test-kit": "^0.3.23",
|
|
37
|
+
"@substrat-run/model-emit": "0.8.12"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"zod": "^4.4.0"
|