mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
* feat(javascript): recover readable modules with Wakaru Integrate pinned upstream source behind a typed optional recovery port, preserve source identity and producer provenance, and publish verified artifacts for existing JavaScript analysis through CLI and MCP. Add focused real-tool CI with genuine bundler fixtures and bounded resource, cancellation, cleanup, schema and packaged-artifact checks. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) * fix(javascript): align recovery catalog and browser verification Share canonical Wakaru provider identity, describe CLI mode options, and format the new workflow test. Disconnect the real page transport after its observation readiness progress instead of a fixed delay. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing) * refactor(javascript): consume the investigation evidence writer Verify that the SDK recovery handler records complete Evidence through the newly shared investigation owner. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) * chore(test): account for isolated recovery fixture compilers * fix(javascript): validate recovery paths before acquiring the engine Return field-specific invalid_format diagnostics for relative paths and verify compiled CLI/MCP parity even when the optional engine is unavailable. Assisted-by: Yukari (gensokyo-skills:yukari-boundary-analysis) Assisted-by: Kogasa (gensokyo-skills:kogasa-surprise-testing)
234 lines
5.9 KiB
JSON
234 lines
5.9 KiB
JSON
{
|
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
"plugins": ["typescript", "import", "unicorn", "oxc"],
|
|
"rules": {
|
|
"complexity": ["warn", 20],
|
|
"max-depth": ["warn", 4],
|
|
"max-lines": [
|
|
"warn",
|
|
{
|
|
"max": 500,
|
|
"skipBlankLines": true,
|
|
"skipComments": true
|
|
}
|
|
],
|
|
"max-lines-per-function": [
|
|
"warn",
|
|
{
|
|
"max": 100,
|
|
"skipBlankLines": true,
|
|
"skipComments": true
|
|
}
|
|
],
|
|
"max-params": ["warn", 4],
|
|
"no-var": "warn",
|
|
"no-var-requires": "error"
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"scripts/electron-active-hook*.cjs",
|
|
"tests/conformance/readiness/electron/*.js"
|
|
],
|
|
"rules": {
|
|
"no-var-requires": "off"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"src/{contracts,domain,server}/**/*.ts",
|
|
"src/application/**/*.ts"
|
|
],
|
|
"excludeFiles": ["src/application/runtime.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"**/ghidra/**",
|
|
"**/hopper/**",
|
|
"**/ida/**",
|
|
"**/android/**",
|
|
"**/firmware/**",
|
|
"**/browser/*Provider.*",
|
|
"**/javascript/**"
|
|
],
|
|
"message": "Provider imports belong behind typed ports or in production composition."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/{contracts,domain}/**/*.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"**/application/**",
|
|
"**/server/**",
|
|
"**/cli/**",
|
|
"**/main/**",
|
|
"**/cli.*",
|
|
"**/main.*",
|
|
"**/android/**",
|
|
"**/artifacts/**",
|
|
"**/browser/**",
|
|
"**/dotnet/**",
|
|
"**/firmware/**",
|
|
"**/javascript/**",
|
|
"**/ghidra/**",
|
|
"**/hopper/**",
|
|
"**/ida/**",
|
|
"**/native/**",
|
|
"**/process/**",
|
|
"**/reference/**",
|
|
"**/windows/**",
|
|
"**/composition/**"
|
|
],
|
|
"message": "Domain and contracts depend inward; use typed ports for application, caller and provider boundaries."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/application/**/*.ts"],
|
|
"excludeFiles": ["src/application/runtime.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"**/ghidra/**",
|
|
"**/hopper/**",
|
|
"**/ida/**",
|
|
"**/android/**",
|
|
"**/firmware/**",
|
|
"**/browser/*Provider.*",
|
|
"**/javascript/**",
|
|
"**/composition/**"
|
|
],
|
|
"message": "Application workflows use typed ports; production construction belongs in composition."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["tests/**/*.ts", "src/**/*.test.ts", "src/**/*.fixture.ts"],
|
|
"rules": {
|
|
"max-lines": "off",
|
|
"max-lines-per-function": [
|
|
"error",
|
|
{
|
|
"max": 150,
|
|
"skipBlankLines": true,
|
|
"skipComments": true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/domain/**/*.{fixture,test}.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"**/application/**",
|
|
"**/server/**",
|
|
"**/process/**",
|
|
"**/browser/**",
|
|
"**/ghidra/**",
|
|
"**/hopper/**",
|
|
"**/ida/**",
|
|
"**/replay/**",
|
|
"**/cli.*",
|
|
"**/main.*",
|
|
"**/composition/**",
|
|
"**/android/**",
|
|
"**/firmware/**",
|
|
"**/javascript/**"
|
|
],
|
|
"message": "Domain tests may import only their owning domain and inward dependencies."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["src/application/**/*.test.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": ["**/server/**", "**/cli.*", "**/main.*"],
|
|
"message": "Service tests must use application ports rather than CLI or MCP entrypoints."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"files": ["tests/composition/**/*.test.ts"],
|
|
"rules": {
|
|
"no-restricted-imports": [
|
|
"error",
|
|
{
|
|
"patterns": [
|
|
{
|
|
"group": [
|
|
"**/server/**",
|
|
"**/cli.*",
|
|
"**/main.*",
|
|
"node:child_process",
|
|
"node:net",
|
|
"node:http",
|
|
"node:https",
|
|
"ws",
|
|
"playwright"
|
|
],
|
|
"message": "Composition tests may wire provider-neutral sessions but must not invoke CLI, MCP, process, network, or browser boundaries."
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"env": {
|
|
"node": true,
|
|
"es2023": true
|
|
},
|
|
"ignorePatterns": [
|
|
"dist",
|
|
"build",
|
|
"node_modules",
|
|
"docs/api",
|
|
"coverage",
|
|
".turbo",
|
|
".cache",
|
|
".codex",
|
|
".devin",
|
|
".factory",
|
|
"third_party"
|
|
]
|
|
}
|