@hue-run/sdk 0.13.2 → 0.15.0
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/CLI.md +26 -19
- package/EVALUATIONS.md +1 -1
- package/README.md +117 -24
- package/dist/blobs.d.ts +164 -0
- package/dist/blobs.js +703 -0
- package/dist/cli/eval.js +9 -5
- package/dist/client.d.ts +15 -5
- package/dist/client.js +63 -13
- package/dist/config.d.ts +20 -0
- package/dist/config.js +31 -4
- package/dist/environment/client.d.ts +1 -1
- package/dist/environment/client.js +3 -3
- package/dist/evals/client.d.ts +1 -1
- package/dist/evals/client.js +4 -4
- package/dist/evals/verdicts.d.ts +10 -7
- package/dist/evals/verdicts.js +52 -16
- package/dist/inline-files.d.ts +44 -1
- package/dist/inline-files.js +65 -6
- package/dist/limits.d.ts +32 -0
- package/dist/limits.js +54 -0
- package/dist/privacy.d.ts +27 -5
- package/dist/privacy.js +140 -39
- package/dist/provider-tools.js +1 -1
- package/dist/safety.d.ts +2 -0
- package/dist/safety.js +10 -4
- package/dist/snapshot.d.ts +30 -8
- package/dist/snapshot.js +280 -49
- package/dist/tool-definitions.d.ts +4 -0
- package/dist/tool-definitions.js +11 -0
- package/dist/transport.d.ts +26 -0
- package/dist/transport.js +579 -177
- package/dist/types.d.ts +14 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -13,10 +13,11 @@ export type Signal = "traces" | "logs";
|
|
|
13
13
|
/** Options accepted by every Hue client and transport, whether enabled or disabled. */
|
|
14
14
|
export interface SharedHueOptions {
|
|
15
15
|
/**
|
|
16
|
-
* Whether helpers record prompts, responses, tool arguments and results.
|
|
17
|
-
*
|
|
16
|
+
* Whether helpers record prompts, responses, tool arguments and results. Defaults to `true`
|
|
17
|
+
* for an enabled client; set `false` explicitly for metadata-only export. A disabled client
|
|
18
|
+
* (`enabled: false`) exports nothing and defaults it to `false`.
|
|
18
19
|
*/
|
|
19
|
-
captureContent
|
|
20
|
+
captureContent?: boolean;
|
|
20
21
|
/** Hue origin, `https://app.hue.run` by default. An origin only: no path, query, fragment or credentials. */
|
|
21
22
|
baseUrl?: string;
|
|
22
23
|
/** Recorded as the `service.version` resource attribute of an owned client. */
|
|
@@ -52,7 +53,8 @@ export interface SharedHueOptions {
|
|
|
52
53
|
}
|
|
53
54
|
/**
|
|
54
55
|
* Options for a client that owns its OpenTelemetry providers. An enabled client needs a project
|
|
55
|
-
* key
|
|
56
|
+
* key and a service name. Content capture defaults to `true`; `captureContent: false` opts out.
|
|
57
|
+
* The kill switch (`enabled: false`)
|
|
56
58
|
* exports nothing while helpers keep running application code, so it needs no key and
|
|
57
59
|
* `captureContent` defaults to `false`.
|
|
58
60
|
*/
|
|
@@ -81,7 +83,8 @@ export interface ExportIssue {
|
|
|
81
83
|
signal: Signal;
|
|
82
84
|
/** `rejected` by Hue, `failed` to deliver, `dropped` from the queue, `invalid` record or capture, or a non-failing `warning`. */
|
|
83
85
|
kind: "rejected" | "failed" | "dropped" | "invalid" | "warning";
|
|
84
|
-
/** Records affected; zero for capture failures and for warnings other than lost in-progress span
|
|
86
|
+
/** Records affected; zero for capture failures and for warnings other than lost in-progress span
|
|
87
|
+
* placeholders and values that could not be uploaded, whose warnings count the values. */
|
|
85
88
|
count: number;
|
|
86
89
|
/** HTTP status when the issue came from a response. */
|
|
87
90
|
status?: number;
|
|
@@ -121,6 +124,12 @@ export interface ExportReport {
|
|
|
121
124
|
pendingBytes: number;
|
|
122
125
|
/** Helper capture or instrumentation failures that omitted telemetry while preserving application results. */
|
|
123
126
|
instrumentationFailures: number;
|
|
127
|
+
/** Span values over Hue's inline limit uploaded apart from their spans (or already stored by
|
|
128
|
+
* Hue), each listed under the span's `hue.blobs` with its first 16 KiB kept inline. */
|
|
129
|
+
uploadedValues: number;
|
|
130
|
+
/** Span values over Hue's inline limit that could not be uploaded and were exported cut to the
|
|
131
|
+
* limit (an inline file as its digest), each reported in a warning issue. */
|
|
132
|
+
uploadFallbacks: number;
|
|
124
133
|
}
|
|
125
134
|
/** Caller budget for {@link HueClient.flushSafe} and {@link HueClient.shutdownSafe}. */
|
|
126
135
|
export interface SafeLifecycleOptions {
|
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
|
+
export declare const sdkVersion = "0.15.0";
|
package/dist/version.js
CHANGED