openvibers/openvibe.food Commits
openvibe-shared v4.108.0 (was v4.107.4) (#208)
Changes
@@@ -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 -->@@@ -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": [@@@ -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",@@@ -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": {@@@ -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' },],}));});@@@ -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}`);});@@@ -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();
@@ -282,6 +282,6 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by [
@@ -282,6 +282,6 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by [
<!-- versions:start -->
<!-- versions:start -->
- openvibe-contracts: v0.222.0
- openvibe-contracts: v0.222.0
- openvibe-sdk: v0.82.0
- openvibe-sdk: v0.82.0
-- openvibe-shared: v4.107.4
+- openvibe-shared: v4.108.0
- openvibe-publishing: v1.4.0
- openvibe-publishing: v1.4.0
<!-- versions:end -->
<!-- versions:end -->
@@ -9,11 +9,11 @@
@@ -9,11 +9,11 @@
"domain": "openvibe.food",
"domain": "openvibe.food",
"contracts": "openvibe-contracts v0.222.0",
"contracts": "openvibe-contracts v0.222.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.222.0",
"openvibe-contracts v0.222.0",
"openvibe-sdk v0.82.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.",
"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": [
"works": [
@@ -18,7 +18,7 @@
@@ -18,7 +18,7 @@
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.222.0",
"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-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-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"
"pg": "^8.23.0"
},
},
"devDependencies": {
"devDependencies": {
@@ -1209,9 +1209,9 @@
@@ -1209,9 +1209,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",
@@ -25,7 +25,7 @@
@@ -25,7 +25,7 @@
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.222.0",
"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-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-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"
"pg": "^8.23.0"
},
},
"engines": {
"engines": {
@@ -86,6 +86,8 @@ function createDiscoveryRoutes(ctx) {
@@ -86,6 +86,8 @@ function createDiscoveryRoutes(ctx) {
name: SITE_NAME,
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.',
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).',
details: 'Every page is server-rendered and readable without JavaScript. Places come from OpenStreetMap © contributors (ODbL).',
+ markdown: true,
+ base: site,
sections: [
sections: [
{ title: 'Start here', links: [
{ title: 'Start here', links: [
{ title: 'OpenVibe.Food', url: abs('/'), note: 'What should we eat?' },
{ title: 'OpenVibe.Food', url: abs('/'), note: 'What should we eat?' },
@@ -96,17 +98,15 @@ function createDiscoveryRoutes(ctx) {
@@ -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: '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: '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' },
],
],
}));
}));
});
});
@@ -48,10 +48,12 @@ const PRIVATE = ['/auth/', '/api/'];
@@ -48,10 +48,12 @@ const PRIVATE = ['/auth/', '/api/'];
assert.match(r.headers.get('content-type'), /^text\/plain/);
assert.match(r.headers.get('content-type'), /^text\/plain/);
assert.match(r.headers.get('cache-control') || '', /public, max-age=\d+/);
assert.match(r.headers.get('cache-control') || '', /public, max-age=\d+/);
assert.ok(r.text.startsWith('# OpenVibe.Food'), 'no title');
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.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/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('(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}`);
for (const p of ['/auth/']) assert.ok(!r.text.includes(`https://openvibe.food${p}`), `private path in llms.txt: ${p}`);
});
});
@@ -117,7 +117,7 @@ function feed(items) {
@@ -117,7 +117,7 @@ function feed(items) {
assert.ok(map.text.includes('https://openvibe.food/recalls</loc>'));
assert.ok(map.text.includes('https://openvibe.food/recalls</loc>'));
assert.ok(!map.text.includes('/recalls/F-'));
assert.ok(!map.text.includes('/recalls/F-'));
const llms = await t.get('/llms.txt');
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 {
} finally {
await t.close();
await t.close();