mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 04:51:35 +00:00
* feat(tooling): extend strict-ratchet lane to all remaining leaf packages * fix(packages): burn down indexed-access debt in ai and agent-core All 196 noUncheckedIndexedAccess errors fixed behavior-identically (iteration, .at()/slices, DataView byte math, guarded queue peeks) plus cleanup finds: a sparse-tool diagnostic bug, deduplicated Responses call/item ID parsing with an honest string|undefined splitter, and a clearer local failure for redacted-thinking blocks missing signatures. Removes all 17 remaining non-null assertions across ai, gateway-client, and llm-core so the assertion ban aligns 1:1 with the ratchet lane. speech-core joins memory-host-sdk as structurally deferred (imports src/** via plugin-sdk path mappings).
38 lines
1.5 KiB
JSON
38 lines
1.5 KiB
JSON
// noUncheckedIndexedAccess ratchet: grow include as directories migrate.
|
|
// Keep aligned with the oxlint no-non-null-assertion override and changed-lanes routing.
|
|
// Delete this lane when the base tsconfig enables noUncheckedIndexedAccess.
|
|
// memory-host-sdk and speech-core are excluded: they import core src/** (directly
|
|
// or via openclaw/plugin-sdk path mappings), so the flag
|
|
// would apply transitively to all of core; they migrate together with src/.
|
|
{
|
|
"extends": "./tsconfig.json",
|
|
"compilerOptions": {
|
|
"noUncheckedIndexedAccess": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"tsBuildInfoFile": ".artifacts/tsgo-cache/strict-ratchet.tsbuildinfo"
|
|
},
|
|
"include": [
|
|
"packages/markdown-core/src/**/*",
|
|
"packages/net-policy/src/**/*",
|
|
"packages/media-understanding-common/src/**/*",
|
|
"packages/terminal-core/src/**/*",
|
|
"packages/normalization-core/src/**/*",
|
|
"packages/model-catalog-core/src/**/*",
|
|
"packages/web-content-core/src/**/*",
|
|
"packages/ai/src/**/*",
|
|
"packages/agent-core/src/**/*",
|
|
"packages/acp-core/src/**/*",
|
|
"packages/gateway-client/src/**/*",
|
|
"packages/gateway-protocol/src/**/*",
|
|
"packages/llm-core/src/**/*",
|
|
"packages/media-core/src/**/*",
|
|
"packages/media-generation-core/src/**/*",
|
|
"packages/plugin-package-contract/src/**/*",
|
|
"packages/sdk/src/**/*",
|
|
"src/**/*.d.ts",
|
|
"packages/**/*.d.ts"
|
|
],
|
|
"exclude": ["node_modules", "dist", "**/dist/**", "**/*.test.ts", "**/*.test.tsx", "test/**"]
|
|
}
|