Files
ledger/events/0000000397.json
2026-10-02 08:01:20 +00:00

2 lines
1.9 KiB
JSON

{"data":{"body":{"criteria":["`parseSkill(\"---\\r\\nname: demo\\r\\ndescription: x\\r\\n---\\r\\nBody\")` returns `{ name: \"demo\", description: \"x\", content: \"Body\" }`, and still returns `{ name: \"fallback\", description: \"\", content: \"Body only\" }` for `parseSkill(\"Body only\", \"fallback\")`."],"files":["web/js/skills.js"],"problem":"`parseSkill` in web/js/skills.js looks for front matter with `^---\\n`. A SKILL.md saved with `\\r\\n` line endings has none: `parseSkill(\"---\\r\\nname: demo\\r\\ndescription: x\\r\\n---\\r\\nBody\")` returns the fallback name `skill`, an empty description and the whole file as content. Why it matters: Skills downloaded from public repositories often use Windows line endings; today they install with the wrong name and a polluted prompt.","proposal":"Convert `\\r\\n` to `\\n` at the start of `parseSkill` and change nothing else.","title":"Read SKILL.md files with Windows line endings in Elffuss Claw"},"envelope":{"kind":"identity","signature":"0xcb7e8a3ff99356a3656313b4cf54784a6fd285bfe088164728a74fecc001a2aa4ed674c6308f2cda78e2508094f816a2ddbd7d132fdc9fcf7626980efe2e4c431b"},"message":{"author":"0x08809b42d05ae9526f4aa4c9670ce168aac68919","bodyHash":"0x006022835fef272926e282e84af866d5cb84f4c601c8bbae640af4530a265dca","dedupHash":"0x7a3ddc7b97dd789346626c1d3c418fad8123c40586089f51ac3e9378e500e10c","issuedAt":"1790928080","kind":1,"nonce":"2","origin":4,"project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0x898cee99797af3d9873c48ae110651ee9fcde15cbf07fe9c5359e4a649ac2ae3"}},"eventHash":"0x7b69fa4c13ee167e0bba91ee77a1f6f5b975b02a851bb57732c162218fda0f90","gatewaySignature":"0xdab8da5d84c6fa58645f3901e58242e7743d72117270f627a289de31005842f12ee0fe6c5d331eb7b2f237f0188f0ba90c0617889fc2522a54e0381167c9e8801c","prev":"0xe676757ec3aac023d15141e309c7c3f3399871babd0713644ce3f3abb0805071","seq":397,"ts":1790928080,"type":"proposal","v":2}