@orkestrel/scaffold 0.0.23 → 0.0.25
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/README.md +84 -99
- package/dist/bin/main.js +1094 -0
- package/dist/bin/main.js.map +1 -0
- package/dist/host/CLAUDE.md +3 -1
- package/dist/host/agents/orchestration.md +61 -4
- package/dist/host/agents/skills/orkestrel-align-packages/SKILL.md +1 -1
- package/dist/host/agents/skills/orkestrel-falsify/SKILL.md +7 -5
- package/dist/host/agents/skills/orkestrel-harden-package/SKILL.md +1 -1
- package/dist/host/agents/skills/orkestrel-harden-package/references/contract.md +1 -1
- package/dist/host/claude/agents/orkestrel.md +4 -4
- package/dist/host/claude/rules/architecture.md +45 -3
- package/dist/host/claude/rules/quality.md +4 -0
- package/dist/host/claude/rules/tests.md +57 -1
- package/dist/host/claude/rules/workspace.md +50 -17
- package/dist/host/codex/agents/orkestrel.toml +1 -1
- package/dist/host/configs/helpers.ts +762 -0
- package/dist/host/dotfiles/oxlintrc.json +2 -1
- package/dist/host/guides/scaffold.md +862 -0
- package/dist/host/manifest.json +40 -33
- package/dist/host/tests/config.test.ts +544 -0
- package/dist/host/tests/policy.test.ts +46 -0
- package/dist/host/tests/setupPolicy.ts +529 -701
- package/dist/src/core/index.cjs +3568 -10576
- package/dist/src/core/index.cjs.map +1 -1
- package/dist/src/core/index.d.cts +2361 -2800
- package/dist/src/core/index.d.ts +2361 -2800
- package/dist/src/core/index.js +3512 -10440
- package/dist/src/core/index.js.map +1 -1
- package/dist/src/server/index.cjs +2855 -3765
- package/dist/src/server/index.cjs.map +1 -1
- package/dist/src/server/index.d.cts +1915 -1330
- package/dist/src/server/index.d.ts +1915 -1330
- package/dist/src/server/index.js +2812 -3680
- package/dist/src/server/index.js.map +1 -1
- package/package.json +16 -23
- package/dist/bin/scaffold.js +0 -1896
- package/dist/bin/scaffold.js.map +0 -1
- package/dist/host/guides/src/scaffold.md +0 -2922
- /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
|
+
})
|