openvibers/openvibe.design Commits

openvibe-shared v4.163.0 (was v4.159.0) (#206)

OP OpenVibers committed 4 days ago · 6db9308be1 · 5 files, +11 −9

* openvibe-shared v4.163.0 (was v4.159.0)

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

* Folds find their heading with Shared's section icon (">Title</span></h2>" since 4.160.0)

Changes

ddiff --git a/README.md b/README.md
iindex 20df6fc..26794ec 100644
---- a/README.md
++++ b/README.md
@@@ -231,6 +231,6 @@ Part of the [OpenVibe network](https://openvibe.network). Built in the open by
<!-- versions:start -->
- openvibe-contracts: v0.338.0
- openvibe-sdk: v0.94.0
--- openvibe-shared: v4.159.0
++- openvibe-shared: v4.163.0
- openvibe-publishing: v1.5.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex 0266fa0..6ee2c28 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -10,12 +10,12 @@
"domain": "openvibe.design",
"contracts": "openvibe-contracts v0.338.0",
"sdk": "openvibe-sdk v0.94.0",
-- "shared": "openvibe-shared v4.159.0",
++ "shared": "openvibe-shared v4.163.0",
"packages": [
"openvibe-contracts v0.338.0",
"openvibe-publishing v1.5.0",
"openvibe-sdk v0.94.0",
-- "openvibe-shared v4.159.0"
++ "openvibe-shared v4.163.0"
],
"summary": "The service skeleton for openvibe.design: Network sign-in as OAuth client `design` (PKCE S256, httpOnly design_at/design_rt cookies) and a theme API proxy to OpenVibe.Network's /api/themes. The proxy serves the public catalogue (cached 5 minutes), one theme, the person's active theme and custom variables, saving a theme with source 'studio', its history and a restore by id, and a submission to the gallery. Writes need this site's own Origin; Network 4xx answers pass through and a Network failure is 502. The studio is designed: a gallery, previews on a Live channel, a Chat room and a shop's grid (with colour-vision views), a six-colour editor that derives the full token set, WCAG checks that gate Use, sharing to the gallery, and History with Restore. The Arena queues one prompt for three models through OpenVibe.AI (client credentials, ai.run.create), stores sanitized HTML with reported model/provider/cost/time/tokens, renders it only in sandboxed CSP-capped iframes, draws blind pairs, records one vote per person per round, and keeps Elo ratings per category plus median cost and time. The prompts, outputs and votes are an open JSONL dataset; rounds and votes follow ADR-033 export and deletion.",
"works": [
ddiff --git a/package-lock.json b/package-lock.json
iindex 9387277..48fe8a5 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -19,7 +19,7 @@
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.5.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
"pg": "^8.23.1",
"subset-font": "^2.9.0",
"wawoff2": "^2.0.1"
@@@ -1395,9 +1395,9 @@
}
},
"node_modules/openvibe-shared": {
-- "version": "4.159.0",
-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
-- "integrity": "sha512-dXIQtIqyMRotrZXp82lVBQjWqV07cSiepebKU7kzHU8mb+TQXFkY/EPMHRJwusl5Ujat0dYSdY3PuJtQ7r5bUQ==",
++ "version": "4.163.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
++ "integrity": "sha512-sQlvffOpQRrKS73GkptsSWebSQO5q2SFgUGolGFxH7Ix5NCTarPaD1VUAX6Qeru/mZaW99v+Nuu89rJ+rVaWfw==",
"license": "MIT",
"dependencies": {
"jsonwebtoken": "^9.0.0",
ddiff --git a/package.json b/package.json
iindex e0a69b4..44419b3 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.338.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.5.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
"pg": "^8.23.1",
"subset-font": "^2.9.0",
"wawoff2": "^2.0.1"
ddiff --git a/server/render/short.js b/server/render/short.js
iindex e600ed0..34c082a 100644
---- a/server/render/short.js
++++ b/server/render/short.js
@@@ -78,7 +78,9 @@ function foldScript(id) {
* fold. { start, end, html } — the section that holds the needle.
*/
function part(html, needle) {
-- const at = html.indexOf(needle);
++ // A heading reads ">Title</h2>", or ">Title</span></h2>" since openvibe-shared 4.160.0 put an icon tile beside it.
++ let at = html.indexOf(needle);
++ if (at < 0 && /<\/h2>$/.test(needle)) at = html.indexOf(needle.replace(/<\/h2>$/, '</span></h2>'));
if (at < 0) return null;
const start = html.lastIndexOf('<section', at);
const close = html.indexOf('</section>', at);