@orkestrel/scaffold 0.0.22 → 0.0.24

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 (39) hide show
  1. package/README.md +84 -99
  2. package/dist/bin/main.js +1094 -0
  3. package/dist/bin/main.js.map +1 -0
  4. package/dist/host/CLAUDE.md +3 -1
  5. package/dist/host/agents/orchestration.md +61 -4
  6. package/dist/host/agents/skills/orkestrel-align-packages/SKILL.md +1 -1
  7. package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +7 -5
  8. package/dist/host/agents/skills/orkestrel-harden-package/SKILL.md +1 -1
  9. package/dist/host/agents/skills/orkestrel-harden-package/references/contract.md +1 -1
  10. package/dist/host/claude/agents/orkestrel.md +9 -9
  11. package/dist/host/claude/rules/architecture.md +45 -3
  12. package/dist/host/claude/rules/quality.md +4 -0
  13. package/dist/host/claude/rules/tests.md +57 -1
  14. package/dist/host/claude/rules/workspace.md +50 -17
  15. package/dist/host/codex/agents/orkestrel.toml +1 -1
  16. package/dist/host/configs/helpers.ts +762 -0
  17. package/dist/host/dotfiles/oxlintrc.json +2 -1
  18. package/dist/host/guides/scaffold.md +862 -0
  19. package/dist/host/manifest.json +40 -33
  20. package/dist/host/tests/config.test.ts +544 -0
  21. package/dist/host/tests/policy.test.ts +46 -0
  22. package/dist/host/tests/setupPolicy.ts +557 -602
  23. package/dist/src/core/index.cjs +3569 -10510
  24. package/dist/src/core/index.cjs.map +1 -1
  25. package/dist/src/core/index.d.cts +2361 -2789
  26. package/dist/src/core/index.d.ts +2361 -2789
  27. package/dist/src/core/index.js +3513 -10374
  28. package/dist/src/core/index.js.map +1 -1
  29. package/dist/src/server/index.cjs +2855 -3765
  30. package/dist/src/server/index.cjs.map +1 -1
  31. package/dist/src/server/index.d.cts +1920 -1335
  32. package/dist/src/server/index.d.ts +1920 -1335
  33. package/dist/src/server/index.js +2812 -3680
  34. package/dist/src/server/index.js.map +1 -1
  35. package/package.json +16 -23
  36. package/dist/bin/scaffold.js +0 -1896
  37. package/dist/bin/scaffold.js.map +0 -1
  38. package/dist/host/guides/src/scaffold.md +0 -2886
  39. /package/dist/host/guides/{src/guide.md → guide.md} +0 -0
@@ -0,0 +1,46 @@
1
+ import { describe, expect, it } from 'vitest'
2
+ import {
3
+ FUNCTION_SOURCE_FILES,
4
+ GENERIC_POLICY_SOURCES,
5
+ inspectPolicyControl,
6
+ inspectPolicyMirrorPaths,
7
+ inspectPolicySources,
8
+ inspectPolicyWorkspace,
9
+ POLICY_CONTROLS,
10
+ } from './setupPolicy.js'
11
+
12
+ describe('fleet policy register', () => {
13
+ it('keeps handlers in the function set and routes out', () => {
14
+ expect(FUNCTION_SOURCE_FILES).toContain('handlers.ts')
15
+ expect(FUNCTION_SOURCE_FILES).not.toContain('routes.ts')
16
+ })
17
+
18
+ it('accepts a differently shaped workspace without a core environment', () => {
19
+ expect(inspectPolicySources(GENERIC_POLICY_SOURCES)).toEqual([])
20
+ })
21
+
22
+ it('accepts matching mirrors across arbitrary axes and environments', () => {
23
+ const tests = [
24
+ 'tests/src/worker/Worker.test.ts',
25
+ 'tests/app/browser/routes.test.ts',
26
+ 'tests/app/edge/deep/integration.test.ts',
27
+ ]
28
+ const sources = new Set(['src/worker/Worker.ts', 'app/browser/routes.ts'])
29
+ expect(inspectPolicyMirrorPaths(tests, sources)).toEqual([])
30
+ })
31
+ })
32
+
33
+ describe('instrument negative controls', () => {
34
+ for (const control of POLICY_CONTROLS) {
35
+ it(`${control.label} [membership: ${control.membership}]`, () => {
36
+ const violations = inspectPolicyControl(control)
37
+ expect(violations.some((violation) => violation.rule === control.rule)).toBe(true)
38
+ })
39
+ }
40
+ })
41
+
42
+ describe('repository policy', () => {
43
+ it('enforces placement and mirrors over the real workspace', () => {
44
+ expect(inspectPolicyWorkspace(process.cwd())).toEqual([])
45
+ })
46
+ })