@datalayer/agent-runtimes 1.6.5 → 1.6.7
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/lib/specs/battles.js
CHANGED
|
@@ -19,6 +19,7 @@ export const DECK_RACE_BATTLE_0_0_1 = {
|
|
|
19
19
|
runsIn: 'browser',
|
|
20
20
|
color: 'blue',
|
|
21
21
|
overrides: {},
|
|
22
|
+
decisionModel: '',
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
id: 'red',
|
|
@@ -30,6 +31,7 @@ export const DECK_RACE_BATTLE_0_0_1 = {
|
|
|
30
31
|
overrides: {
|
|
31
32
|
model: 'alibaba:qwen-max',
|
|
32
33
|
},
|
|
34
|
+
decisionModel: '',
|
|
33
35
|
},
|
|
34
36
|
],
|
|
35
37
|
referee: {
|
|
@@ -69,7 +71,7 @@ export const INVADERS_BATTLE_0_0_1 = {
|
|
|
69
71
|
id: 'invaders',
|
|
70
72
|
version: '0.0.1',
|
|
71
73
|
name: 'Space Invaders',
|
|
72
|
-
description: "Two
|
|
74
|
+
description: "Two players at the Space Invaders arena, a cannon each under one wave: Blue, a Player with the arena's tools; Red, played by Jev, a decision model choosing its moves. A hit scores the invader's row; the wave cleared, a cannon hit or the wave landed ends it, and the score decides.",
|
|
73
75
|
variant: 'game',
|
|
74
76
|
goal: 'You are playing Space Invaders. Call `arena_watch` once: the arena then tells you where the invaders are and which one is nearest your cannon. Each time it does, call `arena_invaders_move` with the `x` it names, then `arena_invaders_fire`; move away when it says a bomb is falling on you. The higher score when the wave is cleared, a cannon is hit or the wave lands wins.',
|
|
75
77
|
clockSeconds: 180,
|
|
@@ -82,6 +84,7 @@ export const INVADERS_BATTLE_0_0_1 = {
|
|
|
82
84
|
runsIn: 'browser',
|
|
83
85
|
color: 'blue',
|
|
84
86
|
overrides: {},
|
|
87
|
+
decisionModel: '',
|
|
85
88
|
},
|
|
86
89
|
{
|
|
87
90
|
id: 'right',
|
|
@@ -91,6 +94,7 @@ export const INVADERS_BATTLE_0_0_1 = {
|
|
|
91
94
|
runsIn: 'browser',
|
|
92
95
|
color: 'red',
|
|
93
96
|
overrides: {},
|
|
97
|
+
decisionModel: 'cloudflare:wrk/typesafe/jev',
|
|
94
98
|
},
|
|
95
99
|
],
|
|
96
100
|
referee: {
|
|
@@ -110,7 +114,7 @@ export const INVADERS_BATTLE_0_0_1 = {
|
|
|
110
114
|
eval: 'llm-judge:0.0.1',
|
|
111
115
|
config: {
|
|
112
116
|
threshold: 0.6,
|
|
113
|
-
rubric: 'The player watched the arena (arena_watch or arena_read), moved its cannon under the invaders and fired, and its cannon was not hit by a bomb it had been warned of.',
|
|
117
|
+
rubric: 'The player watched the arena (arena_watch or arena_read, or, played by a decision model, its decisions on what the arena showed), moved its cannon under the invaders and fired, and its cannon was not hit by a bomb it had been warned of.',
|
|
114
118
|
},
|
|
115
119
|
says: 'The player played the arena, not around it.',
|
|
116
120
|
},
|
|
@@ -142,6 +146,7 @@ export const INVOICE_RACE_BATTLE_0_0_1 = {
|
|
|
142
146
|
app: '',
|
|
143
147
|
color: 'blue',
|
|
144
148
|
overrides: {},
|
|
149
|
+
decisionModel: '',
|
|
145
150
|
},
|
|
146
151
|
{
|
|
147
152
|
id: 'red',
|
|
@@ -152,6 +157,7 @@ export const INVOICE_RACE_BATTLE_0_0_1 = {
|
|
|
152
157
|
overrides: {
|
|
153
158
|
model: 'alibaba:qwen-max',
|
|
154
159
|
},
|
|
160
|
+
decisionModel: '',
|
|
155
161
|
},
|
|
156
162
|
],
|
|
157
163
|
referee: {
|
|
@@ -190,7 +196,7 @@ export const PONG_BATTLE_0_0_1 = {
|
|
|
190
196
|
id: 'pong',
|
|
191
197
|
version: '0.0.1',
|
|
192
198
|
name: 'Pong',
|
|
193
|
-
description: "Two
|
|
199
|
+
description: "Two players at the Pong arena, each with a paddle: Blue, a Player with the arena's tools; Red, played by Jev, a decision model choosing its moves. The arena keeps the score; the first to eleven wins.",
|
|
194
200
|
variant: 'game',
|
|
195
201
|
goal: 'You are playing Pong. Call `arena_watch` once: the arena then tells you where the ball is and where it arrives on your side. Each time it does, call `arena_pong_move` with that `y` at once; serve with `arena_pong_serve` when the serve is yours. First to eleven points wins.',
|
|
196
202
|
clockSeconds: 180,
|
|
@@ -203,6 +209,7 @@ export const PONG_BATTLE_0_0_1 = {
|
|
|
203
209
|
runsIn: 'browser',
|
|
204
210
|
color: 'blue',
|
|
205
211
|
overrides: {},
|
|
212
|
+
decisionModel: '',
|
|
206
213
|
},
|
|
207
214
|
{
|
|
208
215
|
id: 'right',
|
|
@@ -212,6 +219,7 @@ export const PONG_BATTLE_0_0_1 = {
|
|
|
212
219
|
runsIn: 'browser',
|
|
213
220
|
color: 'red',
|
|
214
221
|
overrides: {},
|
|
222
|
+
decisionModel: 'cloudflare:wrk/typesafe/jev',
|
|
215
223
|
},
|
|
216
224
|
],
|
|
217
225
|
referee: {
|
|
@@ -231,7 +239,7 @@ export const PONG_BATTLE_0_0_1 = {
|
|
|
231
239
|
eval: 'llm-judge:0.0.1',
|
|
232
240
|
config: {
|
|
233
241
|
threshold: 0.6,
|
|
234
|
-
rubric: 'The player watched the arena (arena_watch or arena_read), moved its paddle as the ball came and served when the serve was its own; its tool calls and moves show it played rather than idled.',
|
|
242
|
+
rubric: 'The player watched the arena (arena_watch or arena_read, or, played by a decision model, its decisions on what the arena showed), moved its paddle as the ball came and served when the serve was its own; its tool calls and moves show it played rather than idled.',
|
|
235
243
|
},
|
|
236
244
|
says: 'The player played the arena, not around it.',
|
|
237
245
|
},
|
|
@@ -263,6 +271,7 @@ export const REPORT_CHALLENGE_BATTLE_0_0_1 = {
|
|
|
263
271
|
app: '',
|
|
264
272
|
color: 'blue',
|
|
265
273
|
overrides: {},
|
|
274
|
+
decisionModel: '',
|
|
266
275
|
},
|
|
267
276
|
{
|
|
268
277
|
id: 'red',
|
|
@@ -273,6 +282,7 @@ export const REPORT_CHALLENGE_BATTLE_0_0_1 = {
|
|
|
273
282
|
overrides: {
|
|
274
283
|
model: 'alibaba:qwen-max',
|
|
275
284
|
},
|
|
285
|
+
decisionModel: '',
|
|
276
286
|
},
|
|
277
287
|
],
|
|
278
288
|
referee: {
|
|
@@ -317,6 +327,7 @@ export const SHEET_RACE_BATTLE_0_0_1 = {
|
|
|
317
327
|
runsIn: 'browser',
|
|
318
328
|
color: 'blue',
|
|
319
329
|
overrides: {},
|
|
330
|
+
decisionModel: '',
|
|
320
331
|
},
|
|
321
332
|
{
|
|
322
333
|
id: 'red',
|
|
@@ -328,6 +339,7 @@ export const SHEET_RACE_BATTLE_0_0_1 = {
|
|
|
328
339
|
overrides: {
|
|
329
340
|
model: 'alibaba:qwen-max',
|
|
330
341
|
},
|
|
342
|
+
decisionModel: '',
|
|
331
343
|
},
|
|
332
344
|
],
|
|
333
345
|
referee: {
|
|
@@ -654,6 +654,12 @@ export interface BattleContestantSpec {
|
|
|
654
654
|
color: string;
|
|
655
655
|
/** What it plays differently of its application; on a scene, of every member played in the page. Empty, or absent, for nothing. */
|
|
656
656
|
overrides?: AppOverridesSpec;
|
|
657
|
+
/**
|
|
658
|
+
* A game's contestant played by a decision model, `provider:name` of one that answers typed decisions
|
|
659
|
+
* (`cloudflare:wrk/typesafe/jev`): the page asks it a choice on what the arena shows its side and makes
|
|
660
|
+
* the move it chooses; its application gives only the face. Empty, or absent, for an agent that plays.
|
|
661
|
+
*/
|
|
662
|
+
decisionModel?: string;
|
|
657
663
|
}
|
|
658
664
|
/** How a Battle's winner is decided. */
|
|
659
665
|
export interface BattleRefereeSpec {
|
package/package.json
CHANGED