clavarium 0.2.143-beta.1 → 0.2.144-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.143-beta.1",
3
+ "version": "0.2.144-beta.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "clavarium",
9
- "version": "0.2.143-beta.1",
9
+ "version": "0.2.144-beta.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
12
  "@xterm/addon-fit": "^0.11.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clavarium",
3
- "version": "0.2.143-beta.1",
3
+ "version": "0.2.144-beta.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A conversation is a VM with a terminal in it. Everything else is a folder.",
package/web/app.js CHANGED
@@ -143,6 +143,9 @@
143
143
  }
144
144
  m.hidden = false;
145
145
  const was = m.dataset.pose ?? '';
146
+ /* Trying to wake (03-11): it lifts its head, and lies back, again, until it is up (a restart, a build). */
147
+ if (pose === 'trying') { m.classList.remove('waking', 'stirring', 'asleep'); m.classList.add('trying'); m.dataset.pose = 'trying'; return; }
148
+ m.classList.remove('trying');
146
149
  if (pose === 'waking') {
147
150
  if (was === 'waking') return;
148
151
  /* From lying, in one movement: the breathing stops first, then it rises. */
@@ -220,7 +223,7 @@
220
223
  return `${s < 180 ? 'A restart usually takes one to two minutes.' : 'This is taking longer than usual: the machine may be slow to stop or to start. It goes on by itself.'} Its files and its chat are kept.`;
221
224
  };
222
225
  /* `source()`: the latest word of the server (its list, or the terminal opening). */
223
- const panel = { source: () => undefined, of: '', key: '', timer: 0 };
226
+ const panel = { source: () => undefined, of: '', key: '', timer: 0, open: false };
224
227
  const paintProgress = () => {
225
228
  const p = panel.source();
226
229
  if (!p || !Array.isArray(p.steps) || notice.hidden || notice.dataset.progress === undefined) return false;
@@ -257,12 +260,16 @@
257
260
  }
258
261
  const s = Math.max(0, Math.floor((Date.now() - (Date.parse(p.since ?? '') || Date.now())) / 1000));
259
262
  $('notice-title').textContent = PROGRESS_TITLES[p.kind] ?? 'Starting';
260
- mascot(p.kind === 'wake' ? 'waking' : null);
261
- $('notice-count').textContent = `Step ${at + 1} of ${p.steps.length} \u00b7 ${clockOf(s)}`;
262
- $('notice-text').textContent = usualFor(p.kind, s);
263
+ /* 03-11, less is more: the sheep trying to wake (a wake, a restart, a build), the step under way in one
264
+ line; the list of the steps stays one tap away, and the usual time is said only when it is passed. */
265
+ mascot(p.kind === 'wake' ? 'waking' : 'trying');
266
+ $('notice-steps').hidden = !panel.open; $('notice-spin').hidden = true;
267
+ $('notice-count').textContent = `${at + 1} / ${p.steps.length} \u00b7 ${clockOf(s)}`;
268
+ $('notice-text').textContent = `${stepNow(p, tool)}${s >= 180 ? ` \u2014 ${usualFor(p.kind, s)}` : ''}`;
263
269
  return true;
264
270
  };
265
271
  /* Shown, or brought up to date when it is shown already (its wheel keeps turning). */
272
+ $('notice-count').addEventListener('click', () => { panel.open = !panel.open; paintProgress(); });
266
273
  const progressPanel = (of, source) => {
267
274
  panel.source = source;
268
275
  if (notice.hidden || notice.dataset.progress === undefined || panel.of !== of) {
package/web/style.css CHANGED
@@ -2201,3 +2201,16 @@ body.as-dragging #assets-rows .as-row { touch-action: none; }
2201
2201
  .oc-set label { display: grid; gap: 4px; font-weight: 600; font-size: .8125rem; }
2202
2202
  .oc-set select, .oc-new input { width: 100%; }
2203
2203
  .oc-new { display: grid; gap: 4px; }
2204
+
2205
+ /* The sheep trying to wake (03-11): lying, it lifts its head and lies back, again and again, while a machine restarts. */
2206
+ .mascot.trying .m-legs { opacity: 0; transform: translateY(-10px); }
2207
+ .mascot.trying .m-body { transform: translateY(12px) scale(1.02, .96); }
2208
+ .mascot.trying .m-head { animation: m-try 2.6s ease-in-out infinite; }
2209
+ .mascot.trying .m-ear { animation: m-try-ear 2.6s ease-in-out infinite; }
2210
+ .mascot.trying .m-eye { animation: m-try-eye 2.6s steps(1) infinite; } .mascot.trying .m-shut { animation: m-try-shut 2.6s steps(1) infinite; }
2211
+ @keyframes m-try { 0%, 15% { transform: rotate(14deg) translateY(3px); } 40%, 55% { transform: rotate(-6deg) translateY(-2px); } 80%, 100% { transform: rotate(14deg) translateY(3px); } }
2212
+ @keyframes m-try-ear { 0%, 30% { transform: rotate(10deg); } 45% { transform: rotate(-12deg); } 55%, 100% { transform: rotate(10deg); } }
2213
+ @keyframes m-try-eye { 0% { opacity: 0; } 35% { opacity: 1; } 70% { opacity: 0; } }
2214
+ @keyframes m-try-shut { 0% { opacity: 1; } 35% { opacity: 0; } 70% { opacity: 1; } }
2215
+ @media (prefers-reduced-motion: reduce) { .mascot.trying .m-head, .mascot.trying .m-ear, .mascot.trying .m-eye, .mascot.trying .m-shut { animation: none; } }
2216
+ #notice-count { cursor: pointer; }