note.mjs
sha256:c2dbf04d56308f3bbf2d06e6d2eb022b8948b1e827195fe525a44e5e18d5f9c0
feat(auth): Phase B Connect cloud agent (RFC 8628) + Hermes…
Human
minor
⚠ breaking
12 days ago
| 1 | /** |
| 2 | * Single-note markdown serialization for MCP note resources (Issue #1 Phase A1). |
| 3 | */ |
| 4 | |
| 5 | import yaml from 'js-yaml'; |
| 6 | |
| 7 | /** |
| 8 | * @param {{ path: string, frontmatter: object, body: string }} note |
| 9 | * @returns {string} |
| 10 | */ |
| 11 | export function noteToMarkdown(note) { |
| 12 | const fm = note.frontmatter && Object.keys(note.frontmatter).length > 0 |
| 13 | ? `---\n${yaml.dump(note.frontmatter).trimEnd()}\n---\n` |
| 14 | : ''; |
| 15 | return `${fm}${note.body || ''}`; |
| 16 | } |
File History
1 commit
sha256:93bcf8f9bd56d8c5b9339f4ec73b9ebd66571398d56262d38eedc2cfa9db9882
fix(test): align Band B landing assertion with desktop MCP …
Human
12 days ago