Skip to content

an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions

site: Stapler starts surprised and blue on the landing page

chaitanyagiri2b0ceb88c081
diff --git a/docs/index.html b/docs/index.html
index 4f3c3994..6b14686d 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -807,8 +807,17 @@ function O({l:t,c:e,h:s}){let n=s*Math.PI/180,r=e*Math.cos(n),o=e*Math.sin(n),c=
return '<div aria-hidden="true" style="width:' + size + 'px;height:' + size + 'px;flex-shrink:0;line-height:0' + (shadow ? ';filter:drop-shadow(0 2px 5px rgba(26,19,32,.18))' : '') + '">' + faceSVG(look, size, animate) + '</div>';
}
- /* ---- the one interactive Stapler: state, disc, ring (shared/puck.ts RING and RING_ANGLE, puck.css motion) ---- */
- var look = { seed: 'stapler', shape: 'round', expression: 'happy', color: PUCK_DEFAULT_COLOR };
+ /* ---- the one interactive Stapler: state, disc, ring (shared/puck.ts RING and RING_ANGLE, puck.css motion) ----
+ STAPLER_EXPRESSION and STAPLER_COLOR are how Stapler arrives before anyone touches the controls. The founder
+ picked them by POSITION in the two rows, so they are written here as positions rather than as loose strings:
+ 'surprised' is the fifth chip in PUCK_EXPRESSIONS, '#B3D4F0' is the fourth dot in PUCK_SWATCHES (Blue, the
+ fourth of the six pastels, which render first). Reorder either array and these stop meaning what he asked for.
+ Deliberately NOT PUCK_DEFAULT_COLOR: that constant is also the yellow swatch's own hex, so pointing it at blue
+ would leave the palette with two blues and no yellow. Used in both places Stapler appears at rest, the
+ customiser disc and the Pro feature card, so the same character is never two colours on one page. */
+ var STAPLER_EXPRESSION = 'surprised';
+ var STAPLER_COLOR = '#B3D4F0';
+ var look = { seed: 'stapler', shape: 'round', expression: STAPLER_EXPRESSION, color: STAPLER_COLOR };
var RING = { radius: 1.1, button: 0.62, closeRadius: 1.0, closeButton: 0.42 };
var RING_ANGLE = { screenshot: 0, meeting: 60, invisible: 130, computerUse: 230, message: 300 };
var RING_LABEL = { screenshot: 'Screenshot', message: 'Record message', meeting: 'Record meeting', invisible: 'Leave invisible', computerUse: 'Computer use', close: 'Close' };
@@ -908,7 +917,7 @@ function O({l:t,c:e,h:s}){let n=s*Math.PI/180,r=e*Math.cos(n),o=e*Math.sin(n),c=
var fieldEl = document.getElementById('field');
function mulberry(a) { return function () { a |= 0; a = a + 0x6D2B79F5 | 0; var t = Math.imul(a ^ a >>> 15, 1 | a); t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t; return ((t ^ t >>> 14) >>> 0) / 4294967296; }; }
var featBlob = document.getElementById('featBlob');
- if (featBlob) featBlob.innerHTML = face({ seed: 'stapler', shape: 'round', expression: 'happy', color: PUCK_DEFAULT_COLOR }, 64, true, 'always');
+ if (featBlob) featBlob.innerHTML = face({ seed: 'stapler', shape: 'round', expression: STAPLER_EXPRESSION, color: STAPLER_COLOR }, 64, true, 'always');
function buildField() {
var W = fieldEl.clientWidth, H = fieldEl.clientHeight; if (!W || !H) return;
var rnd = mulberry(50), n = Math.max(16, Math.min(32, Math.round(W * H / 36000)));