openvibers/openvibe.events Commits

openvibe-shared v4.108.0 (was v4.107.4) (#233)

OP OpenVibers committed 10 days ago · 9076253401 · 6 files, +13 −8

* openvibe-shared v4.108.0 (was v4.107.4)

Opened by scripts/pin-bump.js in OpenVibers/OpenVibe.Shared after the v4.108.0 release.

* llms.txt links each page at its Markdown twin, with an ## Optional section (AGT-5)

Changes

ddiff --git a/README.md b/README.md
iindex a9aeeb8..2cf96e3 100644
---- a/README.md
++++ b/README.md
@@@ -408,5 +408,5 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by [
<!-- versions:start -->
- openvibe-contracts: v0.280.0
- openvibe-sdk: v0.82.0
--- openvibe-shared: v4.107.4
++- openvibe-shared: v4.108.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex 7337e3f..310bb18 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -9,7 +9,7 @@
"domain": "openvibe.events",
"contracts": "openvibe-contracts v0.280.0",
"sdk": "openvibe-sdk v0.82.0",
-- "shared": "openvibe-shared v4.107.4",
++ "shared": "openvibe-shared v4.108.0",
"capabilities": [
"events.event.publish",
"events.subscription.manage",
ddiff --git a/package-lock.json b/package-lock.json
iindex 9f85376..0294652 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -14,7 +14,7 @@
"iovalkey": "^0.4.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.280.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.82.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.107.4",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.108.0",
"pg": "^8.23.0"
},
"devDependencies": {
@@@ -1147,9 +1147,9 @@
}
},
"node_modules/openvibe-shared": {
-- "version": "4.107.4",
-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.107.4",
-- "integrity": "sha512-tThN0m3KMncEHVcBOvE+ysHjsZTlVIDLG1P+/i2Mulmxfc/AUpebAXhpWWrut50OChZ8o+HeePxsSrPI8mUQOQ==",
++ "version": "4.108.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.108.0",
++ "integrity": "sha512-NPzwjxpzGIpFpIm4uw3+VwHfsxbJ2+cD9yuhRzSwolSwqv2kCmwaVtHJ0DA9gKO3K8PCBfIP3UpKzpuSbYEJ+g==",
"license": "MIT",
"dependencies": {
"jsonwebtoken": "^9.0.0",
ddiff --git a/package.json b/package.json
iindex ca9de66..da7ed51 100644
---- a/package.json
++++ b/package.json
@@@ -26,7 +26,7 @@
"iovalkey": "^0.4.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.280.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.82.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.107.4",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.108.0",
"pg": "^8.23.0"
},
"engines": {
ddiff --git a/server/discovery.js b/server/discovery.js
iindex c316810..de73896 100644
---- a/server/discovery.js
++++ b/server/discovery.js
@@@ -79,7 +79,10 @@ function createDiscoveryRoutes({ config, releaseLastmod }) {
name: 'OpenVibe.Events',
summary: DESCRIPTION,
details: details({ siteUrl: config.siteUrl, apiUrl: config.baseUrl }),
-- sections: pages.map((s) => ({ title: s.title, links: s.links.map((l) => ({ title: l.title, url: l.url, ...(l.note ? { note: l.note } : {}) })) })),
++ markdown: true,
++ base: config.siteUrl,
++ sections: pages.filter((s) => s.title === 'Start here').map((s) => ({ title: s.title, links: s.links.map((l) => ({ title: l.title, url: l.url, ...(l.note ? { note: l.note } : {}) })) })),
++ optional: pages.filter((s) => s.title === 'Machine-readable').flatMap((s) => s.links.map((l) => ({ title: l.title, url: l.url, ...(l.note ? { note: l.note } : {}) }))),
})));
// /llms-full.txt: the same pages as /llms.txt, each with its full plain text (openvibe-shared/seo.llmsFull).
ddiff --git a/test/home.test.js b/test/home.test.js
iindex 7b3ba31..e44c553 100644
---- a/test/home.test.js
++++ b/test/home.test.js
@@@ -246,6 +246,8 @@ t('llms.txt is a plain-text map that starts with the site name', async () => {
assert.ok(r.body.includes("> The OpenVibe network's event bus"), 'the home summary');
assert.ok(r.body.includes('https://github.com/OpenVibers/OpenVibe.Events#readme'), 'the guide');
assert.ok(r.body.includes(`The API and the realtime gateway are at ${SITE}`), 'the discovery names the API origin');
++ assert.ok(r.body.includes('\n## Optional\n'), 'the optional section');
++ assert.ok(r.body.includes(`(${SITE}/index.md)`), 'the home link uses its markdown twin');
});
t('llms-full.txt is the same map in full text, starting with the site name', async () => {