Files
ledger/events/0000000402.json
2026-10-02 08:01:23 +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, front matter included, 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 Code"},"envelope":{"kind":"identity","signature":"0xf44e2be62d39bc1e5b253c06053183f639de106309abf67999b08aaf2621500b7c1cc26a6e2f581eb6a83bf44c7e005b9b494efbf0fc52e02616f7368adc43251b"},"message":{"author":"0x08809b42d05ae9526f4aa4c9670ce168aac68919","bodyHash":"0x025fdf46737f3809eef5b17c73f565c1f9ec13de61665293bcfb7616a8edaa30","dedupHash":"0xc3c3c575b47d4cf2c4dc09124a00a74c8b7cd2e5f8b51727a26051e8b9d4600e","issuedAt":"1790928083","kind":1,"nonce":"7","origin":4,"project":"0x16d6e75341c5f21003a4d9e89b416a545f7335094d7df139fd20942c9b7fb2de","repo":"0xd822e541c0173492ca0725a08935bcd8eaa756a9559600a9427d0daac625ead2"}},"eventHash":"0xbcc18e96f0ab2706f6ee94056c26de526a924d2d52565636a3f39d3c73537ee3","gatewaySignature":"0x6b326bf25c9197e1f09f8c29541f3b8c639aad73b906ceb89a10483159b40cd2177867e2468bbd2ce4b867fc58138743b72fb80cbaea3f84cdbceb2bd03ab7541b","prev":"0xeb5ff6bbd97d47bda86cfee70a329e6824a08ab7612fcf9a27a808d735d1f862","seq":402,"ts":1790928083,"type":"proposal","v":2}