@plumbus/ai-decision-laya 0.2.2 → 0.2.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.
- package/CHANGELOG.md +7 -1
- package/README.md +162 -19
- package/dist/.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/service/test_audit_round_two.py +8 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plumbus/ai-decision-laya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Self-hosted Laya typed decision adapter and Python reference service for Plumbus.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"@types/node": "^25.4.0",
|
|
44
44
|
"typescript": "^5.7.0",
|
|
45
45
|
"vitest": "^3.2.4",
|
|
46
|
-
"@plumbus/core": "0.7.
|
|
46
|
+
"@plumbus/core": "0.7.9"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@plumbus/ai-decision": "~0.2.
|
|
49
|
+
"@plumbus/ai-decision": "~0.2.3"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "tsc -b",
|
|
@@ -108,7 +108,14 @@ class ServiceRoundTwo(unittest.TestCase):
|
|
|
108
108
|
first.start()
|
|
109
109
|
try:
|
|
110
110
|
self.assertTrue(entered.wait(1))
|
|
111
|
-
|
|
111
|
+
# Capacity is rejected before request bytes are read. Sending a body
|
|
112
|
+
# here races the server closing the rejected connection.
|
|
113
|
+
with socket.create_connection(server.server_address, timeout=2) as rejected:
|
|
114
|
+
response = http.client.HTTPResponse(rejected)
|
|
115
|
+
response.begin()
|
|
116
|
+
self.assertEqual(response.status, 503)
|
|
117
|
+
self.assertEqual(response.getheader("Retry-After"), "1")
|
|
118
|
+
self.assertEqual(json.loads(response.read()), {"error": "Service connection capacity reached"})
|
|
112
119
|
finish.set()
|
|
113
120
|
first.join(2)
|
|
114
121
|
self.assertEqual(results, [200])
|