@tangle-network/agent-bench 0.4.3 → 0.4.4
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 +5 -0
- package/package.json +4 -4
- package/src/pier-trial-controller.test.mts +15 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.4
|
|
4
|
+
|
|
5
|
+
- Consume Runtime 0.107.2 and Sandbox 0.15.0 with the current Eval, Interface, and Knowledge packages.
|
|
6
|
+
- Publish fake Pier terminal results atomically so the full test suite cannot observe partial JSON.
|
|
7
|
+
|
|
3
8
|
## 0.4.3
|
|
4
9
|
|
|
5
10
|
- Consume Runtime 0.107.1 with Eval 0.133.0, Interface 0.36.0, and Knowledge 6.1.2.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/agent-bench",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Benchmark adapters and execution for agent-runtime across coding, tool-use, RAG, memory, browser, and terminal tasks.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/tangle-network/agent-runtime.git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@tangle-network/agent-eval": "0.133.0",
|
|
29
29
|
"@tangle-network/agent-interface": "0.36.0",
|
|
30
30
|
"@tangle-network/agent-knowledge": "6.1.2",
|
|
31
|
-
"@tangle-network/sandbox": "0.
|
|
32
|
-
"@tangle-network/agent-runtime": "0.107.
|
|
31
|
+
"@tangle-network/sandbox": "0.15.0",
|
|
32
|
+
"@tangle-network/agent-runtime": "0.107.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@arethetypeswrong/cli": "0.18.5",
|
|
@@ -85,18 +85,20 @@ test('the Pier result wait does not add time beyond an expired deadline', async
|
|
|
85
85
|
await chmod(fakeDocker, 0o700)
|
|
86
86
|
await writeFile(
|
|
87
87
|
supervisorPath,
|
|
88
|
-
`import { createReadStream } from 'node:fs'
|
|
89
|
-
import { writeFileSync } from 'node:fs'
|
|
88
|
+
`import { createReadStream, renameSync, writeFileSync } from 'node:fs'
|
|
90
89
|
import path from 'node:path'
|
|
91
90
|
const directory = process.argv[2]
|
|
92
91
|
process.on('SIGTERM', () => {
|
|
93
|
-
|
|
92
|
+
const target = path.join(directory, 'terminal.json')
|
|
93
|
+
const temporary = path.join(directory, '.terminal.json.tmp')
|
|
94
|
+
writeFileSync(temporary, JSON.stringify({
|
|
94
95
|
schemaVersion: 1,
|
|
95
96
|
kind: 'pier-trial-terminal',
|
|
96
97
|
status: 'stopped',
|
|
97
98
|
processExited: true,
|
|
98
99
|
containersRemoved: true,
|
|
99
100
|
}))
|
|
101
|
+
renameSync(temporary, target)
|
|
100
102
|
process.exit(0)
|
|
101
103
|
})
|
|
102
104
|
for await (const _chunk of createReadStream('', { fd: 3 })) {}
|
|
@@ -156,7 +158,7 @@ test('the supervisor receives only launch data and no inherited evaluator enviro
|
|
|
156
158
|
await chmod(fakeDocker, 0o700)
|
|
157
159
|
await writeFile(
|
|
158
160
|
supervisorPath,
|
|
159
|
-
`import { createReadStream, writeFileSync } from 'node:fs'
|
|
161
|
+
`import { createReadStream, renameSync, writeFileSync } from 'node:fs'
|
|
160
162
|
import path from 'node:path'
|
|
161
163
|
const chunks = []
|
|
162
164
|
for await (const chunk of createReadStream('', { fd: 3 })) chunks.push(Buffer.from(chunk))
|
|
@@ -165,7 +167,9 @@ const isolated = process.env.PIER_SUPERVISOR_MODE === 'explicit' &&
|
|
|
165
167
|
process.env.PIER_PARENT_SECRET === undefined &&
|
|
166
168
|
launch.env.PIER_PARENT_SECRET === undefined &&
|
|
167
169
|
launch.env.PIER_CHILD_SECRET === 'child-only'
|
|
168
|
-
|
|
170
|
+
const target = path.join(process.argv[2], 'terminal.json')
|
|
171
|
+
const temporary = path.join(process.argv[2], '.terminal.json.tmp')
|
|
172
|
+
writeFileSync(temporary, JSON.stringify({
|
|
169
173
|
schemaVersion: 1,
|
|
170
174
|
kind: 'pier-trial-terminal',
|
|
171
175
|
status: isolated ? 'completed' : 'failed',
|
|
@@ -173,6 +177,7 @@ writeFileSync(path.join(process.argv[2], 'terminal.json'), JSON.stringify({
|
|
|
173
177
|
containersRemoved: true,
|
|
174
178
|
...(isolated ? {} : { error: 'supervisor inherited evaluator environment' }),
|
|
175
179
|
}))
|
|
180
|
+
renameSync(temporary, target)
|
|
176
181
|
`,
|
|
177
182
|
)
|
|
178
183
|
const controller = new FilePierCandidateTrialController({
|
|
@@ -224,10 +229,12 @@ test('terminal acknowledgements reject unknown fields', async () => {
|
|
|
224
229
|
await chmod(fakeDocker, 0o700)
|
|
225
230
|
await writeFile(
|
|
226
231
|
supervisorPath,
|
|
227
|
-
`import { createReadStream, writeFileSync } from 'node:fs'
|
|
232
|
+
`import { createReadStream, renameSync, writeFileSync } from 'node:fs'
|
|
228
233
|
import path from 'node:path'
|
|
229
234
|
for await (const _chunk of createReadStream('', { fd: 3 })) {}
|
|
230
|
-
|
|
235
|
+
const target = path.join(process.argv[2], 'terminal.json')
|
|
236
|
+
const temporary = path.join(process.argv[2], '.terminal.json.tmp')
|
|
237
|
+
writeFileSync(temporary, JSON.stringify({
|
|
231
238
|
schemaVersion: 1,
|
|
232
239
|
kind: 'pier-trial-terminal',
|
|
233
240
|
status: 'completed',
|
|
@@ -235,6 +242,7 @@ writeFileSync(path.join(process.argv[2], 'terminal.json'), JSON.stringify({
|
|
|
235
242
|
containersRemoved: true,
|
|
236
243
|
containerRemoved: true,
|
|
237
244
|
}))
|
|
245
|
+
renameSync(temporary, target)
|
|
238
246
|
`,
|
|
239
247
|
)
|
|
240
248
|
const controller = new FilePierCandidateTrialController({
|