@hue-run/sdk 0.2.0 → 0.2.2
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 +0 -2
- package/dist/safety.js +10 -4
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -12,8 +12,6 @@ traces and correlated logs. The package is named `@hue-run/sdk`.
|
|
|
12
12
|
|
|
13
13
|
[Documentation](https://docs.hue.run) · [Sign in](https://app.hue.run)
|
|
14
14
|
|
|
15
|
-
_Hue (hue.run) is a tracing and evaluation platform for AI agents. It is not affiliated with Philips Hue / Signify smart lighting or Cloudera Hue._
|
|
16
|
-
|
|
17
15
|
## Install
|
|
18
16
|
|
|
19
17
|
```bash
|
package/dist/safety.js
CHANGED
|
@@ -166,10 +166,16 @@ export function estimateRecordBytes(value, limit) {
|
|
|
166
166
|
bytes += item.byteLength;
|
|
167
167
|
else if (item && typeof item === "object" && !seen.has(item)) {
|
|
168
168
|
seen.add(item);
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
// Match admission (`Snapshot.copy`): array elements are nodes without retained index
|
|
170
|
+
// keys. Charging indexes here would refuse array-heavy records the queue admitted.
|
|
171
|
+
if (Array.isArray(item))
|
|
172
|
+
for (const child of item)
|
|
173
|
+
visit(child, depth + 1);
|
|
174
|
+
else
|
|
175
|
+
for (const [key, child] of Object.entries(item)) {
|
|
176
|
+
bytes += key.length * 2 + 16;
|
|
177
|
+
visit(child, depth + 1);
|
|
178
|
+
}
|
|
173
179
|
}
|
|
174
180
|
if (bytes > limit)
|
|
175
181
|
throw new RangeError("Telemetry byte limit exceeded");
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** Package version shared by the instrumentation scope and the export User-Agent. */
|
|
2
|
-
export declare const sdkVersion = "0.2.
|
|
2
|
+
export declare const sdkVersion = "0.2.2";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hue-run/sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"url": "git+https://github.com/hue-run/hue-sdk.git",
|
|
17
17
|
"directory": "packages/sdk-typescript"
|
|
18
18
|
},
|
|
19
|
-
"description": "Hue OpenTelemetry helpers for Node.js agent applications
|
|
19
|
+
"description": "Hue OpenTelemetry helpers for Node.js agent applications",
|
|
20
20
|
"keywords": [
|
|
21
21
|
"opentelemetry",
|
|
22
22
|
"otlp",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@opentelemetry/api": "1.9.1",
|
|
87
87
|
"@opentelemetry/context-async-hooks": "2.11.0",
|
|
88
88
|
"@types/bun": "1.4.2",
|
|
89
|
-
"@types/node": "
|
|
89
|
+
"@types/node": "26.5.1",
|
|
90
90
|
"ai": "7.0.99",
|
|
91
91
|
"ajv": "8.20.0",
|
|
92
92
|
"protobufjs": "8.8.0",
|