clavarium 0.2.280-next.1 → 0.2.282-next.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.
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/web/app.js +15 -2
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.282-next.1",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "clavarium",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.282-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
|
13
13
|
"@xterm/xterm": "^6.0.0",
|
|
14
|
-
"clavarium-binder": "0.1.
|
|
14
|
+
"clavarium-binder": "0.1.59-next.1",
|
|
15
15
|
"clavarium-docket": "0.1.2-next.2",
|
|
16
16
|
"clavarium-parley": "0.17.50-next.1",
|
|
17
17
|
"clavarium-tether": "0.1.0-next.48",
|
|
@@ -761,9 +761,9 @@
|
|
|
761
761
|
}
|
|
762
762
|
},
|
|
763
763
|
"node_modules/clavarium-binder": {
|
|
764
|
-
"version": "0.1.
|
|
765
|
-
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.
|
|
766
|
-
"integrity": "sha512-
|
|
764
|
+
"version": "0.1.59-next.1",
|
|
765
|
+
"resolved": "https://registry.npmjs.org/clavarium-binder/-/clavarium-binder-0.1.59-next.1.tgz",
|
|
766
|
+
"integrity": "sha512-uvsmMS7mP18f7yRQZoXSnhyM8tzr0cjDPiZx4ofKP+YJ2jHZz01jA+ggrJ0l4e1evY3bVfnF+jwXa7MilHLRQg==",
|
|
767
767
|
"license": "MIT",
|
|
768
768
|
"bin": {
|
|
769
769
|
"binder": "bin/binder.mjs",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.282-next.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.",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@xterm/addon-fit": "^0.11.0",
|
|
46
46
|
"@xterm/xterm": "^6.0.0",
|
|
47
|
-
"clavarium-binder": "0.1.
|
|
47
|
+
"clavarium-binder": "0.1.59-next.1",
|
|
48
48
|
"clavarium-docket": "0.1.2-next.2",
|
|
49
49
|
"clavarium-parley": "0.17.50-next.1",
|
|
50
50
|
"clavarium-tether": "0.1.0-next.48",
|
package/web/app.js
CHANGED
|
@@ -145,6 +145,18 @@
|
|
|
145
145
|
const was = m.dataset.pose ?? '';
|
|
146
146
|
/* Trying to wake (03-11): it lifts its head, and lies back, again, until it is up (a restart, a build). */
|
|
147
147
|
if (pose === 'trying') { m.classList.remove('waking', 'stirring', 'asleep'); m.classList.add('trying'); m.dataset.pose = 'trying'; return; }
|
|
148
|
+
/* From trying to waking (03-11, no jolt): wait till its head lies down again -- the end of a try, the
|
|
149
|
+
very pose it wakes from -- then rise. At most one try's length (with less motion: no try, no wait). */
|
|
150
|
+
if (pose === 'waking' && was === 'trying') {
|
|
151
|
+
if (m.dataset.rising) return;
|
|
152
|
+
m.dataset.rising = 'yes';
|
|
153
|
+
/* Where it is in its try (2.6 s: lying until 15 %, lying again from 80 %), read from the animation itself. */
|
|
154
|
+
const tryNow = m.querySelector('.m-head')?.getAnimations?.().find((x) => x.animationName === 'm-try');
|
|
155
|
+
const at = Number(tryNow?.currentTime ?? 0) % 2600;
|
|
156
|
+
const rise = () => { delete m.dataset.rising; m.dataset.pose = 'tried'; mascot('waking'); };
|
|
157
|
+
if (at <= 390 || at >= 2080) rise(); else setTimeout(rise, 2080 - at);
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
148
160
|
m.classList.remove('trying');
|
|
149
161
|
if (pose === 'waking') {
|
|
150
162
|
if (was === 'waking') return;
|
|
@@ -261,8 +273,9 @@
|
|
|
261
273
|
const s = Math.max(0, Math.floor((Date.now() - (Date.parse(p.since ?? '') || Date.now())) / 1000));
|
|
262
274
|
$('notice-title').textContent = PROGRESS_TITLES[p.kind] ?? 'Starting';
|
|
263
275
|
/* 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
|
-
|
|
276
|
+
line; the list of the steps stays one tap away, and the usual time is said only when it is passed.
|
|
277
|
+
It wakes for real at the last step only (03-11, his idea): until then, it tries. */
|
|
278
|
+
mascot(at >= p.steps.length - 1 ? 'waking' : 'trying');
|
|
266
279
|
$('notice-steps').hidden = !panel.open; $('notice-spin').hidden = true;
|
|
267
280
|
$('notice-count').textContent = `${at + 1} / ${p.steps.length} \u00b7 ${clockOf(s)}`;
|
|
268
281
|
$('notice-text').textContent = `${stepNow(p, tool)}${s >= 180 ? ` \u2014 ${usualFor(p.kind, s)}` : ''}`;
|