@femtomc/mu-server 26.3.2 → 26.3.3

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.
Files changed (2) hide show
  1. package/dist/server.js +21 -9
  2. package/package.json +35 -35
package/dist/server.js CHANGED
@@ -265,15 +265,27 @@ function createServer(options = {}) {
265
265
  }
266
266
  else {
267
267
  const failureCode = extractWakeTurnFailureCode(turnReply);
268
- if (failureCode === "operator_busy") {
269
- decision = {
270
- outcome: "fallback",
271
- reason: "operator_busy",
272
- turnRequestId,
273
- turnResultKind: turnResult.kind,
274
- turnReply: null,
275
- error: null,
276
- };
268
+ if (failureCode) {
269
+ if (failureCode === "operator_busy") {
270
+ decision = {
271
+ outcome: "fallback",
272
+ reason: "operator_busy",
273
+ turnRequestId,
274
+ turnResultKind: turnResult.kind,
275
+ turnReply: null,
276
+ error: null,
277
+ };
278
+ }
279
+ else {
280
+ decision = {
281
+ outcome: "fallback",
282
+ reason: failureCode,
283
+ turnRequestId,
284
+ turnResultKind: turnResult.kind,
285
+ turnReply,
286
+ error: failureCode,
287
+ };
288
+ }
277
289
  }
278
290
  else {
279
291
  decision = {
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
1
  {
2
- "name": "@femtomc/mu-server",
3
- "version": "26.3.2",
4
- "description": "HTTP API server for mu control-plane transport/session plus run/activity scheduling coordination.",
5
- "keywords": [
6
- "mu",
7
- "server",
8
- "api",
9
- "web",
10
- "automation"
11
- ],
12
- "type": "module",
13
- "main": "./dist/index.js",
14
- "types": "./dist/index.d.ts",
15
- "bin": {
16
- "mu-server": "./dist/cli.js"
17
- },
18
- "exports": {
19
- ".": {
20
- "types": "./dist/index.d.ts",
21
- "default": "./dist/index.js"
22
- }
23
- },
24
- "files": [
25
- "dist/**"
26
- ],
27
- "scripts": {
28
- "build": "tsc -p tsconfig.build.json",
29
- "test": "bun test",
30
- "start": "bun run dist/cli.js"
31
- },
32
- "dependencies": {
33
- "@femtomc/mu-agent": "26.3.2",
34
- "@femtomc/mu-control-plane": "26.3.2",
35
- "@femtomc/mu-core": "26.3.2"
36
- }
2
+ "name": "@femtomc/mu-server",
3
+ "version": "26.3.3",
4
+ "description": "HTTP API server for mu control-plane transport/session plus run/activity scheduling coordination.",
5
+ "keywords": [
6
+ "mu",
7
+ "server",
8
+ "api",
9
+ "web",
10
+ "automation"
11
+ ],
12
+ "type": "module",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "bin": {
16
+ "mu-server": "./dist/cli.js"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist/**"
26
+ ],
27
+ "scripts": {
28
+ "build": "tsc -p tsconfig.build.json",
29
+ "test": "bun test",
30
+ "start": "bun run dist/cli.js"
31
+ },
32
+ "dependencies": {
33
+ "@femtomc/mu-agent": "26.3.3",
34
+ "@femtomc/mu-control-plane": "26.3.3",
35
+ "@femtomc/mu-core": "26.3.3"
36
+ }
37
37
  }