@orkestrel/scaffold 0.0.73 → 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.
Files changed (34) hide show
  1. package/dist/bin/main.js +75 -34
  2. package/dist/bin/main.js.map +1 -1
  3. package/dist/host/agents/skills/orkestrel-prove-journey/SKILL.md +212 -29
  4. package/dist/host/agents/skills/orkestrel-prove-journey/references/captures.md +40 -15
  5. package/dist/host/agents/skills/orkestrel-prove-journey/references/decide.md +34 -15
  6. package/dist/host/agents/skills/orkestrel-prove-journey/references/layer.md +248 -52
  7. package/dist/host/agents/skills/orkestrel-prove-journey/references/statechart.md +255 -49
  8. package/dist/host/agents/skills/orkestrel-prove-journey/references/styles.md +111 -23
  9. package/dist/host/agents/transports/codex.md +7 -0
  10. package/dist/host/claude/agents/orkestrel.md +2 -2
  11. package/dist/host/claude/rules/documentation.md +2 -0
  12. package/dist/host/claude/rules/tests.md +5 -3
  13. package/dist/host/claude/rules/workspace.md +26 -15
  14. package/dist/host/codex/config.toml +4 -7
  15. package/dist/host/guides/README.md +5 -0
  16. package/dist/host/guides/scaffold.md +104 -14
  17. package/dist/host/guides/test.md +744 -184
  18. package/dist/host/manifest.json +19 -19
  19. package/dist/host/tests/config.test.ts +159 -64
  20. package/dist/host/tests/policy.test.ts +11 -1
  21. package/dist/host/tests/setupPolicy.ts +571 -7
  22. package/dist/src/core/index.cjs +112 -18
  23. package/dist/src/core/index.cjs.map +1 -1
  24. package/dist/src/core/index.d.cts +19 -6
  25. package/dist/src/core/index.d.ts +19 -6
  26. package/dist/src/core/index.js +112 -19
  27. package/dist/src/core/index.js.map +1 -1
  28. package/dist/src/server/index.cjs +6 -4
  29. package/dist/src/server/index.cjs.map +1 -1
  30. package/dist/src/server/index.d.cts +9 -7
  31. package/dist/src/server/index.d.ts +9 -7
  32. package/dist/src/server/index.js +6 -4
  33. package/dist/src/server/index.js.map +1 -1
  34. 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
- * Device and inode rather than the path, because the path is the thing that can
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('/tmp/project') // { path: '/tmp/project', device: 1, inode: 2 }
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 captured directory is still the same directory.
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