openvibers/openvibe.surf Commits
openvibe-shared v4.108.0 (was v4.107.4) (#74)
Changes
@@@ -260,5 +260,5 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by<!-- versions:start -->- openvibe-contracts: v0.232.0- openvibe-sdk: v0.82.0--- openvibe-shared: v4.107.4++- openvibe-shared: v4.108.0<!-- versions:end -->@@@ -10,11 +10,11 @@"domain": "openvibe.surf","contracts": "openvibe-contracts v0.232.0","sdk": "openvibe-sdk v0.82.0",-- "shared": "openvibe-shared v4.107.4",++ "shared": "openvibe-shared v4.108.0","packages": ["openvibe-contracts v0.232.0","openvibe-sdk v0.82.0",-- "openvibe-shared v4.107.4"++ "openvibe-shared v4.108.0"],"summary": "openvibe.surf, the Surf room: Network sign-in as OAuth client `surf`; Ride (OpenVibe.Games' surf maps, cached 60 s, embedded); Watch (a lean-back TV over OpenVibe.Live's live streams, clips and AI moments, clips and moments playing in the page over HLS) plus watch together (in-memory SSE parties); Web (Surf with Vibe: one OpenVibe.Actor task made with the person's own Network token). No database.","works": [@@@ -16,7 +16,7 @@"helmet": "^8.1.0","openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.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"},"engines": {"node": ">=22.0.0"@@@ -1103,9 +1103,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",@@@ -22,7 +22,7 @@"helmet": "^8.1.0","openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.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"},"engines": {"node": ">=22.0.0"@@@ -60,8 +60,11 @@ function createDiscoveryRoutes(ctx) {});// The site as llms.txt describes it, shared by /llms.txt and /llms-full.txt (SEO-33).++ // AGT-5: each of Surf's own pages is linked at its Markdown twin (markdown: true, base: the site origin).const llmsSite = () => ({name: SITE_NAME,++ markdown: true,++ base: site,summary: DESCRIPTION,details: 'The pages here are server-rendered and readable without JavaScript. Ride is a proxy to OpenVibe.Games, Watch merges OpenVibe.Live’s live, clip and moment feeds, and Web creates one OpenVibe.Actor task with the signed-in person’s own Network token.',sections: [@@@ -75,15 +78,17 @@ function createDiscoveryRoutes(ctx) {{ title: 'Machine-readable', links: [{ title: 'The Watch feed (JSON)', url: abs('/api/v1/watch/feed?topic=all'), note: 'public, cached 30 seconds' },{ title: 'The Ride maps (JSON)', url: abs('/api/v1/ride/maps'), note: 'public, cached 60 seconds' },-- { title: 'Sitemap', url: abs('/sitemap.xml') },-- { title: 'Release metadata (JSON)', url: abs('/release.json') },-- ] },-- { title: 'Elsewhere', links: [-- { title: 'OpenVibe.Live', url: 'https://openvibe.live', note: 'what Watch surfs' },-- { title: 'OpenVibe.Games', url: 'https://openvibe.games', note: 'what Ride plays' },-- { title: 'OpenVibe.Actor', url: 'https://openvibe.actor', note: 'who browses the web for Web' },] },],++ // llmstxt.org's "## Optional": what an agent may skip when it needs a shorter context.++ optional: [++ { title: 'Sitemap', url: abs('/sitemap.xml') },++ { title: 'Release metadata (JSON)', url: abs('/release.json') },++ { title: 'llms-full.txt', url: abs('/llms-full.txt'), note: 'the pages above in full, as plain text' },++ { title: 'OpenVibe.Live', url: 'https://openvibe.live', note: 'what Watch surfs' },++ { title: 'OpenVibe.Games', url: 'https://openvibe.games', note: 'what Ride plays' },++ { title: 'OpenVibe.Actor', url: 'https://openvibe.actor', note: 'who browses the web for Web' },++ ],});r.get('/llms.txt', async (_req, res) => {res.type('text/plain').set('Cache-Control', TEXT).send(seo.llmsTxt(llmsSite()));@@@ -46,6 +46,20 @@ const { boot, check, done } = require('./helpers/boot');assert.match(r.text, /https:\/\/openvibe\.live/);assert.match(r.text, /https:\/\/openvibe\.games/);assert.match(r.text, /https:\/\/openvibe\.actor/);++ // AGT-5: each of its own pages at the Markdown twin, an Optional section last.++ assert.match(r.text, /\[OpenVibe\.Surf\]\(https:\/\/openvibe\.surf\/index\.md\)/, 'the home is /index.md');++ assert.match(r.text, /\[Ride\]\(https:\/\/openvibe\.surf\/ride\.md\)/, 'a page is its twin');++ assert.match(r.text, /\[For developers\]\(https:\/\/openvibe\.surf\/developers\.md\)/);++ assert.match(r.text, /\[The Watch feed \(JSON\)\]\(https:\/\/openvibe\.surf\/api\/v1\/watch\/feed\?topic=all\)/, 'an API URL keeps its URL');++ assert.match(r.text, /\n## Optional\n/);++ assert.match(r.text, /\n## Optional\n\n[\s\S]*\[Sitemap\]\(https:\/\/openvibe\.surf\/sitemap\.xml\)/);++ assert.strictEqual(r.text.lastIndexOf('\n## '), r.text.indexOf('\n## Optional'), 'Optional is the last section');++ const own = [...r.text.matchAll(/\]\((https:\/\/openvibe\.surf[^)\s]*)\)( \(HTML\))?/g)];++ assert.ok(own.length > 8, String(own.length));++ for (const [, url, html] of own) {++ const p = new URL(url).pathname;++ assert.ok(p.endsWith('.md') || /\.[a-z0-9]+$/.test(p) || p.startsWith('/api/') || html, `${url} is a twin, a file or marked (HTML)`);++ }});await t.close();
@@ -260,5 +260,5 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by
@@ -260,5 +260,5 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by
<!-- versions:start -->
<!-- versions:start -->
- openvibe-contracts: v0.232.0
- openvibe-contracts: v0.232.0
- openvibe-sdk: v0.82.0
- openvibe-sdk: v0.82.0
-- openvibe-shared: v4.107.4
+- openvibe-shared: v4.108.0
<!-- versions:end -->
<!-- versions:end -->
@@ -10,11 +10,11 @@
@@ -10,11 +10,11 @@
"domain": "openvibe.surf",
"domain": "openvibe.surf",
"contracts": "openvibe-contracts v0.232.0",
"contracts": "openvibe-contracts v0.232.0",
"sdk": "openvibe-sdk v0.82.0",
"sdk": "openvibe-sdk v0.82.0",
- "shared": "openvibe-shared v4.107.4",
+ "shared": "openvibe-shared v4.108.0",
"packages": [
"packages": [
"openvibe-contracts v0.232.0",
"openvibe-contracts v0.232.0",
"openvibe-sdk v0.82.0",
"openvibe-sdk v0.82.0",
- "openvibe-shared v4.107.4"
+ "openvibe-shared v4.108.0"
],
],
"summary": "openvibe.surf, the Surf room: Network sign-in as OAuth client `surf`; Ride (OpenVibe.Games' surf maps, cached 60 s, embedded); Watch (a lean-back TV over OpenVibe.Live's live streams, clips and AI moments, clips and moments playing in the page over HLS) plus watch together (in-memory SSE parties); Web (Surf with Vibe: one OpenVibe.Actor task made with the person's own Network token). No database.",
"summary": "openvibe.surf, the Surf room: Network sign-in as OAuth client `surf`; Ride (OpenVibe.Games' surf maps, cached 60 s, embedded); Watch (a lean-back TV over OpenVibe.Live's live streams, clips and AI moments, clips and moments playing in the page over HLS) plus watch together (in-memory SSE parties); Web (Surf with Vibe: one OpenVibe.Actor task made with the person's own Network token). No database.",
"works": [
"works": [
@@ -16,7 +16,7 @@
@@ -16,7 +16,7 @@
"helmet": "^8.1.0",
"helmet": "^8.1.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.82.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"
},
},
"engines": {
"engines": {
"node": ">=22.0.0"
"node": ">=22.0.0"
@@ -1103,9 +1103,9 @@
@@ -1103,9 +1103,9 @@
}
}
},
},
"node_modules/openvibe-shared": {
"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",
"license": "MIT",
"dependencies": {
"dependencies": {
"jsonwebtoken": "^9.0.0",
"jsonwebtoken": "^9.0.0",
@@ -22,7 +22,7 @@
@@ -22,7 +22,7 @@
"helmet": "^8.1.0",
"helmet": "^8.1.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.232.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.82.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"
},
},
"engines": {
"engines": {
"node": ">=22.0.0"
"node": ">=22.0.0"
@@ -60,8 +60,11 @@ function createDiscoveryRoutes(ctx) {
@@ -60,8 +60,11 @@ function createDiscoveryRoutes(ctx) {
});
});
// The site as llms.txt describes it, shared by /llms.txt and /llms-full.txt (SEO-33).
// The site as llms.txt describes it, shared by /llms.txt and /llms-full.txt (SEO-33).
+ // AGT-5: each of Surf's own pages is linked at its Markdown twin (markdown: true, base: the site origin).
const llmsSite = () => ({
const llmsSite = () => ({
name: SITE_NAME,
name: SITE_NAME,
+ markdown: true,
+ base: site,
summary: DESCRIPTION,
summary: DESCRIPTION,
details: 'The pages here are server-rendered and readable without JavaScript. Ride is a proxy to OpenVibe.Games, Watch merges OpenVibe.Live’s live, clip and moment feeds, and Web creates one OpenVibe.Actor task with the signed-in person’s own Network token.',
details: 'The pages here are server-rendered and readable without JavaScript. Ride is a proxy to OpenVibe.Games, Watch merges OpenVibe.Live’s live, clip and moment feeds, and Web creates one OpenVibe.Actor task with the signed-in person’s own Network token.',
sections: [
sections: [
@@ -75,15 +78,17 @@ function createDiscoveryRoutes(ctx) {
@@ -75,15 +78,17 @@ function createDiscoveryRoutes(ctx) {
{ title: 'Machine-readable', links: [
{ title: 'Machine-readable', links: [
{ title: 'The Watch feed (JSON)', url: abs('/api/v1/watch/feed?topic=all'), note: 'public, cached 30 seconds' },
{ title: 'The Watch feed (JSON)', url: abs('/api/v1/watch/feed?topic=all'), note: 'public, cached 30 seconds' },
{ title: 'The Ride maps (JSON)', url: abs('/api/v1/ride/maps'), note: 'public, cached 60 seconds' },
{ title: 'The Ride maps (JSON)', url: abs('/api/v1/ride/maps'), note: 'public, cached 60 seconds' },
- { title: 'Sitemap', url: abs('/sitemap.xml') },
- { title: 'Release metadata (JSON)', url: abs('/release.json') },
- ] },
- { title: 'Elsewhere', links: [
- { title: 'OpenVibe.Live', url: 'https://openvibe.live', note: 'what Watch surfs' },
- { title: 'OpenVibe.Games', url: 'https://openvibe.games', note: 'what Ride plays' },
- { title: 'OpenVibe.Actor', url: 'https://openvibe.actor', note: 'who browses the web for Web' },
] },
] },
],
],
+ // llmstxt.org's "## Optional": what an agent may skip when it needs a shorter context.
+ optional: [
+ { title: 'Sitemap', url: abs('/sitemap.xml') },
+ { title: 'Release metadata (JSON)', url: abs('/release.json') },
+ { title: 'llms-full.txt', url: abs('/llms-full.txt'), note: 'the pages above in full, as plain text' },
+ { title: 'OpenVibe.Live', url: 'https://openvibe.live', note: 'what Watch surfs' },
+ { title: 'OpenVibe.Games', url: 'https://openvibe.games', note: 'what Ride plays' },
+ { title: 'OpenVibe.Actor', url: 'https://openvibe.actor', note: 'who browses the web for Web' },
+ ],
});
});
r.get('/llms.txt', async (_req, res) => {
r.get('/llms.txt', async (_req, res) => {
res.type('text/plain').set('Cache-Control', TEXT).send(seo.llmsTxt(llmsSite()));
res.type('text/plain').set('Cache-Control', TEXT).send(seo.llmsTxt(llmsSite()));
@@ -46,6 +46,20 @@ const { boot, check, done } = require('./helpers/boot');
@@ -46,6 +46,20 @@ const { boot, check, done } = require('./helpers/boot');
assert.match(r.text, /https:\/\/openvibe\.live/);
assert.match(r.text, /https:\/\/openvibe\.live/);
assert.match(r.text, /https:\/\/openvibe\.games/);
assert.match(r.text, /https:\/\/openvibe\.games/);
assert.match(r.text, /https:\/\/openvibe\.actor/);
assert.match(r.text, /https:\/\/openvibe\.actor/);
+ // AGT-5: each of its own pages at the Markdown twin, an Optional section last.
+ assert.match(r.text, /\[OpenVibe\.Surf\]\(https:\/\/openvibe\.surf\/index\.md\)/, 'the home is /index.md');
+ assert.match(r.text, /\[Ride\]\(https:\/\/openvibe\.surf\/ride\.md\)/, 'a page is its twin');
+ assert.match(r.text, /\[For developers\]\(https:\/\/openvibe\.surf\/developers\.md\)/);
+ assert.match(r.text, /\[The Watch feed \(JSON\)\]\(https:\/\/openvibe\.surf\/api\/v1\/watch\/feed\?topic=all\)/, 'an API URL keeps its URL');
+ assert.match(r.text, /\n## Optional\n/);
+ assert.match(r.text, /\n## Optional\n\n[\s\S]*\[Sitemap\]\(https:\/\/openvibe\.surf\/sitemap\.xml\)/);
+ assert.strictEqual(r.text.lastIndexOf('\n## '), r.text.indexOf('\n## Optional'), 'Optional is the last section');
+ const own = [...r.text.matchAll(/\]\((https:\/\/openvibe\.surf[^)\s]*)\)( \(HTML\))?/g)];
+ assert.ok(own.length > 8, String(own.length));
+ for (const [, url, html] of own) {
+ const p = new URL(url).pathname;
+ assert.ok(p.endsWith('.md') || /\.[a-z0-9]+$/.test(p) || p.startsWith('/api/') || html, `${url} is a twin, a file or marked (HTML)`);
+ }
});
});
await t.close();
await t.close();