@factoidal/core 0.19.0 → 0.21.0
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/CHANGELOG.md +65 -0
- package/README.md +59 -15
- package/authz/server.mjs +23 -2
- package/bin/engine.mjs +22 -1
- package/bin/factoidal.mjs +710 -38
- package/bin/pack-host.mjs +5 -0
- package/bin/serve.mjs +19 -3
- package/browser.d.ts +23 -0
- package/browser.js +26 -0
- package/index.d.ts +463 -24
- package/index.mjs +29 -0
- package/l4-assets/l4factoidal.js +1 -1
- package/l4-assets/l4factoidal.wasm +0 -0
- package/l4-assets/version.json +6 -6
- package/lib/api.mjs +480 -28
- package/lib/browser-engine.mjs +28 -1
- package/lib/cid-node.mjs +77 -0
- package/lib/cid.mjs +146 -0
- package/lib/cipher-host.mjs +126 -0
- package/lib/dataset.mjs +96 -12
- package/lib/engine-integrity.mjs +56 -0
- package/lib/lean-entry.mjs +30 -12
- package/lib/nodes.mjs +318 -17
- package/lib/sbm11-lws.mjs +4 -2
- package/lib/sbm11.mjs +29 -6
- package/lib/version.mjs +1 -1
- package/lws/README.md +9 -0
- package/lws/client.mjs +19 -2
- package/lws/persist.mjs +169 -0
- package/lws/server.mjs +82 -29
- package/package.json +2 -1
- package/solid/server/index.mjs +79 -13
- package/webdav/server.mjs +154 -25
- package/xmpp/client.mjs +332 -0
- package/xmpp/proxy.mjs +114 -0
package/index.mjs
CHANGED
|
@@ -25,6 +25,7 @@ import { sbm11Api, registerSbm11Source, setDefaultSbm11Reader, mapReader } from
|
|
|
25
25
|
import { nodeDefaultReaderFactory } from './lib/sbm11-node.mjs';
|
|
26
26
|
import { lwsSbm11Reader as lwsSbm11ReaderWith } from './lib/sbm11-lws.mjs';
|
|
27
27
|
import { nodeSyncTransport } from './lib/sync-http-node.mjs';
|
|
28
|
+
import { nodeCidHost } from './lib/cid-node.mjs';
|
|
28
29
|
|
|
29
30
|
/**
|
|
30
31
|
* The loaded Lean engine handle: `call(op, args)`, `callBlob`,
|
|
@@ -45,6 +46,8 @@ const api = buildApi({
|
|
|
45
46
|
engineName: 'lean4-wasm',
|
|
46
47
|
loadEntry: async () => entryFromEngine(await loadEngine()),
|
|
47
48
|
storeReaderFor: (root) => (path) => readFileSync(join(root, path)),
|
|
49
|
+
// Name resolution and a GET pinned to one address (issue 1100 item 9).
|
|
50
|
+
cidHost: nodeCidHost,
|
|
48
51
|
});
|
|
49
52
|
|
|
50
53
|
// RDF and SPARQL
|
|
@@ -55,12 +58,28 @@ export const serialize = api.serialize;
|
|
|
55
58
|
export const canonicalize = api.canonicalize;
|
|
56
59
|
export const graphs = api.graphs;
|
|
57
60
|
export const canonicalHash = api.canonicalHash;
|
|
61
|
+
export const asDefaultGraph = api.asDefaultGraph;
|
|
58
62
|
export const isomorphic = api.isomorphic;
|
|
63
|
+
export const datasetMerge = api.datasetMerge;
|
|
59
64
|
export const fromQuads = api.fromQuads;
|
|
65
|
+
// Literal values (https://github.com/danbri/factoidal/issues/1051): synchronous
|
|
66
|
+
// after the engine is loaded.
|
|
67
|
+
export const literalValue = api.literalValue;
|
|
68
|
+
export const isValidLiteral = api.isValidLiteral;
|
|
69
|
+
export const canonicalLiteral = api.canonicalLiteral;
|
|
70
|
+
export const literalFromValue = api.literalFromValue;
|
|
60
71
|
export const ready = api.ready;
|
|
61
72
|
export const engineTables = api.engineTables;
|
|
73
|
+
export const sameValue = api.sameValue;
|
|
74
|
+
export const syntaxFor = api.syntaxFor;
|
|
75
|
+
export const splitIri = api.splitIri;
|
|
76
|
+
export const isNCName = api.isNCName;
|
|
77
|
+
export const vocabularies = api.vocabularies;
|
|
78
|
+
export const memberIri = api.memberIri;
|
|
79
|
+
export const memberOrdinal = api.memberOrdinal;
|
|
62
80
|
export const openDataset = api.openDataset;
|
|
63
81
|
export const closure = api.closure;
|
|
82
|
+
export const sparqlRlInfer = api.sparqlRlInfer;
|
|
64
83
|
export const formats = api.formats;
|
|
65
84
|
export const queryRaw = api.queryRaw;
|
|
66
85
|
export const queryHdt = api.queryHdt;
|
|
@@ -115,6 +134,7 @@ export const explain = api.explain;
|
|
|
115
134
|
export const stages = api.stages;
|
|
116
135
|
export const node = api.node;
|
|
117
136
|
export const pipe = api.pipe;
|
|
137
|
+
export const graph = api.graph;
|
|
118
138
|
export const run = api.run;
|
|
119
139
|
export const rdfsPlusClosure = api.rdfsPlusClosure;
|
|
120
140
|
export const rhoDfClosure = api.rhoDfClosure;
|
|
@@ -156,12 +176,21 @@ export const vcSha256Hex = api.vcSha256Hex;
|
|
|
156
176
|
export const vcEd25519SecretToPublic = api.vcEd25519SecretToPublic;
|
|
157
177
|
export const vcEd25519Sign = api.vcEd25519Sign;
|
|
158
178
|
export const vcEd25519Verify = api.vcEd25519Verify;
|
|
179
|
+
|
|
180
|
+
// XML Encryption 1.1 and JWE; AES through WebCrypto (lib/cipher-host.mjs)
|
|
181
|
+
export const xmlDecrypt = api.xmlDecrypt;
|
|
182
|
+
export const xmlEncrypt = api.xmlEncrypt;
|
|
183
|
+
export const jweDecrypt = api.jweDecrypt;
|
|
184
|
+
export const jweEncrypt = api.jweEncrypt;
|
|
159
185
|
export const vcEddsaCreateFromCanonical = api.vcEddsaCreateFromCanonical;
|
|
160
186
|
export const vcEddsaVerifyFromCanonical = api.vcEddsaVerifyFromCanonical;
|
|
161
187
|
export const vcCheckCredential = api.vcCheckCredential;
|
|
162
188
|
export const vcCheckCredentialSubject = api.vcCheckCredentialSubject;
|
|
163
189
|
export const vcCheckNoDataLoss = api.vcCheckNoDataLoss;
|
|
164
190
|
export const vcCheckRelatedResourceDigests = api.vcCheckRelatedResourceDigests;
|
|
191
|
+
// Controlled Identifiers v1.0 (https://github.com/danbri/factoidal/issues/1100).
|
|
192
|
+
export const cidValidate = api.cidValidate;
|
|
193
|
+
export const cidRetrieveVerificationMethod = api.cidRetrieveVerificationMethod;
|
|
165
194
|
export const didKeyResolve = api.didKeyResolve;
|
|
166
195
|
|
|
167
196
|
// Types, probes and metadata
|
package/l4-assets/l4factoidal.js
CHANGED
|
Binary file
|
package/l4-assets/version.json
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"engine": "lean4",
|
|
3
3
|
"note": "The Lean 4 (L4Factoidal) engine build provenance and claims: the only engine of @factoidal/core since 0.9.0 (issue 713). This committed file is a placeholder. tools/fetch-builds.sh --set web (through tools/stamp-l4-version.mjs) writes the provenance members from the danbri/factoidal-builds release that built the wasm; formal/lean4/Wasm/build-wasm.sh step 9 writes them for a local build. Do not commit a stamped copy.",
|
|
4
4
|
"stamped": true,
|
|
5
|
-
"release": "danbri/factoidal-builds build-
|
|
6
|
-
"releaseRun": "https://github.com/danbri/factoidal-builds/actions/runs/
|
|
7
|
-
"gitSha": "
|
|
8
|
-
"builtAt": "2026-10-
|
|
5
|
+
"release": "danbri/factoidal-builds build-7ab6936b6710-web",
|
|
6
|
+
"releaseRun": "https://github.com/danbri/factoidal-builds/actions/runs/40733510537",
|
|
7
|
+
"gitSha": "7ab6936b6710f2a68517a1fd3a1bf047e96c3c7c",
|
|
8
|
+
"builtAt": "2026-10-28T17:53:09Z",
|
|
9
9
|
"leanToolchain": "leanprover/lean4:v4.33.1",
|
|
10
10
|
"emscripten": "6.0.8",
|
|
11
11
|
"abiVersion": "1",
|
|
12
12
|
"engineVersion": "l4factoidal-wasm 0.2.0 (dispatch: RDF parse/serialize, SPARQL query+update, RDFS/OWL-RL closures, RDFC-1.0, CL/IKL)",
|
|
13
13
|
"version": "l4factoidal-wasm 0.2.0 (dispatch: RDF parse/serialize, SPARQL query+update, RDFS/OWL-RL closures, RDFC-1.0, CL/IKL)",
|
|
14
|
-
"wasmSha256": "
|
|
15
|
-
"wasmBytes":
|
|
14
|
+
"wasmSha256": "18074526651eb00293b15be5c6d6e117e9d07271f1d104340b9d9ecff3b826c2",
|
|
15
|
+
"wasmBytes": 19211990,
|
|
16
16
|
"claims": {
|
|
17
17
|
"source": "formal/lean4 (L4Factoidal): no sorry, no user axioms, no native_decide; W3C behaviour pinned by build-time #guard",
|
|
18
18
|
"suitesAtBuildSha": "see docs/test-results and formal/lean4/PORT_NOTES.md at gitSha"
|