openvibers/openvibe.food Commits

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

OP OpenVibers committed 10 days ago · fc3539ce62 · 7 files, +23 −21

* 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)

* llms.txt: the API stays a main section (AGT-5 review)

Changes

ddiff --git a/README.md b/README.md
iindex 8217bab..15c70fc 100644
---- a/README.md
++++ b/README.md
@@@ -282,6 +282,6 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by [
<!-- versions:start -->
- openvibe-contracts: v0.222.0
- openvibe-sdk: v0.82.0
--- openvibe-shared: v4.107.4
++- openvibe-shared: v4.108.0
- openvibe-publishing: v1.4.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex 81a1078..d9ec17c 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -9,11 +9,11 @@
"domain": "openvibe.food",
"contracts": "openvibe-contracts v0.222.0",
"sdk": "openvibe-sdk v0.82.0",
-- "shared": "openvibe-shared v4.107.4",
++ "shared": "openvibe-shared v4.108.0",
"packages": [
"openvibe-contracts v0.222.0",
"openvibe-sdk v0.82.0",
-- "openvibe-shared v4.107.4"
++ "openvibe-shared v4.108.0"
],
"summary": "OpenVibe.Food — What should we eat? Food near you (food banks, pantries and budget grocery stores from OpenStreetMap, paced and cached to stay inside the OSM usage policies), a deterministic meal planner with a shopping list and an estimated cost, a 42-item food database with nutrition per serving and per 100 g, and a pantry with a plain 'what can I make' against ten basic recipes. Server-rendered pages, an API at /api/v1, per-caller limits on the place search, and a test suite that never calls the internet.",
"works": [
ddiff --git a/package-lock.json b/package-lock.json
iindex e291a28..4da88e0 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -18,7 +18,7 @@
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.222.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.4.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": {
@@@ -1209,9 +1209,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 09f07e5..f9a346e 100644
---- a/package.json
++++ b/package.json
@@@ -25,7 +25,7 @@
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.222.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.4.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/http/discovery.js b/server/http/discovery.js
iindex 10a5653..0cb27c0 100644
---- a/server/http/discovery.js
++++ b/server/http/discovery.js
@@@ -86,6 +86,8 @@ function createDiscoveryRoutes(ctx) {
name: SITE_NAME,
summary: 'OpenVibe.Food: What should we eat? Find food banks and budget grocery stores near you, plan budget meals, and cook from what is in your cupboard.',
details: 'Every page is server-rendered and readable without JavaScript. Places come from OpenStreetMap © contributors (ODbL).',
++ markdown: true,
++ base: site,
sections: [
{ title: 'Start here', links: [
{ title: 'OpenVibe.Food', url: abs('/'), note: 'What should we eat?' },
@@@ -96,17 +98,15 @@ function createDiscoveryRoutes(ctx) {
{ title: 'Recipe library', url: abs('/recipes/library'), note: 'budget recipes written by OpenVibe.AI from the food list, each with what to buy and its typical cost; a recipe a person checked is marked so' },
{ title: 'What shipped on OpenVibe.Food', url: abs('/updates') },
] },
-- { title: 'Machine-readable', links: [
-- { title: 'Sitemap', url: abs('/sitemap.xml') },
-- { title: 'Full text for language models', url: abs('/llms-full.txt') },
-- { title: 'Release metadata (JSON)', url: abs('/release.json') },
-- { title: 'The API', url: abs('/api/v1/foods'), note: 'JSON: places, foods, plans, pantry' },
-- ] },
-- { title: 'Elsewhere', links: [
-- { title: 'OpenVibe.Network', url: 'https://openvibe.network', note: 'accounts, apps and grants' },
-- { title: 'OpenVibe.Services', url: 'https://openvibe.services', note: 'apps, keys and capability grants' },
-- { title: 'OpenStreetMap', url: 'https://www.openstreetmap.org/copyright', note: 'the place data, © contributors, ODbL' },
-- ] },
++ { title: 'API', links: [{ title: 'The API', url: abs('/api/v1/foods'), note: 'JSON: places, foods, plans, pantry' }] },
++ ],
++ optional: [
++ { title: 'Sitemap', url: abs('/sitemap.xml') },
++ { title: 'Full text for language models', url: abs('/llms-full.txt') },
++ { title: 'Release metadata (JSON)', url: abs('/release.json') },
++ { title: 'OpenVibe.Network', url: 'https://openvibe.network', note: 'accounts, apps and grants' },
++ { title: 'OpenVibe.Services', url: 'https://openvibe.services', note: 'apps, keys and capability grants' },
++ { title: 'OpenStreetMap', url: 'https://www.openstreetmap.org/copyright', note: 'the place data, © contributors, ODbL' },
],
}));
});
ddiff --git a/test/discovery.test.js b/test/discovery.test.js
iindex 92e19e0..30ceddd 100644
---- a/test/discovery.test.js
++++ b/test/discovery.test.js
@@@ -48,10 +48,12 @@ const PRIVATE = ['/auth/', '/api/'];
assert.match(r.headers.get('content-type'), /^text\/plain/);
assert.match(r.headers.get('cache-control') || '', /public, max-age=\d+/);
assert.ok(r.text.startsWith('# OpenVibe.Food'), 'no title');
-- assert.ok(r.text.includes('(https://openvibe.food/updates)'), 'no updates link');
++ assert.ok(r.text.includes('(https://openvibe.food/updates.md)'), 'no updates link');
assert.ok(r.text.includes('(https://openvibe.services)'), 'no pointer to the developer platform');
assert.ok(r.text.includes('https://openvibe.food/sitemap.xml'), 'sitemap not listed');
assert.ok(r.text.includes('(https://openvibe.food/llms-full.txt)'), 'llms-full.txt not listed');
++ assert.ok(r.text.includes('\n## Optional\n'), 'no optional section');
++ assert.ok(r.text.includes('(https://openvibe.food/index.md)'), 'no home markdown twin');
for (const p of ['/auth/']) assert.ok(!r.text.includes(`https://openvibe.food${p}`), `private path in llms.txt: ${p}`);
});
ddiff --git a/test/recalls.test.js b/test/recalls.test.js
iindex 9cae24c..b7d574e 100644
---- a/test/recalls.test.js
++++ b/test/recalls.test.js
@@@ -117,7 +117,7 @@ function feed(items) {
assert.ok(map.text.includes('https://openvibe.food/recalls</loc>'));
assert.ok(!map.text.includes('/recalls/F-'));
const llms = await t.get('/llms.txt');
-- assert.ok(llms.text.includes('https://openvibe.food/recalls'));
++ assert.ok(llms.text.includes('https://openvibe.food/recalls.md'));
});
} finally {
await t.close();