@astrale-os/kernel-server 0.5.0-beta.22 → 0.5.0-beta.25
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 +109 -0
- package/dist/cors/cors.js +2 -0
- package/dist/issuer/exchange.js +9 -0
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -21,6 +21,115 @@
|
|
|
21
21
|
* the first supported V2 release is a coordinated `1.0.0`; see
|
|
22
22
|
[the API migration contract](../api/.spec/MIGRATION.md)
|
|
23
23
|
|
|
24
|
+
## [0.5.0-beta.25](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.24...kernel-server-v0.5.0-beta.25) (2026-08-29)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* add compiled remote domain serving ([ac9e365](https://github.com/astrale-os/kernel/commit/ac9e36538982a91359712e4cbbc68353ea2cc1a2))
|
|
30
|
+
* add compiled remote Domain serving ([6149628](https://github.com/astrale-os/kernel/commit/6149628820d1294981156ff5b50ceaa522ea0403))
|
|
31
|
+
* add source-qualified Invocation identity ([#331](https://github.com/astrale-os/kernel/issues/331)) ([ac87f3c](https://github.com/astrale-os/kernel/commit/ac87f3c67907290f43b21ca1efe2c3b51541c73d))
|
|
32
|
+
* **api:** ratify token exchange lifecycle ([#519](https://github.com/astrale-os/kernel/issues/519)) ([33831ff](https://github.com/astrale-os/kernel/commit/33831ffac82dc96f5d71488d6f410d1710b85ca0))
|
|
33
|
+
* **authentication:** support live trust replacement ([844b90e](https://github.com/astrale-os/kernel/commit/844b90edcceda1edf6da5991b31d7ce68ebcabc5))
|
|
34
|
+
* **callable:** preserve native binary streams and status ([d14c6f1](https://github.com/astrale-os/kernel/commit/d14c6f13492c14a3363b2c4af59c738034752fa2))
|
|
35
|
+
* **errors:** expose rich manager failure reasons ([b7531f5](https://github.com/astrale-os/kernel/commit/b7531f5f6cbc268eec01d4040f8128b35388ba53))
|
|
36
|
+
* **invocation:** preserve same-schema remote domain calls ([1c54830](https://github.com/astrale-os/kernel/commit/1c54830829c0e49612f354f5c4b8d4a12cc7e22c))
|
|
37
|
+
* remove Property visibility and cut DSL V2 ([#518](https://github.com/astrale-os/kernel/issues/518)) ([4d99e8f](https://github.com/astrale-os/kernel/commit/4d99e8f0837136cf6be257ab3a6df666b62e06b5))
|
|
38
|
+
* **runtime:** expose actionable failure details ([d602442](https://github.com/astrale-os/kernel/commit/d6024422d765806ba58f1f9cc97d7f572b4fd705))
|
|
39
|
+
* **runtime:** expose actionable failure details ([72498e0](https://github.com/astrale-os/kernel/commit/72498e0898a014c79d78a3ddf6035de0d4b2c43e))
|
|
40
|
+
* **runtime:** expose rich Host Manager failure reasons ([15eb8a7](https://github.com/astrale-os/kernel/commit/15eb8a793704665ed3f5ea1900f3d60cb37cd281))
|
|
41
|
+
* **runtime:** preserve remote Domain calls across same-schema deployments ([40c237b](https://github.com/astrale-os/kernel/commit/40c237bc4877068ba94b53a29d916e7c8f633f1e))
|
|
42
|
+
* **runtime:** support buffered and streaming binary ([fcd73f9](https://github.com/astrale-os/kernel/commit/fcd73f99c75963257b595449b1a0e0e4e234a05d))
|
|
43
|
+
* **runtime:** support live Authentication Trust replacement ([db66131](https://github.com/astrale-os/kernel/commit/db661317c75c5c29232ce9b4747acb1c9171fe00))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### Bug Fixes
|
|
47
|
+
|
|
48
|
+
* align the official kernel package cohort ([#371](https://github.com/astrale-os/kernel/issues/371)) ([30fda63](https://github.com/astrale-os/kernel/commit/30fda63157bbaf756af2d46efed4e2fc5bc17d4b))
|
|
49
|
+
* **api:** finish binary delivery taxonomy ([#462](https://github.com/astrale-os/kernel/issues/462)) ([2fce294](https://github.com/astrale-os/kernel/commit/2fce29427449280e2629d07817780b121f6c6b79))
|
|
50
|
+
* **api:** retain visibility-free DSL as V1 ([#526](https://github.com/astrale-os/kernel/issues/526)) ([e24c1ea](https://github.com/astrale-os/kernel/commit/e24c1ea257e8567d9bd33c6ada0de63bb346a496))
|
|
51
|
+
* **core:** preserve callable identity and runtime boundaries ([#394](https://github.com/astrale-os/kernel/issues/394)) ([ad67dad](https://github.com/astrale-os/kernel/commit/ad67dad84aef3c8b79f769009595ea1f1229026b))
|
|
52
|
+
* **deps:** refresh the Kernel dependency cohort ([#393](https://github.com/astrale-os/kernel/issues/393)) ([883e7bb](https://github.com/astrale-os/kernel/commit/883e7bb7ce17eecb7dad1c94ad2089c576ba3746))
|
|
53
|
+
* **host:** recover interrupted command generations ([6f8170d](https://github.com/astrale-os/kernel/commit/6f8170dac62c1b0c1354e479130abb536f6388c8))
|
|
54
|
+
* **packages:** keep workspace guard private ([e0ba76c](https://github.com/astrale-os/kernel/commit/e0ba76c5ae163245e31115e2a72e0663db0f5320))
|
|
55
|
+
* **packages:** keep workspace guard private ([d260a52](https://github.com/astrale-os/kernel/commit/d260a52329cde5ce4b0260c43a3bbf28cb78f408))
|
|
56
|
+
* **packages:** keep workspace guard private ([a3e82ec](https://github.com/astrale-os/kernel/commit/a3e82ec671f07252a5966b4de988e275e4078b8c))
|
|
57
|
+
* **packages:** preserve compatible beta dependency floors ([2731605](https://github.com/astrale-os/kernel/commit/273160597ad0350b78f3a9e82d563a3e39f0bbe1))
|
|
58
|
+
* **packages:** preserve compatible beta dependency floors ([9075acd](https://github.com/astrale-os/kernel/commit/9075acd455cb711ef185902c6a454d7bcd9f5791))
|
|
59
|
+
* **protocol:** enforce publication media type ([#493](https://github.com/astrale-os/kernel/issues/493)) ([9b79abf](https://github.com/astrale-os/kernel/commit/9b79abfa0885e7b7b3ca514d59de3610ecef320f))
|
|
60
|
+
* publish a TypeScript-compatible cohort ([#406](https://github.com/astrale-os/kernel/issues/406)) ([f1a0cd0](https://github.com/astrale-os/kernel/commit/f1a0cd09f2f0b4498f9fa8924b2e319cac6552b7))
|
|
61
|
+
* **release:** add package repository metadata ([8238077](https://github.com/astrale-os/kernel/commit/8238077d47a96c0f7b50a1bae8769fe4faab45b7))
|
|
62
|
+
* **release:** align the published beta cohort ([8f2dc4a](https://github.com/astrale-os/kernel/commit/8f2dc4a7156aeee4dc9034624d2ffa2b3583d5b8))
|
|
63
|
+
* **release:** harden public package closure ([#397](https://github.com/astrale-os/kernel/issues/397)) ([5a5886f](https://github.com/astrale-os/kernel/commit/5a5886fe66c7b3ea0a014766a5df8c04fd93efeb))
|
|
64
|
+
* **release:** publish exact Kernel cohort edges ([04629b8](https://github.com/astrale-os/kernel/commit/04629b89515aa665ede2f9fe058888bad45ab896))
|
|
65
|
+
* **release:** publish exact Kernel cohort edges ([14f2c52](https://github.com/astrale-os/kernel/commit/14f2c52329874fdad43114a964521599c8313eab))
|
|
66
|
+
* **runtime:** clarify Domain transition Foundation without narrowing behavior ([bce2184](https://github.com/astrale-os/kernel/commit/bce21848e645d2570cf056d56cc0d4489c656d14))
|
|
67
|
+
* **runtime:** close domain transition foundation drift ([310f95f](https://github.com/astrale-os/kernel/commit/310f95fadfb1a85fb19ac52b69a58427d22a5788))
|
|
68
|
+
* **runtime:** qualify local Domain production journey ([d35b1be](https://github.com/astrale-os/kernel/commit/d35b1be05b2463eb51a6d93f8ea1811fd489a7ab))
|
|
69
|
+
* **runtime:** qualify local Domain production journey ([396351a](https://github.com/astrale-os/kernel/commit/396351ae2fcfe67ef49f624e4ef0214bad2448c3))
|
|
70
|
+
* **server:** preserve compatible remote schema continuity ([#508](https://github.com/astrale-os/kernel/issues/508)) ([306a275](https://github.com/astrale-os/kernel/commit/306a275dd7253810085f5b8c86cef15fffd95089))
|
|
71
|
+
* **server:** project invocation capacity through health ([bb09c78](https://github.com/astrale-os/kernel/commit/bb09c78203c45d9e1cde416ac5ebe28e1123092c))
|
|
72
|
+
* **system:** clear Codegraph diagnostic debt ([f7a8e1f](https://github.com/astrale-os/kernel/commit/f7a8e1f5c5694d9c3c45d95fde184f0d5f2c7343))
|
|
73
|
+
* **system:** clear Codegraph diagnostic debt ([45f86a9](https://github.com/astrale-os/kernel/commit/45f86a9ce14a224efed0e07966a5df8d7a892078))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Performance Improvements
|
|
77
|
+
|
|
78
|
+
* **operations:** release only the Host production closure ([3f9d61a](https://github.com/astrale-os/kernel/commit/3f9d61afe6b4f19f4dfd0bd5e454e38f951aaf2a))
|
|
79
|
+
* **server:** cache successful CORS preflights ([#514](https://github.com/astrale-os/kernel/issues/514)) ([a9a3d7c](https://github.com/astrale-os/kernel/commit/a9a3d7ccb4c6e5ca763e5d0798a3c905f5936b28))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### Documentation
|
|
83
|
+
|
|
84
|
+
* **api:** finish buffered and streaming binary vocabulary ([af00cda](https://github.com/astrale-os/kernel/commit/af00cda06b1744b5120cdd3ea3bc39ca58efcceb))
|
|
85
|
+
* **api:** finish buffered and streaming binary vocabulary ([11a28be](https://github.com/astrale-os/kernel/commit/11a28bec361ead8c0ae32e55f545c63042bb1539))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
### Dependencies
|
|
89
|
+
|
|
90
|
+
* The following workspace dependencies were updated
|
|
91
|
+
* dependencies
|
|
92
|
+
* @astrale-os/kernel-core bumped to 0.9.0-beta.22
|
|
93
|
+
* @astrale-os/kernel-dsl bumped to 0.2.0-beta.17
|
|
94
|
+
* @astrale-os/kernel-protocol bumped to 0.5.0-beta.23
|
|
95
|
+
|
|
96
|
+
## [0.5.0-beta.24](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.23...kernel-server-v0.5.0-beta.24) (2026-08-29)
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
### Features
|
|
100
|
+
|
|
101
|
+
* **api:** ratify token exchange lifecycle ([#519](https://github.com/astrale-os/kernel/issues/519)) ([33831ff](https://github.com/astrale-os/kernel/commit/33831ffac82dc96f5d71488d6f410d1710b85ca0))
|
|
102
|
+
* remove Property visibility and cut DSL V2 ([#518](https://github.com/astrale-os/kernel/issues/518)) ([4d99e8f](https://github.com/astrale-os/kernel/commit/4d99e8f0837136cf6be257ab3a6df666b62e06b5))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Bug Fixes
|
|
106
|
+
|
|
107
|
+
* **api:** retain visibility-free DSL as V1 ([#526](https://github.com/astrale-os/kernel/issues/526)) ([e24c1ea](https://github.com/astrale-os/kernel/commit/e24c1ea257e8567d9bd33c6ada0de63bb346a496))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
### Dependencies
|
|
111
|
+
|
|
112
|
+
* The following workspace dependencies were updated
|
|
113
|
+
* dependencies
|
|
114
|
+
* @astrale-os/kernel-core bumped to 0.9.0-beta.21
|
|
115
|
+
* @astrale-os/kernel-dsl bumped to 0.2.0-beta.16
|
|
116
|
+
* @astrale-os/kernel-protocol bumped to 0.5.0-beta.22
|
|
117
|
+
|
|
118
|
+
## [0.5.0-beta.23](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.22...kernel-server-v0.5.0-beta.23) (2026-08-28)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
### Performance Improvements
|
|
122
|
+
|
|
123
|
+
* **server:** cache successful CORS preflights ([#514](https://github.com/astrale-os/kernel/issues/514)) ([a9a3d7c](https://github.com/astrale-os/kernel/commit/a9a3d7ccb4c6e5ca763e5d0798a3c905f5936b28))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Dependencies
|
|
127
|
+
|
|
128
|
+
* The following workspace dependencies were updated
|
|
129
|
+
* dependencies
|
|
130
|
+
* @astrale-os/kernel-core bumped to 0.9.0-beta.20
|
|
131
|
+
* @astrale-os/kernel-protocol bumped to 0.5.0-beta.21
|
|
132
|
+
|
|
24
133
|
## [0.5.0-beta.22](https://github.com/astrale-os/kernel/compare/kernel-server-v0.5.0-beta.21...kernel-server-v0.5.0-beta.22) (2026-08-27)
|
|
25
134
|
|
|
26
135
|
|
package/dist/cors/cors.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** Request-aware CORS admission shared by every Server-owned HTTP surface. */
|
|
2
2
|
const TOKEN = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/u;
|
|
3
|
+
const PREFLIGHT_MAX_AGE_SECONDS = 24 * 60 * 60;
|
|
3
4
|
/** Admit one immutable policy. `false` delegates the complete concern to an outer application. */
|
|
4
5
|
export function prepareCors(input) {
|
|
5
6
|
if (input === false)
|
|
@@ -64,6 +65,7 @@ export function prepareCors(input) {
|
|
|
64
65
|
const allowedHeaders = requestedHeaders.length > 0 ? requestedHeaders : [...routeHeaders];
|
|
65
66
|
const output = new Headers(response(request));
|
|
66
67
|
output.set('access-control-allow-methods', [...allowedMethods, 'OPTIONS'].join(', '));
|
|
68
|
+
output.set('access-control-max-age', String(PREFLIGHT_MAX_AGE_SECONDS));
|
|
67
69
|
if (allowedHeaders.length > 0) {
|
|
68
70
|
output.set('access-control-allow-headers', allowedHeaders.join(', '));
|
|
69
71
|
}
|
package/dist/issuer/exchange.js
CHANGED
|
@@ -60,6 +60,11 @@ export function mount(app, issuer, provider, cors, active, timeoutMs) {
|
|
|
60
60
|
}
|
|
61
61
|
throw cause;
|
|
62
62
|
}
|
|
63
|
+
if (operation.timedOut) {
|
|
64
|
+
return respond(error('DEADLINE_EXCEEDED', 'Token-exchange deadline elapsed.'));
|
|
65
|
+
}
|
|
66
|
+
if (operation.signal.aborted)
|
|
67
|
+
throw operation.signal.reason;
|
|
63
68
|
let output;
|
|
64
69
|
try {
|
|
65
70
|
output = await provider.exchange(admitted, { signal: operation.signal });
|
|
@@ -68,6 +73,8 @@ export function mount(app, issuer, provider, cors, active, timeoutMs) {
|
|
|
68
73
|
if (operation.timedOut) {
|
|
69
74
|
return respond(error('DEADLINE_EXCEEDED', 'Token-exchange deadline elapsed.'));
|
|
70
75
|
}
|
|
76
|
+
if (operation.signal.aborted)
|
|
77
|
+
throw operation.signal.reason;
|
|
71
78
|
if (cause instanceof errors.ProtocolError && PROVIDER_CODES.has(cause.payload.code)) {
|
|
72
79
|
return respond(exchangeProtocol.acceptErrorResponse({ error: cause.payload }));
|
|
73
80
|
}
|
|
@@ -76,6 +83,8 @@ export function mount(app, issuer, provider, cors, active, timeoutMs) {
|
|
|
76
83
|
if (operation.timedOut) {
|
|
77
84
|
return respond(error('DEADLINE_EXCEEDED', 'Token-exchange deadline elapsed.'));
|
|
78
85
|
}
|
|
86
|
+
if (operation.signal.aborted)
|
|
87
|
+
throw operation.signal.reason;
|
|
79
88
|
const response = exchangeProtocol.acceptResponse(output);
|
|
80
89
|
if (inspectCredential(response.token).claims.exp !== response.expiresAt) {
|
|
81
90
|
throw new TypeError('Token-exchange provider returned inconsistent expiry evidence.');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-server",
|
|
3
|
-
"version": "0.5.0-beta.
|
|
3
|
+
"version": "0.5.0-beta.25",
|
|
4
4
|
"description": "Portable HTTP and WebSocket boundary for Astrale invocation, publication, installation, and issuer protocols",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
37
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
38
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
36
|
+
"@astrale-os/kernel-core": "0.9.0-beta.22",
|
|
37
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.17",
|
|
38
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.23",
|
|
39
39
|
"hono": "^4.6.20",
|
|
40
40
|
"msgpackr": "^2.0.5"
|
|
41
41
|
},
|