@dogpile/sdk 0.5.0 → 0.6.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/CHANGELOG.md +27 -0
- package/dist/browser/index.js +3992 -4997
- package/dist/browser/index.js.map +1 -1
- package/dist/providers/openai-compatible.d.ts.map +1 -1
- package/dist/providers/openai-compatible.js +5 -1
- package/dist/providers/openai-compatible.js.map +1 -1
- package/dist/runtime/broadcast.d.ts +1 -0
- package/dist/runtime/broadcast.d.ts.map +1 -1
- package/dist/runtime/broadcast.js +132 -69
- package/dist/runtime/broadcast.js.map +1 -1
- package/dist/runtime/coordinator.d.ts +4 -2
- package/dist/runtime/coordinator.d.ts.map +1 -1
- package/dist/runtime/coordinator.js +114 -39
- package/dist/runtime/coordinator.js.map +1 -1
- package/dist/runtime/defaults.d.ts.map +1 -1
- package/dist/runtime/defaults.js +2 -1
- package/dist/runtime/defaults.js.map +1 -1
- package/dist/runtime/engine.d.ts.map +1 -1
- package/dist/runtime/engine.js +54 -34
- package/dist/runtime/engine.js.map +1 -1
- package/dist/runtime/model.d.ts.map +1 -1
- package/dist/runtime/model.js +6 -3
- package/dist/runtime/model.js.map +1 -1
- package/dist/runtime/redaction.d.ts +13 -0
- package/dist/runtime/redaction.d.ts.map +1 -0
- package/dist/runtime/redaction.js +278 -0
- package/dist/runtime/redaction.js.map +1 -0
- package/dist/runtime/sanitization.d.ts +4 -0
- package/dist/runtime/sanitization.d.ts.map +1 -0
- package/dist/runtime/sanitization.js +63 -0
- package/dist/runtime/sanitization.js.map +1 -0
- package/dist/runtime/shared.d.ts +1 -0
- package/dist/runtime/shared.d.ts.map +1 -1
- package/dist/runtime/shared.js +128 -65
- package/dist/runtime/shared.js.map +1 -1
- package/dist/runtime/tools/built-in.d.ts +2 -0
- package/dist/runtime/tools/built-in.d.ts.map +1 -1
- package/dist/runtime/tools/built-in.js +153 -15
- package/dist/runtime/tools/built-in.js.map +1 -1
- package/dist/runtime/tools.d.ts.map +1 -1
- package/dist/runtime/tools.js +29 -7
- package/dist/runtime/tools.js.map +1 -1
- package/dist/runtime/validation.d.ts.map +1 -1
- package/dist/runtime/validation.js +3 -0
- package/dist/runtime/validation.js.map +1 -1
- package/dist/types/events.d.ts +3 -3
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/replay.d.ts +3 -1
- package/dist/types/replay.d.ts.map +1 -1
- package/dist/types.d.ts +20 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +8 -1
- package/src/providers/openai-compatible.ts +5 -1
- package/src/runtime/broadcast.ts +156 -72
- package/src/runtime/coordinator.ts +143 -47
- package/src/runtime/defaults.ts +2 -1
- package/src/runtime/engine.ts +77 -40
- package/src/runtime/model.ts +6 -3
- package/src/runtime/redaction.ts +355 -0
- package/src/runtime/sanitization.ts +81 -0
- package/src/runtime/shared.ts +152 -68
- package/src/runtime/tools/built-in.ts +168 -15
- package/src/runtime/tools.ts +39 -8
- package/src/runtime/validation.ts +3 -0
- package/src/types/events.ts +3 -3
- package/src/types/replay.ts +3 -1
- package/src/types.ts +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.6.0] — 2026-05-23
|
|
4
|
+
|
|
5
|
+
v0.6.0 hardens the runtime for resilience and safety: bounded concurrency for tool and worker fan-out, sibling-failure cancellation across protocols, a host/private-network allowlist for the built-in web search adapter, header allowlisting for provider error metadata, and a pure redaction helper for safe trace serialization. Streaming chunk events drop the cumulative `output` field in favor of `text` deltas + `outputLength`.
|
|
6
|
+
|
|
7
|
+
Prepared the release identity for `@dogpile/sdk@0.6.0` and `dogpile-sdk-0.6.0.tgz`.
|
|
8
|
+
|
|
9
|
+
### Breaking
|
|
10
|
+
|
|
11
|
+
- **`ModelOutputChunkEvent` no longer carries cumulative `output`.** Streaming chunk events now carry `text` as the delta and `outputLength` as the accumulated character length. This avoids repeatedly storing the full partial output in every chunk event.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **`maxConcurrentAgentTurns?: number` on `DogpileOptions`, `EngineOptions`, and `RunCallOptions`.** Defaults to `4` and can be lowered per run to bound shared, broadcast, and coordinator worker fan-out independently from delegated child-run concurrency.
|
|
16
|
+
- **New subpath: `@dogpile/sdk/runtime/redaction`.** Exports pure `redactTrace()`, `redactRunResult()`, and `TraceRedactionOptions` helpers for safe trace/result serialization. Defaults redact prompts, outputs, tool inputs/outputs, provider responses, and embedded child traces while preserving ids, ordering, costs, usage, and accounting summaries.
|
|
17
|
+
- **`allowHosts?: readonly string[]` and `allowPrivateNetwork?: boolean` on `WebSearchToolAdapterOptions`.** The built-in web search adapter now enforces host and private-network policy before issuing fetches.
|
|
18
|
+
- **`scripts/public-surface.json`.** Package export tests and the packed consumer smoke now share a small manifest for public subpath expectations.
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
|
|
22
|
+
- Tool requests returned from a model response now execute with bounded concurrency while preserving transcript order.
|
|
23
|
+
- Shared, broadcast, and coordinator worker fan-out now use bounded concurrency instead of unbounded `Promise.all`.
|
|
24
|
+
- Shared, broadcast, and coordinator worker provider requests now receive a fan-out-aware abort signal so sibling failures cancel still-running provider calls.
|
|
25
|
+
- `codeExec` sandboxes now receive a timeout-aware `AbortSignal`; Dogpile still returns a timeout if the sandbox ignores the signal.
|
|
26
|
+
- Provider error details and Vercel AI response metadata now allowlist safe response headers and strip auth-like header keys before serialization.
|
|
27
|
+
- npm publishing is canonical through manual `workflow_dispatch` from `main`; the GitHub Release `published` trigger no longer publishes.
|
|
28
|
+
- Browser bundle output is minified and browser source maps exclude embedded `sourcesContent`.
|
|
29
|
+
|
|
3
30
|
## [0.5.0] — 2026-05-01
|
|
4
31
|
|
|
5
32
|
v0.5.0 Observability and Auditability starts with provenance annotations: model provider calls now produce real request/response events, replay can synthesize those events from provider-call anchors, and callers get a small runtime helper for normalized provenance fields.
|