@astrale-os/kernel-server 1.0.0-beta.6 → 1.0.0-beta.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.
@@ -68,8 +68,9 @@ export async function nativeResponse(request, snapshot, options, responseCors) {
68
68
  });
69
69
  }
70
70
  if (result.kind === 'execution') {
71
- // The call has started its Execution: accept it with the reference, never a failure.
72
- return new Response(encodedBody(codecs.json.encode({ id: result.execution })), {
71
+ // The call has started or replayed its Execution: accept it with the reference, never a
72
+ // failure, saying whether this call created it.
73
+ return new Response(encodedBody(codecs.json.encode({ id: result.execution, replayed: result.replayed })), {
73
74
  status: 202,
74
75
  headers: {
75
76
  ...responseCors,
@@ -18,6 +18,7 @@ export function renderHttpResult(result, context) {
18
18
  case 'execution':
19
19
  envelope = {
20
20
  execution: result.execution,
21
+ replayed: result.replayed,
21
22
  requestId: context.requestId,
22
23
  invocation: context.invocation,
23
24
  };
@@ -198,6 +198,7 @@ async function sendResult(socket, codec, requestId, assigned, result, operation,
198
198
  case 'execution':
199
199
  await send(socket, codec, {
200
200
  execution: result.execution,
201
+ replayed: result.replayed,
201
202
  requestId,
202
203
  invocation: assigned,
203
204
  }, sendOutput);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-server",
3
- "version": "1.0.0-beta.6",
3
+ "version": "1.0.0-beta.8",
4
4
  "description": "Portable HTTP and WebSocket boundary for Astrale invocation, Release, installation, and issuer protocols",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,9 +25,9 @@
25
25
  "access": "public"
26
26
  },
27
27
  "dependencies": {
28
- "@astrale-os/kernel-core": "1.0.0-beta.6",
28
+ "@astrale-os/kernel-core": "1.0.0-beta.8",
29
29
  "@astrale-os/kernel-dsl": "1.0.0-beta.3",
30
- "@astrale-os/kernel-protocol": "1.0.0-beta.6",
30
+ "@astrale-os/kernel-protocol": "1.0.0-beta.8",
31
31
  "hono": "^4.6.20"
32
32
  },
33
33
  "devDependencies": {