@orkestrel/scaffold 0.0.74 → 0.0.75
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/dist/host/agents/skills/orkestrel-prove-journey/SKILL.md +50 -13
- package/dist/host/agents/skills/orkestrel-prove-journey/references/captures.md +3 -5
- package/dist/host/codex/config.toml +4 -7
- package/dist/host/guides/scaffold.md +7 -1
- package/dist/host/manifest.json +5 -5
- package/dist/src/core/index.cjs +8 -5
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +2 -2
- package/dist/src/core/index.d.ts +2 -2
- package/dist/src/core/index.js +8 -5
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +6 -4
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +9 -7
- package/dist/src/server/index.d.ts +9 -7
- package/dist/src/server/index.js +6 -4
- package/dist/src/server/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -1776,7 +1776,8 @@ function stageInventory(checkout, path = _src_core.HOST_INVENTORY_PATH) {
|
|
|
1776
1776
|
* @returns The anchor, or `undefined` when the path is not a physical directory.
|
|
1777
1777
|
*
|
|
1778
1778
|
* @remarks
|
|
1779
|
-
*
|
|
1779
|
+
* Native bigint device and inode values preserve the filesystem identity without
|
|
1780
|
+
* numeric rounding. Device and inode rather than the path, because the path can
|
|
1780
1781
|
* be swapped underneath a write. An anchor captured before a mutation and
|
|
1781
1782
|
* checked again after it proves the directory written into sits where the
|
|
1782
1783
|
* inspected one sat, not that it is the one that was inspected.
|
|
@@ -1785,11 +1786,12 @@ function stageInventory(checkout, path = _src_core.HOST_INVENTORY_PATH) {
|
|
|
1785
1786
|
* ```ts
|
|
1786
1787
|
* import { readAnchor } from '@orkestrel/scaffold/server'
|
|
1787
1788
|
*
|
|
1788
|
-
* readAnchor(
|
|
1789
|
+
* const anchor = readAnchor(process.cwd())
|
|
1790
|
+
* anchor !== undefined && typeof anchor.device === 'bigint' && typeof anchor.inode === 'bigint' // true for a physical directory
|
|
1789
1791
|
* ```
|
|
1790
1792
|
*/
|
|
1791
1793
|
function readAnchor(path) {
|
|
1792
|
-
const status = (0, _orkestrel_contract.attempt)(() => (0, node_fs.lstatSync)(path));
|
|
1794
|
+
const status = (0, _orkestrel_contract.attempt)(() => (0, node_fs.lstatSync)(path, { bigint: true }));
|
|
1793
1795
|
if (!status.success || !status.value.isDirectory() || status.value.isSymbolicLink()) return;
|
|
1794
1796
|
return {
|
|
1795
1797
|
path,
|
|
@@ -1798,7 +1800,7 @@ function readAnchor(path) {
|
|
|
1798
1800
|
};
|
|
1799
1801
|
}
|
|
1800
1802
|
/**
|
|
1801
|
-
* Tests whether a
|
|
1803
|
+
* Tests whether a path still holds the captured directory identity.
|
|
1802
1804
|
*
|
|
1803
1805
|
* @param anchor - The identity captured earlier.
|
|
1804
1806
|
* @returns True if the path still holds a physical directory of that exact device and
|