@cynodia/axiom-server 0.6.0-alpha.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/LICENSE +21 -0
- package/README.md +46 -0
- package/conformance/argument-validation.json +783 -0
- package/conformance/authorization.json +772 -0
- package/conformance/concurrent-invocations.json +759 -0
- package/conformance/constraint-rolls-back.json +759 -0
- package/conformance/for-each-provisional.json +754 -0
- package/conformance/guard-refuses.json +768 -0
- package/conformance/idempotent-retry.json +761 -0
- package/conformance/mutation-commits.json +754 -0
- package/conformance/restart.json +759 -0
- package/conformance/transition-constraint.json +759 -0
- package/dist/deps.d.ts +11 -0
- package/dist/deps.js +1 -0
- package/dist/host.d.ts +57 -0
- package/dist/host.js +28 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +8 -0
- package/dist/node-host.d.ts +22 -0
- package/dist/node-host.js +63 -0
- package/dist/persistence.d.ts +58 -0
- package/dist/persistence.js +38 -0
- package/dist/protocol.d.ts +72 -0
- package/dist/protocol.js +16 -0
- package/dist/runtime-deps.d.ts +3 -0
- package/dist/runtime-deps.js +2 -0
- package/dist/server.d.ts +58 -0
- package/dist/server.js +419 -0
- package/dist/sqlite-persistence.d.ts +21 -0
- package/dist/sqlite-persistence.js +73 -0
- package/dist/transport.d.ts +38 -0
- package/dist/transport.js +106 -0
- package/package.json +42 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AskTech AS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Axiom Server
|
|
2
|
+
|
|
3
|
+
Part of [Axiom](https://github.com/cynodia/axiom), an AI-native semantic web application
|
|
4
|
+
framework.
|
|
5
|
+
|
|
6
|
+
**Status: experimental / alpha.** The API may change between alpha releases.
|
|
7
|
+
|
|
8
|
+
The authoritative runtime. It executes a **Server IR** — the half of an application graph
|
|
9
|
+
that decides things — with the same semantic engine the client runs, so transaction
|
|
10
|
+
boundaries, provisional writes, `for-each` ordering, constraints, transition constraints
|
|
11
|
+
and rollback behave identically on either side of the trust boundary.
|
|
12
|
+
|
|
13
|
+
A client requests semantic actions; it never sends operations. Authorization, guards and
|
|
14
|
+
argument validation are evaluated here and nowhere else.
|
|
15
|
+
|
|
16
|
+
Adapters keep the semantics free of infrastructure: `PersistenceAdapter` (in-memory and
|
|
17
|
+
SQLite), `TransportAdapter` (in-process and HTTP), and `ServerHost` for time, identifiers
|
|
18
|
+
and authentication. Nothing in an ApplicationGraph mentions HTTP, SQL or a route.
|
|
19
|
+
|
|
20
|
+
Main exports: `createAxiomServer`, `createMemoryPersistence`, `createSqlitePersistence`,
|
|
21
|
+
`createServerHost`, `createDirectTransport`, `createHttpTransport`, `createRemoteGateway`,
|
|
22
|
+
`serveOverHttp`, `SERVER_DIAGNOSTIC_CODES`.
|
|
23
|
+
|
|
24
|
+
`conformance/*.json` ships with this package: portable fixtures — a Server IR, the state to
|
|
25
|
+
start from, invocations and expected results — that any conforming runtime can be held to.
|
|
26
|
+
|
|
27
|
+
## Installation
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
npm install @cynodia/axiom-server@alpha
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
This package is **not** re-exported by the `@cynodia/axiom` facade, because it imports
|
|
34
|
+
`node:http` and `node:sqlite`. A server-capable application installs both.
|
|
35
|
+
|
|
36
|
+
## Documentation
|
|
37
|
+
|
|
38
|
+
The canonical operational contract lives in the `docs/` directory of the
|
|
39
|
+
[`@cynodia/axiom`](https://www.npmjs.com/package/@cynodia/axiom) package, and in
|
|
40
|
+
[the repository](https://github.com/cynodia/axiom). Start with `docs/AUTHORITY.md`.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
MIT
|
|
45
|
+
|
|
46
|
+
Copyright (c) 2026 AskTech AS.
|