openvibers/openvibe.sdk Commits
openvibe-sdk 0.80.0: explicit gates sex acts and porn (and a child with nudity); nudity alone is art (#110)
Changes
@@@ -1,5 +1,15 @@# Changelog++## 0.80.0 (2026-11-01)++++- **`openvibe-sdk/explicit`: nudity is art.** The owner, 2026-10-31: "naked and nude is fine… stop being against art on++ my platform." `isExplicit()` now gates what OpenVibe.Live's own rule gates (Live#469), word for word.++ - **Still gated:** sex acts and pornography (sexual acts or activity, having sex, porn, masturbation, intercourse,++ oral sex, penetration, pornographic or sexually explicit content), and any text that puts a child and nudity++ together.++ - **No longer gated:** nudity and body words on their own. A nude figure-drawing class publishes; "a child is shown++ naked" never does.++## 0.79.0 (2026-10-31)- **`openvibe-sdk/machines`: the network's machines hub** (plan L34, step M2; Contracts 0.258.0). A person's machines@@@ -2,16 +2,16 @@> Supported browser and server clients for the OpenVibe platform.--**Status:** alpha, v0.79.0 (roadmap Wave 2; developer apps from Wave 20; Media objects v2 from Wave 4; the Tools platform API; Search, Chat, AI, Vision and consent clients; sign-in with recovery and a client health check). Every release is tagged (see [CHANGELOG.md](CHANGELOG.md)). Tested against local stub servers and the built-in mock platform only, never against the live platform. Services pin release tags; each repository's `STATUS.json` names the one it uses.++**Status:** alpha, v0.80.0 (roadmap Wave 2; developer apps from Wave 20; Media objects v2 from Wave 4; the Tools platform API; Search, Chat, AI, Vision and consent clients; sign-in with recovery and a client health check). Every release is tagged (see [CHANGELOG.md](CHANGELOG.md)). Tested against local stub servers and the built-in mock platform only, never against the live platform. Services pin release tags; each repository's `STATUS.json` names the one it uses.**Plan:** OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30.**License:** MIT ([LICENSE](LICENSE)). This package is a library that apps outside the network embed, so it uses MIT. The OpenVibe services themselves stay AGPL-3.0.**If a capability is not in the SDK, it is not public.** Apps call services through `openvibe-sdk` and never build internal routes themselves. A route with no SDK wrapper is internal, even when you can reach it, and it can change without notice. To make a capability public, first define it in OpenVibe.Contracts, then wrap it here.--After v0.79.0 is tagged:++After v0.80.0 is tagged:```bash--npm install https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.79.0++npm install https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.80.0```It has no runtime dependencies. It needs Node ≥ 20, or any browser with `fetch`, Web Crypto and `TextDecoder`. There is no build step. The package is CommonJS with ESM entry points (`import` works). Each subpath has its own `.d.ts`. For a page with no bundler, `browser/openvibe-sdk.mjs` is one self-contained ES module of the browser-safe subpaths (see [Browser without a bundler](#browser-without-a-bundler)). It does not depend on `openvibe-contracts` at runtime: it copies the contract types it uses (from Contracts v0.86.0, a devDependency the tests check them against).@@@ -3,7 +3,7 @@"stage": "alpha","code": true,"wave": "W2",-- "version": "0.79.0",++ "version": "0.80.0","plan": "OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30","deployed": false,"deployment": "none: a package released as git tags; services and apps pin a tag",@@@ -1,4 +1,4 @@--// Generated by scripts/browser-bundle.js from browser.js (openvibe-sdk 0.79.0, MIT). Do not edit.++// Generated by scripts/browser-bundle.js from browser.js (openvibe-sdk 0.80.0, MIT). Do not edit.// One self-contained ES module: core at the top level plus the browser-safe subpaths as namespaces// (auth, registry, modules, realtime, media, community, bot, search, bench, vision, themes, redact, chat, ai, jobs, tools, projects, geo). No server-only code: no service tokens, JWT verification, events, identity./* eslint-disable */@@@ -46,7 +46,7 @@ const { paginate, offsetPager } = __load(7);const semver = __load(6);/** The package version (test/version.test.js keeps it equal to package.json). */--const SDK_VERSION = '0.79.0';++const SDK_VERSION = '0.80.0';module.exports = {createClient,@@@ -1,12 +1,12 @@{"name": "openvibe-sdk",-- "version": "0.79.0",++ "version": "0.80.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "openvibe-sdk",-- "version": "0.79.0",++ "version": "0.80.0","license": "MIT","bin": {"openvibe-download": "bin/openvibe-download.js"@@@ -1,6 +1,6 @@{"name": "openvibe-sdk",-- "version": "0.79.0",++ "version": "0.80.0","description": "Supported browser and server clients for the OpenVibe platform: auth (incl. developer apps), registry discovery, identity, user modules, events, realtime, media, community, Bot robots, search, chat, AI runs, Tools (registry, run API and jobs), VIP memberships and developer projects, the async PostgreSQL data layer (db) and the Valkey cache, limits store, queue and pub/sub, with deadlines, safe retries, problem errors and trace propagation.","main": "index.js","types": "types/index.d.ts",@@@ -8,7 +8,7 @@ const { paginate, offsetPager } = require('./paginate');const semver = require('./semver');/** The package version (test/version.test.js keeps it equal to package.json). */--const SDK_VERSION = '0.79.0';++const SDK_VERSION = '0.80.0';module.exports = {createClient,@@@ -1,16 +1,28 @@'use strict';/**-- * openvibe-sdk/explicit: AI text that says a scene shows sexual content (body parts, sex acts, pornography, nudity) is-- * not published at all — a moment, clip or paste whose description says so stays private. This is not about how-- * anyone looks (describing people is fine, owner 2026-10-31); it is about what a public page shows.++ * openvibe-sdk/explicit: AI text that says a scene shows sex acts or pornography is not published at all — a moment,++ * clip or paste whose description says so stays private. Describing people is fine, and so is nudity: the owner,++ * 2026-10-31, "naked and nude is fine… stop being against art on my platform". What stays gated is sex itself, and the++ * hard line that nudity being art never moves: a child and a bare body in the same text.** isExplicit(title, overview) // from openvibe-sdk/explicit++ *++ * The same rule as OpenVibe.Live's server/ai/explicit.js (Live#469), so every service that adopts this one agrees.*/--// What a scene shows: a service asks isExplicit() before it publishes AI text at all. Live's AI auto-clip 483 went public--// with such a description on 2026-10-23 (Live#344 had its own copy first).--const EXPLICIT = /\b(?:genital(?:s|ia)?|penis(?:es)?|vaginas?|vulvas?|sexual(?:ly)?\s+(?:acts?|activity|content|material|explicit|intercourse)|sex\s+acts?|(?:explicit|adult|pornographic|sexual)\s+(?:content|material|footage|scenes?|imagery|videos?|acts?)|porn(?:o|ography|ographic)?|masturbat\w*|intercourse|nudity|erotica?)\b/i;++// What a scene shows, not what someone talks about in passing: sex acts and pornography. Nudity and body words are not++// in it (a nude body is not a sex act). Live's AI auto-clip 483 went public with "explicit adult content… sexual acts"++// in its description on 2026-10-23.++const EXPLICIT = /\b(?:sexual(?:ly)?\s+(?:acts?|activity|intercourse)|sex\s+acts?|having\s+sex|(?:pornographic|sexually\s+explicit|explicit\s+adult)\s+(?:content|material|footage|scenes?|imagery|videos?|acts?)|adult\s+(?:films?|videos?)|porn(?:o|ography|ographic)?|masturbat\w*|intercourse|oral\s+sex|penetrat\w*)\b/i;++++// A child together with nudity or genitals is treated as explicit, whatever else the text says ("kids in swimsuits at++// the beach" is not this): the moment is never picked, and an AI clip of it goes private for a person to review.++const MINOR = /\b(?:child(?:ren)?|kids?|minors?|teen(?:age(?:rs?)?|s)?|toddlers?|bab(?:y|ies)|infants?|boys?|girls?|underage)\b/i;++const NUDE = /\b(?:naked|nude|nudity|undress(?:ed|ing)?|topless|bottomless|genital(?:s|ia)?|penis(?:es)?|vaginas?|vulvas?|breasts?|nipples?)\b/i;++const minorNude = (t) => MINOR.test(t) && NUDE.test(t);++++/** True when any of the texts describes sex acts or pornography, or puts a child and nudity together. */function isExplicit(...texts) {-- return texts.some((t) => t != null && EXPLICIT.test(String(t)));++ return texts.some((t) => t != null && (EXPLICIT.test(String(t)) || minorNude(String(t))));}module.exports = { isExplicit };@@@ -17,12 +17,17 @@ assert.strictEqual(RULES_VERSION, 'off');// isExplicit: what a scene shows (Live's clip 483 on 2026-10-23, word for word), from either module.assert.strictEqual(isExplicit, explicit.isExplicit, 'one function, re-exported');++// The owner, 2026-10-31: nudity is art; sex acts and porn stay gated, and a child with nudity always is.for (const t of [-- 'A naked man lying on their back with legs spread, reaching toward their genitals','The video shows the streamer engaging in explicit adult content, with close-up footage of sexual acts on a couch',-- 'Pornographic footage plays on the second monitor', 'The scene contains nudity', 'masturbating on camera',++ 'Pornographic footage plays on the second monitor', 'masturbating on camera', 'They are having sex on stream',++ 'A child is shown naked', 'Teens undressing in a locker room',]) assert.ok(isExplicit(t), `explicit: ${t}`);--for (const t of ['A player in Fortnite is sprinting along a pink-purple sunset map', 'They read the news from Essex', 'A sextant and a map', 'A shirtless man sits', '', null, undefined]) {++for (const t of [++ 'A player in Fortnite is sprinting along a pink-purple sunset map', 'They read the news from Essex', 'A sextant and a map',++ 'A shirtless man sits', 'A nude figure drawing class, the model posing by the window', 'The scene contains nudity',++ 'A naked man lying on his back in the sun', 'Kids in swimsuits at the beach', '', null, undefined,++]) {assert.ok(!isExplicit(t), `not explicit: ${t}`);}assert.ok(isExplicit('a fine title', null, 'the frame shows sexual activity'), 'any of several texts');@@@ -68,7 +68,7 @@ run([})().catch((err) => { console.error(err); process.exit(1); });`;const res = execFileSync(process.execPath, ['-e', script], { cwd: app, encoding: 'utf8' });assert.match(res, new RegExp(`consumer ok: ${subpaths.length} subpaths \\+ the browser bundle`));-- assert.equal(subpaths.length, 74); // 0.79.0 adds openvibe-sdk/machines++ assert.equal(subpaths.length, 74); // 0.80.0 adds openvibe-sdk/machinesassert.ok(!fs.existsSync(path.join(app, 'node_modules/openvibe-contracts')), 'the optional peer is not installed');} finally {fs.rmSync(tmp, { recursive: true, force: true });@@@ -1,2 +1,2 @@--/** True when any of the texts says a scene shows sexual content (body parts, sex acts, pornography, nudity): publish none of it. */++/** True when any of the texts describes sex acts or pornography, or puts a child and nudity together: publish none of it. Nudity alone is not explicit. */export function isExplicit(...texts: unknown[]): boolean;
@@ -1,5 +1,15 @@
@@ -1,5 +1,15 @@
# Changelog
# Changelog
+## 0.80.0 (2026-11-01)
+
+- **`openvibe-sdk/explicit`: nudity is art.** The owner, 2026-10-31: "naked and nude is fine… stop being against art on
+ my platform." `isExplicit()` now gates what OpenVibe.Live's own rule gates (Live#469), word for word.
+ - **Still gated:** sex acts and pornography (sexual acts or activity, having sex, porn, masturbation, intercourse,
+ oral sex, penetration, pornographic or sexually explicit content), and any text that puts a child and nudity
+ together.
+ - **No longer gated:** nudity and body words on their own. A nude figure-drawing class publishes; "a child is shown
+ naked" never does.
+
## 0.79.0 (2026-10-31)
## 0.79.0 (2026-10-31)
- **`openvibe-sdk/machines`: the network's machines hub** (plan L34, step M2; Contracts 0.258.0). A person's machines
- **`openvibe-sdk/machines`: the network's machines hub** (plan L34, step M2; Contracts 0.258.0). A person's machines
@@ -2,16 +2,16 @@
@@ -2,16 +2,16 @@
> Supported browser and server clients for the OpenVibe platform.
> Supported browser and server clients for the OpenVibe platform.
-**Status:** alpha, v0.79.0 (roadmap Wave 2; developer apps from Wave 20; Media objects v2 from Wave 4; the Tools platform API; Search, Chat, AI, Vision and consent clients; sign-in with recovery and a client health check). Every release is tagged (see [CHANGELOG.md](CHANGELOG.md)). Tested against local stub servers and the built-in mock platform only, never against the live platform. Services pin release tags; each repository's `STATUS.json` names the one it uses.
+**Status:** alpha, v0.80.0 (roadmap Wave 2; developer apps from Wave 20; Media objects v2 from Wave 4; the Tools platform API; Search, Chat, AI, Vision and consent clients; sign-in with recovery and a client health check). Every release is tagged (see [CHANGELOG.md](CHANGELOG.md)). Tested against local stub servers and the built-in mock platform only, never against the live platform. Services pin release tags; each repository's `STATUS.json` names the one it uses.
**Plan:** OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30.
**Plan:** OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30.
**License:** MIT ([LICENSE](LICENSE)). This package is a library that apps outside the network embed, so it uses MIT. The OpenVibe services themselves stay AGPL-3.0.
**License:** MIT ([LICENSE](LICENSE)). This package is a library that apps outside the network embed, so it uses MIT. The OpenVibe services themselves stay AGPL-3.0.
**If a capability is not in the SDK, it is not public.** Apps call services through `openvibe-sdk` and never build internal routes themselves. A route with no SDK wrapper is internal, even when you can reach it, and it can change without notice. To make a capability public, first define it in OpenVibe.Contracts, then wrap it here.
**If a capability is not in the SDK, it is not public.** Apps call services through `openvibe-sdk` and never build internal routes themselves. A route with no SDK wrapper is internal, even when you can reach it, and it can change without notice. To make a capability public, first define it in OpenVibe.Contracts, then wrap it here.
-After v0.79.0 is tagged:
+After v0.80.0 is tagged:
```bash
```bash
-npm install https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.79.0
+npm install https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.80.0
```
```
It has no runtime dependencies. It needs Node ≥ 20, or any browser with `fetch`, Web Crypto and `TextDecoder`. There is no build step. The package is CommonJS with ESM entry points (`import` works). Each subpath has its own `.d.ts`. For a page with no bundler, `browser/openvibe-sdk.mjs` is one self-contained ES module of the browser-safe subpaths (see [Browser without a bundler](#browser-without-a-bundler)). It does not depend on `openvibe-contracts` at runtime: it copies the contract types it uses (from Contracts v0.86.0, a devDependency the tests check them against).
It has no runtime dependencies. It needs Node ≥ 20, or any browser with `fetch`, Web Crypto and `TextDecoder`. There is no build step. The package is CommonJS with ESM entry points (`import` works). Each subpath has its own `.d.ts`. For a page with no bundler, `browser/openvibe-sdk.mjs` is one self-contained ES module of the browser-safe subpaths (see [Browser without a bundler](#browser-without-a-bundler)). It does not depend on `openvibe-contracts` at runtime: it copies the contract types it uses (from Contracts v0.86.0, a devDependency the tests check them against).
@@ -3,7 +3,7 @@
@@ -3,7 +3,7 @@
"stage": "alpha",
"stage": "alpha",
"code": true,
"code": true,
"wave": "W2",
"wave": "W2",
- "version": "0.79.0",
+ "version": "0.80.0",
"plan": "OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30",
"plan": "OpenVibe End-to-End Realignment & Implementation Plan, revision 3 (20 Sep 2026), §3.2; roadmap §30",
"deployed": false,
"deployed": false,
"deployment": "none: a package released as git tags; services and apps pin a tag",
"deployment": "none: a package released as git tags; services and apps pin a tag",
@@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
-// Generated by scripts/browser-bundle.js from browser.js (openvibe-sdk 0.79.0, MIT). Do not edit.
+// Generated by scripts/browser-bundle.js from browser.js (openvibe-sdk 0.80.0, MIT). Do not edit.
// One self-contained ES module: core at the top level plus the browser-safe subpaths as namespaces
// One self-contained ES module: core at the top level plus the browser-safe subpaths as namespaces
// (auth, registry, modules, realtime, media, community, bot, search, bench, vision, themes, redact, chat, ai, jobs, tools, projects, geo). No server-only code: no service tokens, JWT verification, events, identity.
// (auth, registry, modules, realtime, media, community, bot, search, bench, vision, themes, redact, chat, ai, jobs, tools, projects, geo). No server-only code: no service tokens, JWT verification, events, identity.
/* eslint-disable */
/* eslint-disable */
@@ -46,7 +46,7 @@ const { paginate, offsetPager } = __load(7);
@@ -46,7 +46,7 @@ const { paginate, offsetPager } = __load(7);
const semver = __load(6);
const semver = __load(6);
/** The package version (test/version.test.js keeps it equal to package.json). */
/** The package version (test/version.test.js keeps it equal to package.json). */
-const SDK_VERSION = '0.79.0';
+const SDK_VERSION = '0.80.0';
module.exports = {
module.exports = {
createClient,
createClient,
@@ -1,12 +1,12 @@
@@ -1,12 +1,12 @@
{
{
"name": "openvibe-sdk",
"name": "openvibe-sdk",
- "version": "0.79.0",
+ "version": "0.80.0",
"lockfileVersion": 3,
"lockfileVersion": 3,
"requires": true,
"requires": true,
"packages": {
"packages": {
"": {
"": {
"name": "openvibe-sdk",
"name": "openvibe-sdk",
- "version": "0.79.0",
+ "version": "0.80.0",
"license": "MIT",
"license": "MIT",
"bin": {
"bin": {
"openvibe-download": "bin/openvibe-download.js"
"openvibe-download": "bin/openvibe-download.js"
@@ -1,6 +1,6 @@
@@ -1,6 +1,6 @@
{
{
"name": "openvibe-sdk",
"name": "openvibe-sdk",
- "version": "0.79.0",
+ "version": "0.80.0",
"description": "Supported browser and server clients for the OpenVibe platform: auth (incl. developer apps), registry discovery, identity, user modules, events, realtime, media, community, Bot robots, search, chat, AI runs, Tools (registry, run API and jobs), VIP memberships and developer projects, the async PostgreSQL data layer (db) and the Valkey cache, limits store, queue and pub/sub, with deadlines, safe retries, problem errors and trace propagation.",
"description": "Supported browser and server clients for the OpenVibe platform: auth (incl. developer apps), registry discovery, identity, user modules, events, realtime, media, community, Bot robots, search, chat, AI runs, Tools (registry, run API and jobs), VIP memberships and developer projects, the async PostgreSQL data layer (db) and the Valkey cache, limits store, queue and pub/sub, with deadlines, safe retries, problem errors and trace propagation.",
"main": "index.js",
"main": "index.js",
"types": "types/index.d.ts",
"types": "types/index.d.ts",
@@ -8,7 +8,7 @@ const { paginate, offsetPager } = require('./paginate');
@@ -8,7 +8,7 @@ const { paginate, offsetPager } = require('./paginate');
const semver = require('./semver');
const semver = require('./semver');
/** The package version (test/version.test.js keeps it equal to package.json). */
/** The package version (test/version.test.js keeps it equal to package.json). */
-const SDK_VERSION = '0.79.0';
+const SDK_VERSION = '0.80.0';
module.exports = {
module.exports = {
createClient,
createClient,
@@ -1,16 +1,28 @@
@@ -1,16 +1,28 @@
'use strict';
'use strict';
/**
/**
- * openvibe-sdk/explicit: AI text that says a scene shows sexual content (body parts, sex acts, pornography, nudity) is
- * not published at all — a moment, clip or paste whose description says so stays private. This is not about how
- * anyone looks (describing people is fine, owner 2026-10-31); it is about what a public page shows.
+ * openvibe-sdk/explicit: AI text that says a scene shows sex acts or pornography is not published at all — a moment,
+ * clip or paste whose description says so stays private. Describing people is fine, and so is nudity: the owner,
+ * 2026-10-31, "naked and nude is fine… stop being against art on my platform". What stays gated is sex itself, and the
+ * hard line that nudity being art never moves: a child and a bare body in the same text.
*
*
* isExplicit(title, overview) // from openvibe-sdk/explicit
* isExplicit(title, overview) // from openvibe-sdk/explicit
+ *
+ * The same rule as OpenVibe.Live's server/ai/explicit.js (Live#469), so every service that adopts this one agrees.
*/
*/
-// What a scene shows: a service asks isExplicit() before it publishes AI text at all. Live's AI auto-clip 483 went public
-// with such a description on 2026-10-23 (Live#344 had its own copy first).
-const EXPLICIT = /\b(?:genital(?:s|ia)?|penis(?:es)?|vaginas?|vulvas?|sexual(?:ly)?\s+(?:acts?|activity|content|material|explicit|intercourse)|sex\s+acts?|(?:explicit|adult|pornographic|sexual)\s+(?:content|material|footage|scenes?|imagery|videos?|acts?)|porn(?:o|ography|ographic)?|masturbat\w*|intercourse|nudity|erotica?)\b/i;
+// What a scene shows, not what someone talks about in passing: sex acts and pornography. Nudity and body words are not
+// in it (a nude body is not a sex act). Live's AI auto-clip 483 went public with "explicit adult content… sexual acts"
+// in its description on 2026-10-23.
+const EXPLICIT = /\b(?:sexual(?:ly)?\s+(?:acts?|activity|intercourse)|sex\s+acts?|having\s+sex|(?:pornographic|sexually\s+explicit|explicit\s+adult)\s+(?:content|material|footage|scenes?|imagery|videos?|acts?)|adult\s+(?:films?|videos?)|porn(?:o|ography|ographic)?|masturbat\w*|intercourse|oral\s+sex|penetrat\w*)\b/i;
+
+// A child together with nudity or genitals is treated as explicit, whatever else the text says ("kids in swimsuits at
+// the beach" is not this): the moment is never picked, and an AI clip of it goes private for a person to review.
+const MINOR = /\b(?:child(?:ren)?|kids?|minors?|teen(?:age(?:rs?)?|s)?|toddlers?|bab(?:y|ies)|infants?|boys?|girls?|underage)\b/i;
+const NUDE = /\b(?:naked|nude|nudity|undress(?:ed|ing)?|topless|bottomless|genital(?:s|ia)?|penis(?:es)?|vaginas?|vulvas?|breasts?|nipples?)\b/i;
+const minorNude = (t) => MINOR.test(t) && NUDE.test(t);
+
+/** True when any of the texts describes sex acts or pornography, or puts a child and nudity together. */
function isExplicit(...texts) {
function isExplicit(...texts) {
- return texts.some((t) => t != null && EXPLICIT.test(String(t)));
+ return texts.some((t) => t != null && (EXPLICIT.test(String(t)) || minorNude(String(t))));
}
}
module.exports = { isExplicit };
module.exports = { isExplicit };
@@ -17,12 +17,17 @@ assert.strictEqual(RULES_VERSION, 'off');
@@ -17,12 +17,17 @@ assert.strictEqual(RULES_VERSION, 'off');
// isExplicit: what a scene shows (Live's clip 483 on 2026-10-23, word for word), from either module.
// isExplicit: what a scene shows (Live's clip 483 on 2026-10-23, word for word), from either module.
assert.strictEqual(isExplicit, explicit.isExplicit, 'one function, re-exported');
assert.strictEqual(isExplicit, explicit.isExplicit, 'one function, re-exported');
+// The owner, 2026-10-31: nudity is art; sex acts and porn stay gated, and a child with nudity always is.
for (const t of [
for (const t of [
- 'A naked man lying on their back with legs spread, reaching toward their genitals',
'The video shows the streamer engaging in explicit adult content, with close-up footage of sexual acts on a couch',
'The video shows the streamer engaging in explicit adult content, with close-up footage of sexual acts on a couch',
- 'Pornographic footage plays on the second monitor', 'The scene contains nudity', 'masturbating on camera',
+ 'Pornographic footage plays on the second monitor', 'masturbating on camera', 'They are having sex on stream',
+ 'A child is shown naked', 'Teens undressing in a locker room',
]) assert.ok(isExplicit(t), `explicit: ${t}`);
]) assert.ok(isExplicit(t), `explicit: ${t}`);
-for (const t of ['A player in Fortnite is sprinting along a pink-purple sunset map', 'They read the news from Essex', 'A sextant and a map', 'A shirtless man sits', '', null, undefined]) {
+for (const t of [
+ 'A player in Fortnite is sprinting along a pink-purple sunset map', 'They read the news from Essex', 'A sextant and a map',
+ 'A shirtless man sits', 'A nude figure drawing class, the model posing by the window', 'The scene contains nudity',
+ 'A naked man lying on his back in the sun', 'Kids in swimsuits at the beach', '', null, undefined,
+]) {
assert.ok(!isExplicit(t), `not explicit: ${t}`);
assert.ok(!isExplicit(t), `not explicit: ${t}`);
}
}
assert.ok(isExplicit('a fine title', null, 'the frame shows sexual activity'), 'any of several texts');
assert.ok(isExplicit('a fine title', null, 'the frame shows sexual activity'), 'any of several texts');
@@ -68,7 +68,7 @@ run([
@@ -68,7 +68,7 @@ run([
})().catch((err) => { console.error(err); process.exit(1); });`;
})().catch((err) => { console.error(err); process.exit(1); });`;
const res = execFileSync(process.execPath, ['-e', script], { cwd: app, encoding: 'utf8' });
const res = execFileSync(process.execPath, ['-e', script], { cwd: app, encoding: 'utf8' });
assert.match(res, new RegExp(`consumer ok: ${subpaths.length} subpaths \\+ the browser bundle`));
assert.match(res, new RegExp(`consumer ok: ${subpaths.length} subpaths \\+ the browser bundle`));
- assert.equal(subpaths.length, 74); // 0.79.0 adds openvibe-sdk/machines
+ assert.equal(subpaths.length, 74); // 0.80.0 adds openvibe-sdk/machines
assert.ok(!fs.existsSync(path.join(app, 'node_modules/openvibe-contracts')), 'the optional peer is not installed');
assert.ok(!fs.existsSync(path.join(app, 'node_modules/openvibe-contracts')), 'the optional peer is not installed');
} finally {
} finally {
fs.rmSync(tmp, { recursive: true, force: true });
fs.rmSync(tmp, { recursive: true, force: true });
@@ -1,2 +1,2 @@
@@ -1,2 +1,2 @@
-/** True when any of the texts says a scene shows sexual content (body parts, sex acts, pornography, nudity): publish none of it. */
+/** True when any of the texts describes sex acts or pornography, or puts a child and nudity together: publish none of it. Nudity alone is not explicit. */
export function isExplicit(...texts: unknown[]): boolean;
export function isExplicit(...texts: unknown[]): boolean;