From ef00b2c3f40d1817609593ccf33a4fa81c157a7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD=20=D0=A2=D1=80=D0=BE=D1=88?= =?UTF-8?q?=D0=B8=D0=BD?= Date: Sat, 12 Sep 2026 11:46:32 +0300 Subject: [PATCH] docs: keep a local AGENTS.md out of the repo; fix RAM-install note Add AGENTS.md to .gitignore so the local agent guide (goal, implemented features, pySim usage) stays untracked. Correct the /api/ram-install description: the .cap archive is parsed server-side by _cap_parse, not by pySim.javacard/global_platform. --- .gitignore | 1 + docs/api.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ac16a2b..ad66345 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ __pycache__/ *.egg-info/ dist/ build/ +AGENTS.md diff --git a/docs/api.md b/docs/api.md index 0a69837..ac0ea9f 100644 --- a/docs/api.md +++ b/docs/api.md @@ -143,7 +143,7 @@ The SPI2 `por_in_submit` bit (0x20) selects submit-mode PoR. ### `POST /api/ram-install` -Install a Java Card `.cap` file on the card via GlobalPlatform commands (INSTALL[for load] → LOAD ×N → INSTALL[for install (+ make selectable)]) wrapped in SCP80 secured packets. Each step is sent via ENVELOPE and its PoR is checked; the sequence aborts on the first PoR error. Requires pySim with `pySim.javacard.CapFile` and `pySim.global_platform` available on the server. +Install a Java Card `.cap` file on the card via GlobalPlatform commands (INSTALL[for load] → LOAD ×N → INSTALL[for install (+ make selectable)]) wrapped in SCP80 secured packets. Each step is sent via ENVELOPE and its PoR is checked; the sequence aborts on the first PoR error. The `.cap` archive (a ZIP of nested components) is parsed server-side in `_cap_parse`; no external tooling is required. **Request body:** ```json