a38986acdb
Implements the Sense observation engine runtime per RFC-001:
- IPC types: discriminated union for parent↔worker messages
- sense-runtime: openSenseDb (WAL), openPeerDb (readonly), runMigrations,
loadComputeFn, executeCompute with Result<T> error handling
- sense-worker: CLI bootstrap, reads nerve.yaml, inits per-sense DB,
builds peer map, enters IPC event loop
- examples/cpu-usage: sample sense with Drizzle schema + migration
- 15 unit tests covering migrations, DB ops, compute, peer isolation
小橘 🍊(NEKO Team)
69 lines
1.5 KiB
JSON
69 lines
1.5 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
|
|
"files": {
|
|
"ignore": ["**/dist/**", "false/**", "**/node_modules/**"]
|
|
},
|
|
"organizeImports": {
|
|
"enabled": true
|
|
},
|
|
"formatter": {
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "always"
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"include": ["tsup.config.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noDefaultExport": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"style": {
|
|
"noDefaultExport": "error",
|
|
"useNodejsImportProtocol": "error",
|
|
"noNamespace": "error",
|
|
"noParameterProperties": "error",
|
|
"useImportType": "error",
|
|
"useShorthandFunctionType": "error",
|
|
"noVar": "error",
|
|
"useConst": "error",
|
|
"useEnumInitializers": "error"
|
|
},
|
|
"complexity": {
|
|
"noThisInStatic": "error",
|
|
"noStaticOnlyClass": "error",
|
|
"noForEach": "error",
|
|
"useArrowFunction": "error",
|
|
"noExcessiveCognitiveComplexity": {
|
|
"level": "warn",
|
|
"options": {
|
|
"maxAllowedComplexity": 15
|
|
}
|
|
}
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error"
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "error",
|
|
"noUnusedImports": "error"
|
|
}
|
|
}
|
|
}
|
|
}
|