@henols/c64-re-tools 2.6.0-rc.2 → 2.6.0-rc.20
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/package.json +2 -2
- package/skills/c64-assembler/SKILL.md +28 -14
- package/skills/c64-assembler/scripts/assembler.ts +28 -15
- package/skills/c64-development/SKILL.md +4 -4
- package/skills/c64-docs/SKILL.md +9 -7
- package/skills/c64-docs/scripts/docs.ts +24 -11
- package/skills/c64-docs/scripts/lib/reference.ts +119 -33
- package/skills/c64-docs/scripts/lib/source-map.ts +23 -4
- package/skills/c64-knowledge/SKILL.md +67 -42
- package/skills/c64-knowledge/scripts/knowledge.ts +90 -67
- package/skills/c64-knowledge/scripts/lib/listing.ts +18 -3
- package/skills/c64-packer/SKILL.md +1 -1
- package/skills/c64-provenance/SKILL.md +11 -10
- package/skills/c64-provenance/scripts/lib/library.ts +16 -16
- package/skills/c64-provenance/scripts/provenance.ts +33 -23
- package/skills/c64-reverse-engineering/SKILL.md +17 -11
- package/skills/c64-source/SKILL.md +71 -47
- package/skills/c64-source/scripts/lib/export.ts +89 -34
- package/skills/c64-source/scripts/lib/loader.ts +79 -36
- package/skills/c64-source/scripts/lib/source.ts +38 -32
- package/skills/c64-source/scripts/lib/stage.ts +11 -5
- package/skills/c64-source/scripts/lib/start-screen.asm +4 -2
- package/skills/c64-source/scripts/source.ts +278 -145
- package/skills/c64-static-analysis/SKILL.md +29 -25
- package/skills/c64-static-analysis/scripts/lib/coverage.ts +2 -25
- package/skills/c64-static-analysis/scripts/lib/findings.ts +11 -11
- package/skills/c64-static-analysis/scripts/lib/instructions.ts +26 -24
- package/skills/c64-static-analysis/scripts/lib/macros.ts +3 -1
- package/skills/c64-static-analysis/scripts/static-analysis.ts +69 -67
- package/skills/c64-testing/SKILL.md +15 -5
- package/skills/c64-testing/references/recording-format.md +26 -5
- package/skills/c64-testing/references/scenario-format.md +11 -8
- package/skills/c64-testing/scripts/lib/diff-files.ts +4 -18
- package/skills/c64-testing/scripts/lib/play.ts +39 -41
- package/skills/c64-testing/scripts/lib/recording.ts +220 -46
- package/skills/c64-testing/scripts/lib/replay.ts +32 -6
- package/skills/c64-testing/scripts/lib/runs.ts +8 -3
- package/skills/c64-testing/scripts/lib/scenario.ts +18 -11
- package/skills/c64-testing/scripts/testing.ts +23 -2
- package/skills/c64-unpacker/SKILL.md +10 -5
- package/skills/c64-unpacker/scripts/lib/loads.ts +34 -13
- package/skills/c64-unpacker/scripts/lib/machine.ts +7 -3
- package/skills/c64-unpacker/scripts/lib/stages.ts +18 -3
- package/skills/c64-unpacker/scripts/unpacker.ts +43 -9
- package/skills/emulator/SKILL.md +7 -12
- package/src/build-name.ts +55 -0
- package/src/c64-keys.ts +98 -0
- package/src/c64.ts +22 -2
- package/src/cli/main.ts +3 -29
- package/src/host/main.ts +3 -3
- package/src/host/server.ts +3 -1
- package/src/host/tools/index.ts +2 -7
- package/src/host/vice/process.ts +34 -17
- package/src/host/vice/session.ts +138 -31
- package/src/host-client/steps.ts +21 -18
- package/src/host-client/tools.ts +2 -7
- package/src/host-client/vice-session.ts +7 -1
- package/src/knowledge/evidence.ts +66 -0
- package/src/knowledge/history.ts +5 -5
- package/src/knowledge/import.ts +12 -5
- package/src/knowledge/program.ts +123 -32
- package/src/knowledge/read.ts +36 -13
- package/src/knowledge/schema.ts +43 -17
- package/src/knowledge/start-screen.ts +70 -0
- package/src/knowledge/text.ts +33 -5
- package/src/knowledge/write.ts +75 -36
- package/src/mcp/inputs.ts +12 -0
- package/src/mcp/server.ts +1 -1
- package/src/mcp/tools/debug.ts +23 -21
- package/src/mcp/tools/input.ts +38 -5
- package/src/mcp/tools/machine.ts +3 -42
- package/src/mcp/tools/media.ts +1 -1
- package/src/mcp/tools/memory.ts +12 -9
- package/src/native/acme.ts +1 -1
- package/src/native/c64run.ts +7 -4
- package/src/native/decompiler/analyze.ts +98 -0
- package/src/native/decompiler/c64rt-wasm.ts +4 -0
- package/src/native/decompiler/language/c64rt_6510.sla +0 -0
- package/src/native/{ghidra → decompiler}/language/c64rt_6510.slaspec +1 -1
- package/src/native/decompiler/pcode.ts +222 -0
- package/src/native/decompiler/walk.ts +205 -0
- package/src/native/decompiler/wasm.ts +98 -0
- package/src/native/discover.ts +3 -3
- package/src/native/dxa.ts +12 -1
- package/src/native/processes.ts +4 -4
- package/src/native/types.ts +27 -27
- package/src/opcodes.ts +1 -1
- package/src/platform.ts +30 -1
- package/src/project.ts +17 -4
- package/src/protocol/tools.ts +1 -45
- package/src/protocol/vice.ts +47 -0
- package/src/reference-pages.ts +64 -0
- package/src/script.ts +4 -4
- package/src/vsf.ts +98 -0
- package/tools/c64run.c +158 -15
- package/tools/install-container.sh +1 -2
- package/src/cli/status.ts +0 -127
- package/src/host/tools/status.ts +0 -47
- package/src/native/ghidra/analyze.ts +0 -87
- package/src/native/ghidra/index.ts +0 -170
- package/src/native/ghidra/scripts/C64Export.java +0 -274
- package/src/native/ghidra/scripts/C64Prepare.java +0 -66
- package/src/native/status.ts +0 -135
- package/tools/install-ghidra.sh +0 -40
- /package/src/native/{ghidra → decompiler}/language/c64rt_6510.cspec +0 -0
- /package/src/native/{ghidra → decompiler}/language/c64rt_6510.ldefs +0 -0
- /package/src/native/{ghidra → decompiler}/language/c64rt_6510.pspec +0 -0
package/tools/install-ghidra.sh
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
# Installs Ghidra in /opt/ghidra_<version>_PUBLIC and points /opt/ghidra at
|
|
3
|
-
# it, so that C64RT_GHIDRA=/opt/ghidra stays the same when the version
|
|
4
|
-
# changes. Removes the Ghidra versions that it installed before. Ghidra needs
|
|
5
|
-
# Java 21. install-container.sh runs it as root.
|
|
6
|
-
|
|
7
|
-
set -Eeuo pipefail
|
|
8
|
-
|
|
9
|
-
GHIDRA_VERSION="12.1.3"
|
|
10
|
-
GHIDRA_ZIP="ghidra_${GHIDRA_VERSION}_PUBLIC_20260817.zip"
|
|
11
|
-
GHIDRA_URL="https://github.com/NationalSecurityAgency/ghidra/releases/download/Ghidra_${GHIDRA_VERSION}_build/${GHIDRA_ZIP}"
|
|
12
|
-
GHIDRA_SHA256="93a5d11a9ad510622acaaf908c556a7b9b764d338e78a7567f3689bf5081fd54"
|
|
13
|
-
DEST="/opt"
|
|
14
|
-
GHIDRA_DIR="${DEST}/ghidra_${GHIDRA_VERSION}_PUBLIC"
|
|
15
|
-
|
|
16
|
-
fail() {
|
|
17
|
-
printf 'Ghidra: %s\n' "$*" >&2
|
|
18
|
-
exit 1
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[[ "$(id -u)" -eq 0 ]] || fail "run as root."
|
|
22
|
-
|
|
23
|
-
if [[ ! -d "${GHIDRA_DIR}" ]]; then
|
|
24
|
-
BUILD_DIR="$(mktemp -d -t ghidra-XXXXXXXX)"
|
|
25
|
-
trap 'rm -rf "${BUILD_DIR}"' EXIT
|
|
26
|
-
curl -fsSL --retry 3 -o "${BUILD_DIR}/${GHIDRA_ZIP}" "${GHIDRA_URL}"
|
|
27
|
-
echo "${GHIDRA_SHA256} ${BUILD_DIR}/${GHIDRA_ZIP}" | sha256sum -c - > /dev/null || fail "the archive has the wrong checksum."
|
|
28
|
-
unzip -q "${BUILD_DIR}/${GHIDRA_ZIP}" -d "${BUILD_DIR}/unpacked"
|
|
29
|
-
# Ghidra ships its decompiler only for x86-64; on arm64 its own Gradle wrapper builds it.
|
|
30
|
-
if [[ "$(uname -m)" == aarch64 || "$(uname -m)" == arm64 ]]; then
|
|
31
|
-
(cd "${BUILD_DIR}/unpacked/ghidra_${GHIDRA_VERSION}_PUBLIC/support/gradle" && GRADLE_USER_HOME="${BUILD_DIR}/gradle" ./gradlew --no-daemon buildNatives)
|
|
32
|
-
fi
|
|
33
|
-
mv "${BUILD_DIR}/unpacked/ghidra_${GHIDRA_VERSION}_PUBLIC" "${GHIDRA_DIR}"
|
|
34
|
-
fi
|
|
35
|
-
|
|
36
|
-
ln -sfn "${GHIDRA_DIR}" "${DEST}/ghidra"
|
|
37
|
-
for old in "${DEST}"/ghidra_*_PUBLIC; do
|
|
38
|
-
[[ "${old}" == "${GHIDRA_DIR}" || ! -d "${old}" ]] || rm -rf "${old}"
|
|
39
|
-
done
|
|
40
|
-
echo "Ghidra ${GHIDRA_VERSION} is installed in ${GHIDRA_DIR}, and ${DEST}/ghidra points at it."
|
|
File without changes
|
|
File without changes
|
|
File without changes
|