@quolu/lattice 0.21.1 → 0.21.2

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/todo-cli.mjs +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quolu/lattice",
3
- "version": "0.21.1",
3
+ "version": "0.21.2",
4
4
  "description": "Lattice — phase-aware TODO graph compiler and conflict-aware orchestration runtime",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/todo-cli.mjs CHANGED
@@ -4,6 +4,7 @@ import {
4
4
  lstat, mkdir, open, readFile, realpath, rename, rm, writeFile,
5
5
  } from 'node:fs/promises';
6
6
  import path from 'node:path';
7
+ import { fileURLToPath } from 'node:url';
7
8
  import { parseTree } from 'jsonc-parser';
8
9
 
9
10
  import {
@@ -988,7 +989,9 @@ async function seamProposalApply({ repoRoot, planKey, pathNames = {}, land = fal
988
989
  pathNames,
989
990
  sourceProposal: artifact,
990
991
  witnessSet,
991
- latticeBin: path.join(repoRoot, 'bin', 'lattice.mjs'),
992
+ // 配布物内の自分自身を指す。repoRoot配下を指すと、Lattice自身のrepositoryでしか動かない
993
+ // ——消費側のprojectに`bin/lattice.mjs`は存在しない。
994
+ latticeBin: fileURLToPath(new URL('../bin/lattice.mjs', import.meta.url)),
992
995
  sharedPathFor: (sourcePath) => sourcePath.replace(/(\.[^./]+)$/u, '.seam-shared$1'),
993
996
  executors: witnessSet.capacity.executors,
994
997
  compileIndependence: {