Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(print): restore five files a stale shared index had staged for deletion

nirholas54b772affe03
diff --git a/api/_lib/print/rules.js b/api/_lib/print/rules.js
index 203675be9..22f21a3f4 100644
--- a/api/_lib/print/rules.js
+++ b/api/_lib/print/rules.js
@@ -8,9 +8,9 @@
//
// Structure, deliberately not one regex blob:
//
-// tier 'hard' — refused outright. The object has no lawful hobby use that
+// tier 'hard' : refused outright. The object has no lawful hobby use that
// a print bureau would accept, and no phrasing exempts it.
-// tier 'soft' — refused unless the request is unambiguously a display piece
+// tier 'soft' : refused unless the request is unambiguously a display piece
// AND the geometry agrees (a tabletop miniature is centimetres
// tall; a functional part is life-size). A platform whose main
// output is AI figurines cannot refuse the word "sword", so
@@ -129,6 +129,20 @@ export const FABRICATION_RULES = Object.freeze([
allowed:
'Prop and costume weapons with blunt edges, printed as a single non-articulating piece, are fine.',
},
+ {
+ id: 'drug_paraphernalia',
+ tier: 'hard',
+ label: 'drug paraphernalia and production equipment',
+ terms: [
+ 'bong', 'water pipe', 'crack pipe', 'meth pipe', 'dab rig', 'grinder for weed',
+ 'pill press', 'tablet press die', 'punch and die set for pills', 'capsule filler',
+ 'meth lab', 'drug press mold', 'stash can', 'diversion safe',
+ ],
+ message:
+ 'three.ws does not manufacture drug paraphernalia or equipment used to produce or press controlled substances.',
+ allowed:
+ 'Ordinary containers, jars, storage boxes and lab-style glassware models for display are fine.',
+ },
{
id: 'weapon_likeness',
tier: 'soft',
diff --git a/api/cron/print-orders-sync.js b/api/cron/print-orders-sync.js
index c6fb1fe16..7c1ed17db 100644
--- a/api/cron/print-orders-sync.js
+++ b/api/cron/print-orders-sync.js
@@ -1,5 +1,5 @@
// @ts-check
-// GET /api/cron/print-orders-sync — reconcile live print jobs and surface
+// GET /api/cron/print-orders-sync: reconcile live print jobs and surface
// stalls.
//
// Webhooks are the fast path and they are not enough on their own. A delivery
diff --git a/tests/api/fact-check-verdict.test.js b/tests/api/fact-check-verdict.test.js
index 5673ce284..548dbe4b6 100644
--- a/tests/api/fact-check-verdict.test.js
+++ b/tests/api/fact-check-verdict.test.js
@@ -23,7 +23,7 @@ import { _computeVerdict as computeVerdict } from '../../api/x402/fact-check.js'
const of = (stance, n, weight = 0.8) =>
Array.from({ length: n }, (_v, i) => ({ url: `https://example.com/${stance}/${i}`, stance, weight }));
-describe('computeVerdict — clear-cut distributions keep their verdicts', () => {
+describe('computeVerdict: clear-cut distributions keep their verdicts', () => {
it('unanimous support is supported', () => {
expect(computeVerdict(of('supports', 5)).verdict).toBe('supported');
});
@@ -86,7 +86,7 @@ describe('computeVerdict — clear-cut distributions keep their verdicts', () =>
});
});
-describe('computeVerdict — mixed by inter-source disagreement', () => {
+describe('computeVerdict: mixed by inter-source disagreement', () => {
it('an even split is mixed', () => {
expect(computeVerdict([...of('supports', 3), ...of('contradicts', 3)]).verdict).toBe('mixed');
});
@@ -104,7 +104,7 @@ describe('computeVerdict — mixed by inter-source disagreement', () => {
});
});
-describe('computeVerdict — mixed by intra-source partiality', () => {
+describe('computeVerdict: mixed by intra-source partiality', () => {
it('unanimous partial evidence is mixed, not contradicted', () => {
// The defect this stance exists to fix: every source reads the same
// nuance ("a tomato is botanically a fruit and culinarily a vegetable"),
@@ -132,7 +132,7 @@ describe('computeVerdict — mixed by intra-source partiality', () => {
});
});
-describe('computeVerdict — confidence semantics', () => {
+describe('computeVerdict: confidence semantics', () => {
it('broad engagement outscores thin engagement at the same dominance', () => {
const broad = computeVerdict(of('supports', 5, 0.8));
const thin = computeVerdict([...of('supports', 2, 0.8), ...of('neutral', 8, 0.8)]);
diff --git a/tests/custodial-key-health.test.js b/tests/custodial-key-health.test.js
index 2884281ca..fc4d4ba25 100644
--- a/tests/custodial-key-health.test.js
+++ b/tests/custodial-key-health.test.js
@@ -175,12 +175,18 @@ describe('ops panel verdict', () => {
const p = buildStrandedPanel(report({ key_candidates: 0, undecryptable: 725, counts: { stranded_funded: 700, stranded_unread: 0 } }));
expect(p.status).toBe('unknown');
expect(p.reason).toBe('no_decryption_key');
+ // The SOL figure is withheld, not published with a caveat: an
+ // unattributable total is exactly the phantom number this surface exists
+ // to stop shipping.
+ expect(p.sol_stranded).toBe(null);
+ expect(p.top_stranded).toEqual([]);
});
it('calls a fleet-wide decrypt failure a wrong key, not a mass customer incident', () => {
const p = buildStrandedPanel(report({ undecryptable: 725, counts: { stranded_funded: 168, stranded_unread: 0 } }));
expect(p.status).toBe('unknown');
expect(p.reason).toBe('key_mismatch');
+ expect(p.sol_stranded_customer).toBe(null);
expect(p.brief).toBe(null);
});