Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: use the shared direct-invocation helper in the Blender acceptance script (#9390)

[._.]/ Adam Eivyb22c47fbc705
diff --git a/scripts/code-animation-blender-acceptance.js b/scripts/code-animation-blender-acceptance.js
index f09182490d..baec84624e 100644
--- a/scripts/code-animation-blender-acceptance.js
+++ b/scripts/code-animation-blender-acceptance.js
@@ -3,12 +3,12 @@
import { mkdir, readFile, writeFile } from 'node:fs/promises';
import { createHash } from 'node:crypto';
import { join, resolve } from 'node:path';
-import { pathToFileURL } from 'node:url';
import { parseArgs } from 'node:util';
import { renderBlenderSequence } from '../server/services/codeAnimation/blenderRender.js';
import { getBlenderStarterPackage } from '../server/services/codeAnimation/blenderStarter.js';
import { runContainedWorker, runTrustedLocalWorker } from '../server/services/codeAnimation/containedWorker.js';
import { codeAnimationManifestSchema } from '../server/lib/codeAnimationPackage.js';
+import { isDirectlyInvoked } from './lib/directInvocation.js';
const sha = bytes => createHash('sha256').update(bytes).digest('hex');
@@ -120,7 +120,7 @@ export async function runAcceptance(options, { render = renderBlenderSequence }
return evidence;
}
-if (process.argv[1] && import.meta.url === pathToFileURL(resolve(process.argv[1])).href) {
+if (isDirectlyInvoked(import.meta.url)) {
try {
const options = parseAcceptanceArgs(process.argv.slice(2));
if (options.mode === 'trusted-local') console.log('⚠️ Explicit trusted-local acceptance: bundled scene code has host filesystem/network access; no containment.');