源码快照 @ 2026-09-02 (source-only, 剔除非源码素材)
This commit is contained in:
commit
04bac1f6e2
2200 files changed
+489415
No files matched your search
@@ -0,0 +1,47 @@
|
||||
module.exports = {
|
||||
forbidden: [
|
||||
// Effect belongs only in the environment layer.
|
||||
{
|
||||
name: "effect-only-in-env",
|
||||
severity: "error",
|
||||
from: { pathNot: "^packages/env(?:/|$)" },
|
||||
to: { path: "^effect(?:/|$)" },
|
||||
},
|
||||
// The environment layer must not depend on test frameworks or fixtures.
|
||||
{
|
||||
name: "env-is-framework-free",
|
||||
severity: "error",
|
||||
from: { path: "^packages/env(?:/|$)" },
|
||||
to: { path: "^(?:vitest|@openwork/(?:test-evidence|testkit))(?:/|$)" },
|
||||
},
|
||||
// Layers below fixtures must not depend on fixture or test-framework packages.
|
||||
{
|
||||
name: "layers-below-fixtures",
|
||||
severity: "error",
|
||||
from: { path: "^packages/(?:behaviors|matchers|cdp|labs|hosts|timeline)(?:/|$)" },
|
||||
to: { path: "^(?:vitest|@openwork/(?:testkit|env|test-evidence))(?:/|$)" },
|
||||
},
|
||||
// Eval primitives stay independent of the shared world shell; env is the
|
||||
// single adapter boundary that supplies Den/desktop orchestration.
|
||||
{
|
||||
name: "world-shell-through-env",
|
||||
severity: "error",
|
||||
from: { path: "^packages/(?:behaviors|matchers|cdp|labs|hosts|timeline)(?:/|$)" },
|
||||
to: { path: "^@openwork/world(?:/|$)" },
|
||||
},
|
||||
// Reusable packages must not depend on runner implementation modules.
|
||||
{
|
||||
name: "no-runner-from-packages",
|
||||
severity: "error",
|
||||
from: { path: "^packages(?:/|$)" },
|
||||
to: { path: "^runner(?:/|$)" },
|
||||
},
|
||||
],
|
||||
options: {
|
||||
doNotFollow: { path: "node_modules" },
|
||||
tsConfig: { fileName: "tsconfig.json" },
|
||||
enhancedResolveOptions: {
|
||||
extensions: [".ts", ".mjs", ".js", ".json"],
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in new issue
Block a user