dsh-model-arena 0.1.4 → 0.2.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0
4
+
5
+ Ecosystem sync: every plugin in this suite shares one version, so a version number
6
+ identifies a set that was tested together rather than one plugin's own history.
7
+
8
+ - Fix the Model Arena panel rendering "Cannot read properties of undefined": the host
9
+ route returned the bare run list while the view reads `payload.recentRuns`.
10
+ - The client `inject` field now names services (`slots`, `connection`) instead of the
11
+ packages that provide them.
12
+ - README badges cover version, downloads, CI, license, Node requirement, stars, and the
13
+ dsh plugin topic.
14
+
3
15
  ## 0.1.4
4
16
 
5
17
  - **Fix the client half never activating.** The browser half declared package names
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # dsh-model-arena
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/dsh-model-arena)](https://www.npmjs.com/package/dsh-model-arena) [![CI](https://github.com/hj01857655/dsh-model-arena/actions/workflows/ci.yml/badge.svg)](https://github.com/hj01857655/dsh-model-arena/actions/workflows/ci.yml)
3
+ [![npm version](https://img.shields.io/npm/v/dsh-model-arena?color=cb3837&logo=npm&logoColor=white)](https://www.npmjs.com/package/dsh-model-arena)
4
+ [![npm downloads](https://img.shields.io/npm/dm/dsh-model-arena?color=cb3837)](https://www.npmjs.com/package/dsh-model-arena)
5
+ [![CI](https://github.com/hj01857655/dsh-model-arena/actions/workflows/ci.yml/badge.svg)](https://github.com/hj01857655/dsh-model-arena/actions/workflows/ci.yml)
6
+ [![license](https://img.shields.io/npm/l/dsh-model-arena?color=blue)](LICENSE)
7
+ [![node](https://img.shields.io/node/v/dsh-model-arena?color=339933&logo=node.js&logoColor=white)](package.json)
8
+ [![GitHub stars](https://img.shields.io/github/stars/hj01857655/dsh-model-arena?color=yellow)](https://github.com/hj01857655/dsh-model-arena/stargazers)
9
+ [![dsh plugin](https://img.shields.io/badge/dsh-plugin-4B8BBE)](https://github.com/topics/dsh-plugin)
4
10
 
5
11
  Run the same prompt through every model you have, and see the difference without squinting.
6
12
 
package/lib/routes.js CHANGED
@@ -7,7 +7,9 @@ export function registerArenaRoutes(ctx, arena) {
7
7
  path: ARENA_PANEL_PATH,
8
8
  methods: ['GET'],
9
9
  requestBody: 'buffered',
10
- fetch: () => Promise.resolve(Response.json(arena.listRuns(), {
10
+ // The panel view is written against `PanelPayload`; returning the bare run list
11
+ // here made every array method on `payload.recentRuns` throw in the browser.
12
+ fetch: () => Promise.resolve(Response.json({ recentRuns: arena.listRuns() }, {
11
13
  headers: { 'cache-control': 'no-store' },
12
14
  })),
13
15
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-arena",
3
- "version": "0.1.4",
3
+ "version": "0.2.0",
4
4
  "description": "Run the same prompt through every model you have, and see the difference without squinting.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",