@hue-run/sdk 0.15.1 → 0.15.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/CLI.md +8 -8
- package/README.md +2 -2
- package/dist/transport.js +2 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CLI.md
CHANGED
|
@@ -42,7 +42,7 @@ project manifest are refused because managers can update ancestor locks; Python
|
|
|
42
42
|
The generated `hue.setup.mjs` or `hue_setup.py` always selects `captureContent: false` /
|
|
43
43
|
`capture_content=False`. For a supported application, setup installs the dependency and adds the
|
|
44
44
|
managed import and middleware registration to the existing entrypoint; an unreferenced helper is
|
|
45
|
-
not a completed integration. TypeScript uses `@hue-run/sdk@0.15.
|
|
45
|
+
not a completed integration. TypeScript uses `@hue-run/sdk@0.15.2`, `@opentelemetry/api@1.9.1` and
|
|
46
46
|
`@opentelemetry/context-async-hooks@2.11.0`; Python setup uses its separately tested package pin.
|
|
47
47
|
Content capture requires an ordinary account-managed key and a later explicit application decision.
|
|
48
48
|
|
|
@@ -469,7 +469,7 @@ node packages/sdk-typescript/scripts/verify-package.mjs --artifacts-dir .artifac
|
|
|
469
469
|
# Set project to an existing supported fixture; use the same directory on resume.
|
|
470
470
|
project=/absolute/path/to/supported-fixture
|
|
471
471
|
node packages/sdk-typescript/scripts/verify-setup-live.mjs \
|
|
472
|
-
--archive .artifacts/typescript/hue-run-sdk-0.15.
|
|
472
|
+
--archive .artifacts/typescript/hue-run-sdk-0.15.2.tgz \
|
|
473
473
|
--origin https://STAGING_ORIGIN \
|
|
474
474
|
--project "$project" --command setup \
|
|
475
475
|
--evidence .context/setup-staging-before-claim.json
|
|
@@ -480,7 +480,7 @@ the private local handoff and finish the real browser claim, then reconcile the
|
|
|
480
480
|
|
|
481
481
|
```sh
|
|
482
482
|
node packages/sdk-typescript/scripts/verify-setup-live.mjs \
|
|
483
|
-
--archive .artifacts/typescript/hue-run-sdk-0.15.
|
|
483
|
+
--archive .artifacts/typescript/hue-run-sdk-0.15.2.tgz \
|
|
484
484
|
--origin https://STAGING_ORIGIN \
|
|
485
485
|
--project "$project" --command claim \
|
|
486
486
|
--evidence .context/setup-staging-after-claim.json
|
|
@@ -523,10 +523,10 @@ production agent lacks. Pin the SDK and bring its `zod` peer along, so the agent
|
|
|
523
523
|
gains no dependency:
|
|
524
524
|
|
|
525
525
|
```sh
|
|
526
|
-
npx --yes --package @hue-run/sdk@0.15.
|
|
527
|
-
npx --yes --package @hue-run/sdk@0.15.
|
|
528
|
-
npx --yes --package @hue-run/sdk@0.15.
|
|
529
|
-
npx --yes --package @hue-run/sdk@0.15.
|
|
526
|
+
npx --yes --package @hue-run/sdk@0.15.2 --package "zod@^4.6.5" hue eval --case "Refund an eligible charge" --command "node agent.js" --env-file .env.hue
|
|
527
|
+
npx --yes --package @hue-run/sdk@0.15.2 --package "zod@^4.6.5" hue eval --case https://app.hue.run/projects/demo/scenarios/<id> --command "python agent.py" --timeout 120 --baseline <experiment id>
|
|
528
|
+
npx --yes --package @hue-run/sdk@0.15.2 --package "zod@^4.6.5" hue eval --set "Billing regressions" --scorer-version <id> --command "node agent.js" --save-version
|
|
529
|
+
npx --yes --package @hue-run/sdk@0.15.2 --package "zod@^4.6.5" hue eval --worker --command "node agent.js" --agent-key support-agent --revision <new-agent-revision> --env-file .env.hue
|
|
530
530
|
```
|
|
531
531
|
|
|
532
532
|
Without the second `--package`, `hue eval` exits with `hue eval needs zod`, even for `--help`;
|
|
@@ -562,7 +562,7 @@ export default function runMyAgent(inputs: JsonValue, context: SimulationTargetC
|
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
```sh
|
|
565
|
-
npx --yes --package @hue-run/sdk@0.15.
|
|
565
|
+
npx --yes --package @hue-run/sdk@0.15.2 --package "zod@^4.6.5" hue eval --case "Refund an eligible charge" ./hue-agent.ts --content --env-file .env.hue
|
|
566
566
|
```
|
|
567
567
|
|
|
568
568
|
`--scenario` remains an alias for `--case` for existing scripts. Pass one selection flag.
|
package/README.md
CHANGED
|
@@ -491,8 +491,8 @@ const hue = createHue({
|
|
|
491
491
|
|
|
492
492
|
## Delivery behavior
|
|
493
493
|
|
|
494
|
-
Exports retry temporary HTTP/network failures (429, 502, 503, 504 and connection errors,
|
|
495
|
-
honoring `Retry-After`) within the export timeout
|
|
494
|
+
Exports retry temporary HTTP/network failures (429, 500, 502, 503, 504 and connection errors,
|
|
495
|
+
honoring `Retry-After`) within the export timeout. A
|
|
496
496
|
429 whose `Retry-After` outlasts the export timeout keeps its records queued, within the queue's
|
|
497
497
|
bounds, and sends them again once the wait has passed; an export holds its records this way for at
|
|
498
498
|
most 60 seconds in all, and a longer wait loses them, reported as a `failed` issue with status 429.
|
package/dist/transport.js
CHANGED
|
@@ -1326,7 +1326,8 @@ const MAX_BACKOFF_MILLIS = 5000;
|
|
|
1326
1326
|
const BACKOFF_MULTIPLIER = 1.5;
|
|
1327
1327
|
const JITTER = 0.2;
|
|
1328
1328
|
const MAX_RESPONSE_BYTES = 4 * 1024 * 1024;
|
|
1329
|
-
|
|
1329
|
+
// Hue also retries transient collector HTTP 500 responses within the same attempt/deadline budget.
|
|
1330
|
+
const RETRYABLE_STATUS = new Set([429, 500, 502, 503, 504]);
|
|
1330
1331
|
const RETRYABLE_NETWORK_ERRORS = new Set([
|
|
1331
1332
|
"ECONNRESET",
|
|
1332
1333
|
"ECONNREFUSED",
|
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.15.
|
|
2
|
+
export declare const sdkVersion = "0.15.2";
|
package/dist/version.js
CHANGED