deep-roon-mcp 0.5.10 → 0.5.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/deep-roon-mcp.js +12 -6
- package/package.json +1 -1
package/dist/deep-roon-mcp.js
CHANGED
|
@@ -15489,7 +15489,7 @@ var require_lib2 = __commonJS({
|
|
|
15489
15489
|
var version2;
|
|
15490
15490
|
var init_package = __esm({
|
|
15491
15491
|
"package.json"() {
|
|
15492
|
-
version2 = "0.5.
|
|
15492
|
+
version2 = "0.5.11";
|
|
15493
15493
|
}
|
|
15494
15494
|
});
|
|
15495
15495
|
|
|
@@ -52308,6 +52308,7 @@ init_official();
|
|
|
52308
52308
|
|
|
52309
52309
|
// src/roon/selftest.ts
|
|
52310
52310
|
init_library();
|
|
52311
|
+
init_focus();
|
|
52311
52312
|
async function timed(name, affects, f) {
|
|
52312
52313
|
const t0 = Date.now();
|
|
52313
52314
|
try {
|
|
@@ -52322,13 +52323,18 @@ async function runSelfTest() {
|
|
|
52322
52323
|
const out = [];
|
|
52323
52324
|
let albumKey;
|
|
52324
52325
|
out.push(await timed("search", "roon_search and everything that starts from a key", async () => {
|
|
52325
|
-
const
|
|
52326
|
-
|
|
52327
|
-
|
|
52328
|
-
|
|
52326
|
+
const first = (await library2({}, "added", false, 1, 0)).rows[0];
|
|
52327
|
+
if (!first?.title) {
|
|
52328
|
+
albumKey = void 0;
|
|
52329
|
+
return "nothing to search for (an empty library) \u2014 not tested";
|
|
52330
|
+
}
|
|
52331
|
+
const r = await search(first.title, 5, "album");
|
|
52332
|
+
albumKey = r.rows[0]?.key ?? first.key;
|
|
52333
|
+
if (!r.rows.length) throw new Error(`no results for "${first.title}", an album in this library`);
|
|
52334
|
+
return `${r.rows.length} album${r.rows.length === 1 ? "" : "s"} for "${first.title}"`;
|
|
52329
52335
|
}));
|
|
52330
52336
|
out.push(await timed("album page", "roon_album, roon_review, roon_versions, roon_similar", async () => {
|
|
52331
|
-
if (!albumKey)
|
|
52337
|
+
if (!albumKey) return "no album to open (an empty library) \u2014 not tested";
|
|
52332
52338
|
const a = await album(albumKey, false);
|
|
52333
52339
|
if (!a.tracks?.length) throw new Error("an album without tracks");
|
|
52334
52340
|
return `${a.tracks.length} tracks`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "deep-roon-mcp",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.11",
|
|
4
4
|
"description": "An MCP server for Roon that reaches the parts the official API doesn't: reviews, biographies, Qobuz's and TIDAL's shelves, TIDAL's playlists, your history, search across your library and the streaming services",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "René Bouwmeester <21277119+renebouwmeester@users.noreply.github.com>",
|