Local multi-document knowledge maps with source evidence and explicit incremental changes.
moon add icyaaaww/moonatlas///|
import {
"icyaaaww/moonatlas",
}///|
test {
let docs : Array[@moonatlas.Document] = [
{
path: "team/release.md",
content: "# Release\n## Rollback\nRestore the previous version.",
},
{
path: "team/review.md",
content: "# Review\n## Rollback\nRecord the decision.",
},
]
let atlas = @moonatlas.build_atlas(docs, [], [])
assert_eq(atlas.issues.length(), 0)
assert_eq(atlas.concepts[0].paths.length(), 2)
assert_eq(atlas.concepts[0].sources[0].start_line, 2)
assert_true(@moonatlas.export_index(atlas).contains("Rollback"))
}moon check --target all
moon test --target js
moon test --target wasm-gc
moon run examples/demo --target jsfn classify_documents(documents : Array[Document], preferences : Array[Preference], paths : Array[String], topic : String) -> BatchClassificationfn reconcile_preferences(before : Array[Document], after : Array[Document], preferences : Array[Preference]) -> Array[Preference]fn search_documents(documents : Array[Document], preferences : Array[Preference], query : String) -> SearchResultInstall
Download zipLocal multi-document knowledge maps with source evidence and explicit incremental changes.