@warlock.js/ai-panoptic 5.52.0 → 5.53.1

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 (34) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/cjs/index.cjs +592 -424
  3. package/cjs/index.cjs.map +1 -1
  4. package/esm/config/apply-panoptic-config.d.mts.map +1 -1
  5. package/esm/config/apply-panoptic-config.mjs +9 -3
  6. package/esm/config/apply-panoptic-config.mjs.map +1 -1
  7. package/esm/config/panoptic-config.type.d.mts +7 -0
  8. package/esm/config/panoptic-config.type.d.mts.map +1 -1
  9. package/esm/dashboard/index.d.mts +1 -0
  10. package/esm/dashboard/index.mjs +1 -1
  11. package/esm/dashboard/parse-query.mjs +23 -1
  12. package/esm/dashboard/parse-query.mjs.map +1 -1
  13. package/esm/dashboard/serve.mjs +55 -10
  14. package/esm/dashboard/serve.mjs.map +1 -1
  15. package/esm/dashboard/trace-summary.d.mts +24 -0
  16. package/esm/dashboard/trace-summary.d.mts.map +1 -0
  17. package/esm/dashboard/trace-summary.mjs +27 -0
  18. package/esm/dashboard/trace-summary.mjs.map +1 -0
  19. package/esm/dashboard/ui.html.mjs +68 -18
  20. package/esm/dashboard/ui.html.mjs.map +1 -1
  21. package/esm/index.d.mts +2 -1
  22. package/esm/index.mjs +1 -1
  23. package/esm/store/cache-trace-store.d.mts.map +1 -1
  24. package/esm/store/cache-trace-store.mjs +37 -17
  25. package/esm/store/cache-trace-store.mjs.map +1 -1
  26. package/esm/store/in-memory-trace-store.d.mts.map +1 -1
  27. package/esm/store/in-memory-trace-store.mjs +2 -9
  28. package/esm/store/in-memory-trace-store.mjs.map +1 -1
  29. package/esm/store/sort-newest-first.mjs +14 -0
  30. package/esm/store/sort-newest-first.mjs.map +1 -0
  31. package/llms-full.txt +9 -9
  32. package/llms.txt +1 -1
  33. package/package.json +4 -4
  34. package/skills/use-local-dashboard/SKILL.md +9 -9
package/CHANGELOG.md CHANGED
@@ -4,6 +4,29 @@ All notable changes to `@warlock.js/ai-panoptic` are documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
6
6
 
7
+ ## 5.53.0 - 2026-11-11
8
+
9
+ ### Upgrading
10
+
11
+ - `ai.config({ panoptic: { dashboard } })` without your own store keeps only the newest 1,000 traces. Set `panoptic.capacity: 0` to keep every trace, or a larger number.
12
+ - `GET api/traces` returns at most 200 summaries without `root.children`, `input` or `output`. Code that reads the endpoint directly can add `?full=1` (and a `limit`) to get full traces, or fetch each trace from `api/traces/:id`.
13
+
14
+ ### Security
15
+
16
+ - A malformed percent escape in a dashboard URL (`/api/traces/%E0%A4%A`, or the same on the evaluate route) threw an uncaught `URIError` from the request listener, which could stop the app in production. Such ids answer `400 { error: "bad_trace_id" }`, and any other handler failure answers `500 { error: "internal" }` instead of escaping the server.
17
+
18
+ ### Added
19
+
20
+ - `panoptic.capacity` (number, default `1000`, `0` keeps every trace) for the store panoptic creates for the dashboard (in-memory, or cache-backed with `cache`). A store you pass in `exporters` is not affected.
21
+ - `TraceSummary` and `TraceSpanSummary` types.
22
+
23
+ ### Changed
24
+
25
+ - The dashboard's own store keeps the newest 1,000 traces instead of growing without limit.
26
+ - `GET api/traces` returns the newest 200 trace summaries instead of every full trace: ids, timings, usage and the root span's name, type, status, attributes and error message, plus `spanCount` and `totalCost`, without the span tree or captured prompts and tool I/O. `?limit=` changes the count, `?startedBefore=` pages back, and `?full=1` returns full traces. The dashboard page polls the summaries and fetches the open trace's full tree from `GET api/traces/:id`, re-fetching it only when the trace changes.
27
+ - The cache-backed trace store runs its cache writes one after another and writes the index once per burst of traces instead of once per trace, so an older index can no longer overwrite a newer one and drop traces from what a restart restores.
28
+ - Trace queries parse each trace's start time once instead of twice per comparison while sorting.
29
+
7
30
  ## 5.34.3 - 2026-10-20
8
31
 
9
32
  ### Changed