@femtomc/mu-server 26.3.2 → 26.3.4
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/dist/server.js +21 -9
- 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
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
2
|
+
"name": "@femtomc/mu-server",
|
|
3
|
+
"version": "26.3.4",
|
|
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.4",
|
|
34
|
+
"@femtomc/mu-control-plane": "26.3.4",
|
|
35
|
+
"@femtomc/mu-core": "26.3.4"
|
|
36
|
+
}
|
|
37
37
|
}
|