@agent-beam/beam 0.2.33 → 0.2.35
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/README.md +31 -5
- package/Skills/agentbeam-app-monitoring/SKILL.md +4 -1
- package/dist/cli.js +34 -3
- package/dist/cli.js.map +1 -1
- package/dist/monitor-client.d.ts +47 -0
- package/dist/monitor-client.js +24 -0
- package/dist/monitor-client.js.map +1 -1
- package/dist/monitor-config.d.ts +4 -1
- package/dist/monitor-config.js +25 -3
- package/dist/monitor-config.js.map +1 -1
- package/dist/monitor-deny.d.ts +35 -0
- package/dist/monitor-deny.js +141 -0
- package/dist/monitor-deny.js.map +1 -0
- package/dist/monitor-pause.d.ts +171 -0
- package/dist/monitor-pause.js +510 -0
- package/dist/monitor-pause.js.map +1 -0
- package/dist/monitor-pipeline.d.ts +12 -0
- package/dist/monitor-pipeline.js +25 -2
- package/dist/monitor-pipeline.js.map +1 -1
- package/dist/monitor-rules.d.ts +38 -0
- package/dist/monitor-rules.js +37 -0
- package/dist/monitor-rules.js.map +1 -1
- package/dist/monitor.d.ts +28 -0
- package/dist/monitor.js +223 -12
- package/dist/monitor.js.map +1 -1
- package/dist/sdk.d.ts +69 -5
- package/dist/sdk.js +219 -27
- package/dist/sdk.js.map +1 -1
- package/package.json +1 -1
- package/stress-report.json +43 -42
package/stress-report.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
3
|
"package": "@agent-beam/beam",
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"generatedAt": "2026-10-
|
|
4
|
+
"version": "0.2.35",
|
|
5
|
+
"generatedAt": "2026-10-25T07:51:10.807Z",
|
|
6
6
|
"passed": true,
|
|
7
7
|
"environment": {
|
|
8
8
|
"node": "v25.5.0",
|
|
@@ -16,30 +16,30 @@
|
|
|
16
16
|
"id": "hostile-input",
|
|
17
17
|
"title": "Hostile input",
|
|
18
18
|
"passed": true,
|
|
19
|
-
"summary": "41 attack shapes at 16 KB; the slowest took
|
|
19
|
+
"summary": "41 attack shapes at 16 KB; the slowest took 9.12 ms (unicode tags)",
|
|
20
20
|
"measured": {
|
|
21
|
-
"worstMs":
|
|
21
|
+
"worstMs": 9.12,
|
|
22
22
|
"cases": 41,
|
|
23
23
|
"slowest": [
|
|
24
24
|
{
|
|
25
25
|
"input": "unicode tags",
|
|
26
|
-
"ms":
|
|
26
|
+
"ms": 9.12
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"input": "curl|",
|
|
30
|
-
"ms":
|
|
30
|
+
"ms": 7.82
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"input": "",
|
|
53
53
|
"measured": {
|
|
54
|
-
"worstMs":
|
|
54
|
+
"worstMs": 202.2,
|
|
55
55
|
"cases": 17,
|
|
56
56
|
"slowest": [
|
|
57
57
|
{
|
|
58
58
|
"input": "curl ",
|
|
59
|
-
"ms":
|
|
59
|
+
"ms": 202.2
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"input": "short lines",
|
|
63
|
-
"ms":
|
|
63
|
+
"ms": 175.1
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"input": "ngrok",
|
|
67
|
-
"ms":
|
|
67
|
+
"ms": 104.7
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
"input": "webhook",
|
|
71
|
-
"ms":
|
|
71
|
+
"ms": 85.6
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"input": "one long line",
|
|
75
|
-
"ms":
|
|
75
|
+
"ms": 81.5
|
|
76
76
|
}
|
|
77
77
|
]
|
|
78
78
|
},
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"id": "throughput",
|
|
83
83
|
"title": "Log throughput",
|
|
84
84
|
"passed": true,
|
|
85
|
-
"summary": "
|
|
85
|
+
"summary": "38,479 log lines per second on one core, attacks included",
|
|
86
86
|
"measured": {
|
|
87
|
-
"linesPerSecond":
|
|
87
|
+
"linesPerSecond": 38479,
|
|
88
88
|
"lines": 300000
|
|
89
89
|
},
|
|
90
90
|
"limit": "over 10,000 lines per second"
|
|
@@ -93,10 +93,11 @@
|
|
|
93
93
|
"id": "per-call",
|
|
94
94
|
"title": "Cost per call in your app",
|
|
95
95
|
"passed": true,
|
|
96
|
-
"summary": "request()
|
|
96
|
+
"summary": "request() 27 µs (46.6 µs with full headers and Cloudflare's bot fields), prompt() 14.1 µs on a short message",
|
|
97
97
|
"measured": {
|
|
98
|
-
"requestMicros":
|
|
99
|
-
"
|
|
98
|
+
"requestMicros": 27,
|
|
99
|
+
"requestWithHeadersMicros": 46.6,
|
|
100
|
+
"promptMicros": 14.1
|
|
100
101
|
},
|
|
101
102
|
"limit": "request() under 100 µs and prompt() under 200 µs"
|
|
102
103
|
},
|
|
@@ -104,18 +105,18 @@
|
|
|
104
105
|
"id": "memory-cli",
|
|
105
106
|
"title": "Memory under load (beam monitor)",
|
|
106
107
|
"passed": true,
|
|
107
|
-
"summary": "9.
|
|
108
|
+
"summary": "9.9 MB at start; 13.2, 13.3, 12.4, 12.2, 11.9, 11.8 MB after each 500,000 lines; -1.5 MB from 1M to 3M lines",
|
|
108
109
|
"measured": {
|
|
109
110
|
"heapMb": [
|
|
110
|
-
13,
|
|
111
|
-
13.
|
|
112
|
-
|
|
113
|
-
13,
|
|
111
|
+
13.2,
|
|
112
|
+
13.3,
|
|
113
|
+
12.4,
|
|
114
114
|
12.2,
|
|
115
|
-
11.
|
|
115
|
+
11.9,
|
|
116
|
+
11.8
|
|
116
117
|
],
|
|
117
|
-
"startMb": 9.
|
|
118
|
-
"growthMb": -1.
|
|
118
|
+
"startMb": 9.9,
|
|
119
|
+
"growthMb": -1.5,
|
|
119
120
|
"footprint": {
|
|
120
121
|
"seen": 200,
|
|
121
122
|
"queue": 1000,
|
|
@@ -137,13 +138,13 @@
|
|
|
137
138
|
"id": "memory-sdk",
|
|
138
139
|
"title": "Memory in your app while AgentBeam is down",
|
|
139
140
|
"passed": true,
|
|
140
|
-
"summary": "8.
|
|
141
|
+
"summary": "8.6, 8.6, 8.6, 8.6 MB after each 250,000 requests and prompts",
|
|
141
142
|
"measured": {
|
|
142
143
|
"heapMb": [
|
|
143
|
-
8.
|
|
144
|
-
8.
|
|
145
|
-
8.
|
|
146
|
-
8.
|
|
144
|
+
8.6,
|
|
145
|
+
8.6,
|
|
146
|
+
8.6,
|
|
147
|
+
8.6
|
|
147
148
|
],
|
|
148
149
|
"growthMb": 0
|
|
149
150
|
},
|
|
@@ -153,12 +154,12 @@
|
|
|
153
154
|
"id": "outage",
|
|
154
155
|
"title": "AgentBeam down or slow",
|
|
155
156
|
"passed": true,
|
|
156
|
-
"summary": "request() stayed at
|
|
157
|
+
"summary": "request() stayed at 23.3 µs; 1 send attempt, then none while backing off; a hung connection was dropped after 5.0 s, off the request path",
|
|
157
158
|
"measured": {
|
|
158
|
-
"requestMicros":
|
|
159
|
+
"requestMicros": 23.3,
|
|
159
160
|
"attemptsBeforeBackoff": 1,
|
|
160
161
|
"attemptsDuringBackoff": 0,
|
|
161
|
-
"hungFlushMs":
|
|
162
|
+
"hungFlushMs": 5001
|
|
162
163
|
},
|
|
163
164
|
"limit": "no slowdown, no retries during backoff, hung sends dropped within 7 s"
|
|
164
165
|
},
|
|
@@ -166,13 +167,13 @@
|
|
|
166
167
|
"id": "cpu-budget",
|
|
167
168
|
"title": "CPU cap",
|
|
168
169
|
"passed": true,
|
|
169
|
-
"summary": "with a 1% cap (600 ms a minute), a flood of 200 KB documents got
|
|
170
|
+
"summary": "with a 1% cap (600 ms a minute), a flood of 200 KB documents got 643 ms of checking (61 documents); the rest were skipped, flagged as skipped, at 0.12 µs each",
|
|
170
171
|
"measured": {
|
|
171
172
|
"capMs": 600,
|
|
172
|
-
"spentMs":
|
|
173
|
+
"spentMs": 643,
|
|
173
174
|
"checked": 61,
|
|
174
175
|
"skipped": 100000,
|
|
175
|
-
"skippedCallMicros": 0.
|
|
176
|
+
"skippedCallMicros": 0.12
|
|
176
177
|
},
|
|
177
178
|
"limit": "under twice the cap (one check can finish after the cap is reached)"
|
|
178
179
|
}
|