mirror of
https://github.com/murashit/codex-panel.git
synced 2026-07-22 06:57:10 +00:00
17 lines
624 B
Text
17 lines
624 B
Text
language js
|
|
|
|
private pattern js_module_reference() {
|
|
or {
|
|
JsImport(),
|
|
JsExportNamedFromClause(),
|
|
JsExportFromClause(),
|
|
JsImportCallExpression()
|
|
}
|
|
}
|
|
|
|
js_module_reference() as $stmt where {
|
|
$stmt <: contains `$source` where {
|
|
$source <: r"^[\"'](?:(?:\.\./)+(?:app-server|host|panel|presentation|ui)|src/(?:app-server|features/chat/(?:app-server|host|panel|presentation|ui)))(?:/.*)?[\"']$"
|
|
},
|
|
register_diagnostic(span=$stmt, message="Chat application modules must not import app-server, host, panel, presentation, or UI layers; expose state and workflow contracts instead.", severity="error")
|
|
}
|