Skip to content

Commit 75ba88c

Browse files
authored
Merge pull request #5862 from Tyriar/05-01-make_agent_instructions_harness_agnostic
Make agent instructions harness agnostic
2 parents ad4a6e8 + f9cea73 commit 75ba88c

6 files changed

Lines changed: 22 additions & 18 deletions

File tree

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
---
2-
applyTo: '**/*.benchmark.ts'
2+
name: benchmark
3+
description: Run and author benchmark tests in xterm.js. Use when editing benchmark files, working in `*.benchmark.ts`, or when asked how to run the full benchmark suite, a single benchmark file, or a single benchmark case.
34
---
4-
# Benchmark run instructions
5+
6+
# Benchmark Run Instructions
7+
8+
## Running Benchmarks
59

610
- Full suite: `npm run benchmark`
711
- Single benchmark file:
@@ -11,8 +15,14 @@ applyTo: '**/*.benchmark.ts'
1115
- Use `-t` to get the path, then:
1216
- `npm run benchmark -- -s "<path>" out-test/benchmark/Event.benchmark.js`
1317

14-
When writing instructions, use `RuntimeCase` to measure pure runtime in ms, use `ThroughputRuntimeCase` when measuring throughput in MB/s.
18+
## Benchmark Case Selection
19+
20+
When writing benchmark instructions:
21+
22+
- Use `RuntimeCase` to measure pure runtime in ms.
23+
- Use `ThroughputRuntimeCase` when measuring throughput in MB/s.
24+
25+
## Notes
1526

16-
Notes:
1727
- Benchmarks run from built JS in `out-test/benchmark/*.benchmark.js`.
1828
- Keep `NODE_PATH=./out` (handled by the npm script).

.github/instructions/unit-test.instructions.md renamed to .agents/skills/unit-test/SKILL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
---
2-
applyTo: '**/*.test.ts'
2+
name: unit-test
3+
description: Write and review xterm.js unit tests with project conventions. Use when editing `*.test.ts` files or when asked for test authoring guidelines.
34
---
4-
When writing unit tests follow these rules:
5+
6+
# Unit Test Instructions
7+
8+
When writing unit tests, follow these rules:
59

610
- When writing unit tests for addons, always create a real xterm.js instance instead of mocking it.
711
- Prefer `assert.ok` over `assert.notStrictEqual` when checking something is undefined or not.

.github/hooks/setupRepo.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"scripts": {
3030
"presetup": "npm run build",
3131
"setup": "npm run esbuild",
32+
"setup-full": "node bin/setup-full.mjs",
3233
"postsetup": "npm run esbuild-demo-server",
3334
"start": "node demo/start",
3435
"dev": "concurrently -k -p [{name}] -n tsc,esbuild,esbuild-demo-client,esbuild-demo-server,server -c blue,yellow,cyan,green,magenta \"npm:tsc-watch\" \"npm:esbuild-watch\" \"npm:esbuild-demo-client-watch\" \"npm:esbuild-demo-server-watch\" \"npm:start\"",
@@ -72,8 +73,7 @@
7273
"prepackage-headless": "npm run esbuild-package-headless-only",
7374
"package-headless": "webpack --config ./webpack.config.headless.js",
7475
"postpackage-headless": "node ./bin/package_headless.js",
75-
"prepublishOnly": "npm run package",
76-
"agent:setup-repo": "node bin/agent/setup-repo.mjs"
76+
"prepublishOnly": "npm run package"
7777
},
7878
"devDependencies": {
7979
"@lunapaint/png-codec": "^0.2.0",

0 commit comments

Comments
 (0)