Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
^\.git$
^\.github$
^\.claude$
^\.agents$
^CLAUDE\.md$
^cran-comments\.md$
^README\.Rmd$
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# mx.client 0.2.0.8

## Documentation

* Move the bundled skill to `inst/skills/matrix-messaging/`, installed at
`system.file("skills", "matrix-messaging", package = "mx.client")`.
The instruction body is unchanged; direct links to the old nested
`skills/mx.client/matrix-messaging` path need updating.

## New

* Missing Megolm sessions now create persistent `m.room_key_request`
Expand Down
14 changes: 14 additions & 0 deletions inst/tinytest/test_skills.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
library(tinytest)

root <- system.file("skills", package = "mx.client")
expect_true(nzchar(root))
skill <- file.path(root, "matrix-messaging", "SKILL.md")
expect_true(file.exists(skill))
expect_false(file.exists(file.path(root, "mx.client",
"matrix-messaging", "SKILL.md")))
entries <- list.files(root, pattern = "^SKILL[.]md$", recursive = TRUE)
expect_equal(entries, "matrix-messaging/SKILL.md")
body <- readLines(skill, warn = FALSE)
expect_equal(body[[1L]], "---")
expect_true("name: matrix-messaging" %in% body)
expect_true(any(grepl("^description:", body)))