amalgm 0.1.201 → 0.1.202

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amalgm",
3
- "version": "0.1.201",
3
+ "version": "0.1.202",
4
4
  "description": "Amalgm local computer runtime: login, MCP, chat, events, previews, and tunnels.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -326,6 +326,15 @@ test('side branches keep one rail operation while the checked-out card advances'
326
326
 
327
327
  await run(repo, 'branch', branch);
328
328
  await refreshRepoCards();
329
+ const beforeMaterialization = getDocText(project.file);
330
+ const blocked = await require('../workspace/reducer').withMaterialization(
331
+ repoKey,
332
+ async () => publishWall(repoKey),
333
+ );
334
+ assert.equal(blocked.published, false);
335
+ assert.equal(blocked.reason, 'repo-materializing');
336
+ assert.equal(getDocText(project.file), beforeMaterialization);
337
+
329
338
  const created = publishWall(repoKey);
330
339
  assert.equal(created.published, true);
331
340
  let card = readWall(repoKey)[0].cards[0];
@@ -473,6 +473,10 @@ function publishProject(project, rawCards) {
473
473
  service.counters.publishSkips += 1;
474
474
  return { published: false, reason: 'project-not-bound', repoKey: project.repoKey };
475
475
  }
476
+ if (require('./reducer').isMaterializing(project.repoKey)) {
477
+ service.counters.publishSkips += 1;
478
+ return { published: false, reason: 'repo-materializing', repoKey: project.repoKey };
479
+ }
476
480
  const docs = require('../state/docs');
477
481
  let current = docs.getDocText(project.file);
478
482
  let previous = null;