clavarium 0.2.426-next.1 → 0.2.427-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 +2 -2
- package/package.json +1 -1
- package/server/conversations.mjs +2 -2
- package/web/app.js +1 -0
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "clavarium",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.427-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.427-next.1",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@xterm/addon-fit": "^0.11.0",
|
package/package.json
CHANGED
package/server/conversations.mjs
CHANGED
|
@@ -1032,8 +1032,8 @@ export class Conversations {
|
|
|
1032
1032
|
let said = 0;
|
|
1033
1033
|
const say = (step) => { const now = Date.now(); if (now - said < 1000) return; said = now; if (this.#store.get(to)) this.#store.patch(to, { step }); };
|
|
1034
1034
|
this.#store.patch(to, { step: 'Copying its work' });
|
|
1035
|
-
const work = await this.copyWork(from, to, (p) => say(`Copying its work: ${p.files} files, ${sizeWords(p.bytes)}`));
|
|
1036
|
-
if (work?.files !== undefined) this.#store.patch(to, { step: `Copying its work: ${work.files} files, ${sizeWords(work.bytes)}, done` });
|
|
1035
|
+
const work = await this.copyWork(from, to, (p) => say(`Copying its work: ${p.files} file${p.files === 1 ? '' : 's'}, ${sizeWords(p.bytes)}`));
|
|
1036
|
+
if (work?.files !== undefined) this.#store.patch(to, { step: `Copying its work: ${work.files} file${work.files === 1 ? '' : 's'}, ${sizeWords(work.bytes)}, done` });
|
|
1037
1037
|
if (tool.state) {
|
|
1038
1038
|
this.#store.patch(to, { step: `Copying ${tool.label}'s memory` });
|
|
1039
1039
|
const state = await this.#vms.state(from, { fresh: true }).catch(() => undefined);
|
package/web/app.js
CHANGED
|
@@ -370,6 +370,7 @@
|
|
|
370
370
|
const mline = mstepLine(owner?.machine);
|
|
371
371
|
/* A copy or a move, past its machine's build: what it does now (its work, its tool's memory), said as the server says it. */
|
|
372
372
|
const carrying = owner?.phase === 'building' && /^(Copying|Taking|Putting|Giving)\b/.test(owner.step ?? '') ? owner.step : '';
|
|
373
|
+
if (carrying) $('notice-title').textContent = owner.copyOf ? 'Copying it' : 'Moving it';
|
|
373
374
|
$('notice-text').textContent = mline || (carrying ? `${carrying}\u2026` : `${stepNow(p, tool)}${s >= 180 ? ` \u2014 ${usualFor(p.kind, s)}` : ''}`);
|
|
374
375
|
return true;
|
|
375
376
|
};
|