c64-ready 3.1.0 → 3.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/README.md +20 -1
- package/bin/agent.mjs +18 -0
- package/package.json +10 -4
- package/src/headless/agent-cli.mjs +825 -0
- package/src/headless/png.mjs +72 -0
- package/src/headless/webrtc-server.mjs +115 -13
- package/src/main.ts +20 -0
- package/src/player/c64-player.ts +22 -1
- package/src/player/ui-controller.ts +11 -0
- package/src/player/ultimate-bridge.ts +161 -0
- package/src/player/ultimate-panel.ts +315 -0
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# c64-ready
|
|
4
4
|
|
|
5
|
-
`c64-ready` is a TypeScript/Vite frontend
|
|
5
|
+
`c64-ready` is a TypeScript/Vite frontend and headless emulator for running and debugging C64 files in emulation.
|
|
6
6
|
|
|
7
7
|
It is based on `c64.js (from lvllvl.com by James)` from the original project source: https://github.com/jaammees/lvllvl
|
|
8
8
|
|
|
@@ -58,6 +58,24 @@ Run tests in watch mode:
|
|
|
58
58
|
npm run test:watch
|
|
59
59
|
```
|
|
60
60
|
|
|
61
|
+
## Agent CLI — screenshots, memory and breakpoints for AI-assisted development
|
|
62
|
+
|
|
63
|
+
`c64-agent` runs a program for a fixed number of emulated frames, feeds it scripted
|
|
64
|
+
keyboard and joystick input, and reports back: CPU registers, the text screen, memory
|
|
65
|
+
dumps, PNG screenshots and optional video. Runs are deterministic, which makes it the
|
|
66
|
+
tool to hand to an LLM coding agent or a CI job.
|
|
67
|
+
|
|
68
|
+
```zsh
|
|
69
|
+
# Run a KickAssembler build for 5 seconds, then screenshot it and print the screen
|
|
70
|
+
npx -p c64-ready c64-agent game.prg --frames 250 --screenshot shot.png --screen
|
|
71
|
+
|
|
72
|
+
# Press fire at frame 100 and stop when the code reaches a label
|
|
73
|
+
npx -p c64-ready c64-agent game.prg --symbols game.sym --at 100:joy2=fire --break on_fire
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
See [Agent CLI](docs/AGENT_CLI.md) for every option. For ready-made Claude Code /
|
|
77
|
+
Agent Skills, see [c64-skills](https://github.com/hayesmaker/c64-skills).
|
|
78
|
+
|
|
61
79
|
## Cheevos development
|
|
62
80
|
|
|
63
81
|
c64-ready can load local `c64-cheevos` game detectors while running games in the browser. This is useful for developing score tracking and achievements with live emulator memory reads.
|
|
@@ -618,6 +636,7 @@ Extended documentation lives in the [`docs/`](docs/) folder:
|
|
|
618
636
|
|
|
619
637
|
| File | Description |
|
|
620
638
|
| ----------------------------------------------------- | ------------------------------------------------------------------ |
|
|
639
|
+
| [`AGENT_CLI.md`](docs/AGENT_CLI.md) | `c64-agent`: deterministic run, screenshot, dump and breakpoint CLI |
|
|
621
640
|
| [`AUDIO_ENGINE.md`](docs/AUDIO_ENGINE.md) | SID audio pipeline, worklet pull-model, timing rules |
|
|
622
641
|
| [`HEADLESS_INPUT.md`](docs/HEADLESS_INPUT.md) | Headless WebSocket input API reference |
|
|
623
642
|
| [`HEADLESS_RUNNING.md`](docs/HEADLESS_RUNNING.md) | Headless CLI usage, frame/timing rules, ffmpeg integration |
|
package/bin/agent.mjs
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// SPDX-License-Identifier: MIT
|
|
3
|
+
// Copyright (c) 2026 hayesmaker
|
|
4
|
+
// See LICENSE in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* c64-agent — deterministic load → run → inspect runner for LLM agents and test scripts.
|
|
7
|
+
* Run `c64-agent --help` for usage, or see docs/AGENT_CLI.md.
|
|
8
|
+
*/
|
|
9
|
+
import { runAgent } from '../src/headless/agent-cli.mjs';
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
const { exitCode, output } = await runAgent();
|
|
13
|
+
if (output) process.stdout.write(output.endsWith('\n') ? output : `${output}\n`);
|
|
14
|
+
process.exitCode = exitCode;
|
|
15
|
+
} catch (e) {
|
|
16
|
+
process.stderr.write(`c64-agent: error: ${e && e.message ? e.message : e}\n`);
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -7,10 +7,14 @@
|
|
|
7
7
|
"emulator",
|
|
8
8
|
"wasm",
|
|
9
9
|
"headless",
|
|
10
|
-
"retro"
|
|
10
|
+
"retro",
|
|
11
|
+
"6502",
|
|
12
|
+
"debugger",
|
|
13
|
+
"llm",
|
|
14
|
+
"agent"
|
|
11
15
|
],
|
|
12
16
|
"license": "MIT",
|
|
13
|
-
"version": "3.
|
|
17
|
+
"version": "3.2.0",
|
|
14
18
|
"type": "module",
|
|
15
19
|
"engines": {
|
|
16
20
|
"node": ">=24.14"
|
|
@@ -29,12 +33,14 @@
|
|
|
29
33
|
"test:watch": "vitest",
|
|
30
34
|
"lint": "eslint src/",
|
|
31
35
|
"lint:fix": "eslint src/ --fix",
|
|
32
|
-
"format": "prettier --write src/"
|
|
36
|
+
"format": "prettier --write src/",
|
|
37
|
+
"agent": "node bin/agent.mjs"
|
|
33
38
|
},
|
|
34
39
|
"bin": {
|
|
35
40
|
"c64-ready": "bin/serve.mjs",
|
|
36
41
|
"c64-headless": "bin/headless.mjs",
|
|
37
|
-
"c64-admin": "bin/admin.mjs"
|
|
42
|
+
"c64-admin": "bin/admin.mjs",
|
|
43
|
+
"c64-agent": "bin/agent.mjs"
|
|
38
44
|
},
|
|
39
45
|
"exports": {
|
|
40
46
|
".": {
|