@agent-beam/beam 0.2.38 → 0.2.39

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 (109) hide show
  1. package/README.md +7 -13
  2. package/dist/access-risk.d.ts +10 -0
  3. package/dist/access-risk.js +43 -0
  4. package/dist/access-risk.js.map +1 -0
  5. package/dist/action-context.d.ts +30 -0
  6. package/dist/action-context.js +203 -0
  7. package/dist/action-context.js.map +1 -0
  8. package/dist/activity.d.ts +22 -0
  9. package/dist/activity.js +132 -0
  10. package/dist/activity.js.map +1 -0
  11. package/dist/agent-hook-install.d.ts +8 -0
  12. package/dist/agent-hook-install.js +278 -0
  13. package/dist/agent-hook-install.js.map +1 -0
  14. package/dist/agent-installers.js +16 -3
  15. package/dist/agent-installers.js.map +1 -1
  16. package/dist/agent-plugins.d.ts +3 -0
  17. package/dist/agent-plugins.js +66 -0
  18. package/dist/agent-plugins.js.map +1 -0
  19. package/dist/agents.d.ts +1 -0
  20. package/dist/agents.js +30 -184
  21. package/dist/agents.js.map +1 -1
  22. package/dist/behavioral-anomaly.d.ts +16 -0
  23. package/dist/behavioral-anomaly.js +66 -0
  24. package/dist/behavioral-anomaly.js.map +1 -0
  25. package/dist/cli.js +13 -8
  26. package/dist/cli.js.map +1 -1
  27. package/dist/client.d.ts +1 -1
  28. package/dist/client.js +177 -78
  29. package/dist/client.js.map +1 -1
  30. package/dist/core.d.ts +50 -2
  31. package/dist/core.js +73 -24
  32. package/dist/core.js.map +1 -1
  33. package/dist/credential-egress.d.ts +17 -0
  34. package/dist/credential-egress.js +325 -0
  35. package/dist/credential-egress.js.map +1 -0
  36. package/dist/custom-rules.js +2 -1
  37. package/dist/custom-rules.js.map +1 -1
  38. package/dist/data-detectors.js +60 -4
  39. package/dist/data-detectors.js.map +1 -1
  40. package/dist/destructive-risk.d.ts +1 -0
  41. package/dist/destructive-risk.js +70 -0
  42. package/dist/destructive-risk.js.map +1 -0
  43. package/dist/edit-stats.js +5 -5
  44. package/dist/edit-stats.js.map +1 -1
  45. package/dist/entity-redaction.d.ts +11 -0
  46. package/dist/entity-redaction.js +88 -0
  47. package/dist/entity-redaction.js.map +1 -0
  48. package/dist/file-lock.d.ts +1 -0
  49. package/dist/file-lock.js +54 -0
  50. package/dist/file-lock.js.map +1 -0
  51. package/dist/forward.d.ts +13 -6
  52. package/dist/forward.js +120 -42
  53. package/dist/forward.js.map +1 -1
  54. package/dist/hook-adapters.d.ts +2 -2
  55. package/dist/hook-adapters.js +59 -60
  56. package/dist/hook-adapters.js.map +1 -1
  57. package/dist/hook-catalog.d.ts +12 -0
  58. package/dist/hook-catalog.js +469 -0
  59. package/dist/hook-catalog.js.map +1 -0
  60. package/dist/hook-config.d.ts +8 -0
  61. package/dist/hook-config.js +80 -0
  62. package/dist/hook-config.js.map +1 -0
  63. package/dist/hook-spool.d.ts +3 -0
  64. package/dist/hook-spool.js +56 -0
  65. package/dist/hook-spool.js.map +1 -0
  66. package/dist/install.d.ts +5 -5
  67. package/dist/install.js +48 -199
  68. package/dist/install.js.map +1 -1
  69. package/dist/inventory.js +1 -1
  70. package/dist/inventory.js.map +1 -1
  71. package/dist/jev.js +2 -1
  72. package/dist/jev.js.map +1 -1
  73. package/dist/judge.js +2 -1
  74. package/dist/judge.js.map +1 -1
  75. package/dist/mitigation-pattern.d.ts +1 -0
  76. package/dist/mitigation-pattern.js +140 -0
  77. package/dist/mitigation-pattern.js.map +1 -0
  78. package/dist/package-risk-rules.js +2 -2
  79. package/dist/package-risk-rules.js.map +1 -1
  80. package/dist/policy-paths.d.ts +20 -0
  81. package/dist/policy-paths.js +145 -0
  82. package/dist/policy-paths.js.map +1 -0
  83. package/dist/policy.d.ts +5 -0
  84. package/dist/policy.js +78 -10
  85. package/dist/policy.js.map +1 -1
  86. package/dist/rule-catalog.d.ts +3 -1
  87. package/dist/rule-catalog.js +124 -24
  88. package/dist/rule-catalog.js.map +1 -1
  89. package/dist/rule-matches.d.ts +13 -0
  90. package/dist/rule-matches.js +42 -0
  91. package/dist/rule-matches.js.map +1 -0
  92. package/dist/serve.js +55 -5
  93. package/dist/serve.js.map +1 -1
  94. package/dist/server.js +7 -6
  95. package/dist/server.js.map +1 -1
  96. package/dist/setup.js +5 -3
  97. package/dist/setup.js.map +1 -1
  98. package/dist/skill-risk-rules.js +2 -2
  99. package/dist/skill-risk-rules.js.map +1 -1
  100. package/dist/skill-setup.js +4 -5
  101. package/dist/skill-setup.js.map +1 -1
  102. package/dist/skill-sync.d.ts +5 -1
  103. package/dist/skill-sync.js +115 -14
  104. package/dist/skill-sync.js.map +1 -1
  105. package/dist/store.js +6 -9
  106. package/dist/store.js.map +1 -1
  107. package/dist/studio.js +2 -2
  108. package/package.json +5 -2
  109. package/stress-report.json +46 -46
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "package": "@agent-beam/beam",
4
- "version": "0.2.38",
5
- "generatedAt": "2026-10-28T05:17:31.487Z",
4
+ "version": "0.2.39",
5
+ "generatedAt": "2026-11-04T04:03:32.576Z",
6
6
  "passed": true,
7
7
  "environment": {
8
8
  "node": "v24.18.1",
@@ -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 7.3 ms (unicode tags)",
19
+ "summary": "41 attack shapes at 16 KB; the slowest took 9.57 ms (curl|)",
20
20
  "measured": {
21
- "worstMs": 7.3,
21
+ "worstMs": 9.57,
22
22
  "cases": 41,
23
23
  "slowest": [
24
- {
25
- "input": "unicode tags",
26
- "ms": 7.3
27
- },
28
24
  {
29
25
  "input": "curl|",
30
- "ms": 7.17
26
+ "ms": 9.57
31
27
  },
32
28
  {
33
- "input": "![a](https://e/?",
34
- "ms": 5.01
29
+ "input": "unicode tags",
30
+ "ms": 8.02
35
31
  },
36
32
  {
37
33
  "input": "nc ",
38
- "ms": 3.91
34
+ "ms": 3.87
35
+ },
36
+ {
37
+ "input": "![a](https://e/?",
38
+ "ms": 3.67
39
39
  },
40
40
  {
41
41
  "input": "<img ",
42
- "ms": 3.03
42
+ "ms": 2.54
43
43
  }
44
44
  ]
45
45
  },
@@ -49,30 +49,30 @@
49
49
  "id": "package-scan",
50
50
  "title": "Package scanning, hostile files",
51
51
  "passed": true,
52
- "summary": "17 attack shapes at 3 MB; the slowest took 167.1 ms (curl )",
52
+ "summary": "17 attack shapes at 3 MB; the slowest took 165 ms (curl )",
53
53
  "measured": {
54
- "worstMs": 167.1,
54
+ "worstMs": 165,
55
55
  "cases": 17,
56
56
  "slowest": [
57
57
  {
58
58
  "input": "curl ",
59
- "ms": 167.1
59
+ "ms": 165
60
60
  },
61
61
  {
62
62
  "input": "short lines",
63
- "ms": 144.3
63
+ "ms": 144.8
64
64
  },
65
65
  {
66
66
  "input": "ngrok",
67
- "ms": 94.5
67
+ "ms": 90.7
68
68
  },
69
69
  {
70
70
  "input": "webhook",
71
- "ms": 73
71
+ "ms": 73.2
72
72
  },
73
73
  {
74
- "input": "hex escapes",
75
- "ms": 66.1
74
+ "input": "telegram",
75
+ "ms": 66.3
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": "44,225 log lines per second on one core, attacks included",
85
+ "summary": "40,953 log lines per second on one core, attacks included",
86
86
  "measured": {
87
- "linesPerSecond": 44225,
87
+ "linesPerSecond": 40953,
88
88
  "lines": 300000
89
89
  },
90
90
  "limit": "over 10,000 lines per second"
@@ -93,11 +93,11 @@
93
93
  "id": "per-call",
94
94
  "title": "Cost per call in your app",
95
95
  "passed": true,
96
- "summary": "request() 23.4 µs (29.9 µs with full headers and Cloudflare's bot fields), prompt() 10.1 µs on a short message",
96
+ "summary": "request() 25.6 µs (33.6 µs with full headers and Cloudflare's bot fields), prompt() 10.7 µs on a short message",
97
97
  "measured": {
98
- "requestMicros": 23.4,
99
- "requestWithHeadersMicros": 29.9,
100
- "promptMicros": 10.1
98
+ "requestMicros": 25.6,
99
+ "requestWithHeadersMicros": 33.6,
100
+ "promptMicros": 10.7
101
101
  },
102
102
  "limit": "request() under 100 µs and prompt() under 200 µs"
103
103
  },
@@ -105,17 +105,17 @@
105
105
  "id": "memory-cli",
106
106
  "title": "Memory under load (beam monitor)",
107
107
  "passed": true,
108
- "summary": "10.4 MB at start; 13.6, 13.7, 13.7, 12.7, 12.3, 12.2 MB after each 500,000 lines; -1.5 MB from 1M to 3M lines",
108
+ "summary": "10.6 MB at start; 13.9, 14, 13.1, 12.5, 12.5, 12.5 MB after each 500,000 lines; -1.5 MB from 1M to 3M lines",
109
109
  "measured": {
110
110
  "heapMb": [
111
- 13.6,
112
- 13.7,
113
- 13.7,
114
- 12.7,
115
- 12.3,
116
- 12.2
111
+ 13.9,
112
+ 14,
113
+ 13.1,
114
+ 12.5,
115
+ 12.5,
116
+ 12.5
117
117
  ],
118
- "startMb": 10.4,
118
+ "startMb": 10.6,
119
119
  "growthMb": -1.5,
120
120
  "footprint": {
121
121
  "seen": 200,
@@ -138,13 +138,13 @@
138
138
  "id": "memory-sdk",
139
139
  "title": "Memory in your app while AgentBeam is down",
140
140
  "passed": true,
141
- "summary": "8.9, 8.9, 8.9, 8.9 MB after each 250,000 requests and prompts",
141
+ "summary": "9.2, 9.2, 9.2, 9.2 MB after each 250,000 requests and prompts",
142
142
  "measured": {
143
143
  "heapMb": [
144
- 8.9,
145
- 8.9,
146
- 8.9,
147
- 8.9
144
+ 9.2,
145
+ 9.2,
146
+ 9.2,
147
+ 9.2
148
148
  ],
149
149
  "growthMb": 0
150
150
  },
@@ -154,9 +154,9 @@
154
154
  "id": "outage",
155
155
  "title": "AgentBeam down or slow",
156
156
  "passed": true,
157
- "summary": "request() stayed at 21.5 µs; 1 send attempt, then none while backing off; a hung connection was dropped after 5.0 s, off the request path",
157
+ "summary": "request() stayed at 23.1 µs; 1 send attempt, then none while backing off; a hung connection was dropped after 5.0 s, off the request path",
158
158
  "measured": {
159
- "requestMicros": 21.5,
159
+ "requestMicros": 23.1,
160
160
  "attemptsBeforeBackoff": 1,
161
161
  "attemptsDuringBackoff": 0,
162
162
  "hungFlushMs": 5003
@@ -167,13 +167,13 @@
167
167
  "id": "cpu-budget",
168
168
  "title": "CPU cap",
169
169
  "passed": true,
170
- "summary": "with a 1% cap (600 ms a minute), a flood of 200 KB documents got 640 ms of checking (72 documents); the rest were skipped, flagged as skipped, at 0.12 µs each",
170
+ "summary": "with a 1% cap (600 ms a minute), a flood of 200 KB documents got 638 ms of checking (73 documents); the rest were skipped, flagged as skipped, at 0.11 µs each",
171
171
  "measured": {
172
172
  "capMs": 600,
173
- "spentMs": 640,
174
- "checked": 72,
173
+ "spentMs": 638,
174
+ "checked": 73,
175
175
  "skipped": 100000,
176
- "skippedCallMicros": 0.12
176
+ "skippedCallMicros": 0.11
177
177
  },
178
178
  "limit": "under twice the cap (one check can finish after the cap is reached)"
179
179
  }