mirror of
https://github.com/sdwolf4103/opencode-working-memory.git
synced 2026-06-02 06:19:36 +02:00
1bba0511bb
## Task 1: Fix exitCode undefined false positive - Add `typeof exitCode !== "number"` check in plugin.ts - Only extract errors when exitCode is explicitly non-zero - Prevent git-log/cat with "errors" text from creating false positives ## Task 2: Fix workspace memory XML truncation - Budget-aware line-by-line rendering - Always include closing </workspace_memory> tag - Return empty string when budget too small - Bonus: canonical exact deduplication with source priority ## Task 3: Remove "always" as trigger - Replace "always" with "going forward" in patterns - Add word boundary via `g` flag and matchAll loop - "from now on" still works as expected ## Task 4: Verification - 22 tests passing - typecheck passing Tests cover: - git log/cat with loose "errors" ignored - TS2345/TypeError strong signals captured - undefined exitCode: no create, no clear - exitCode 0: clears errors - exitCode non-zero: creates error - XML never truncated mid-tag - "always" not a trigger
31 lines
869 B
JSON
31 lines
869 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"module": "NodeNext",
|
|
"lib": ["ES2022"],
|
|
"moduleResolution": "NodeNext",
|
|
"types": ["node", "bun-types"],
|
|
"esModuleInterop": true,
|
|
"skipLibCheck": true,
|
|
"strict": false,
|
|
"noImplicitAny": false,
|
|
"strictNullChecks": false,
|
|
"strictFunctionTypes": false,
|
|
"strictBindCallApply": false,
|
|
"strictPropertyInitialization": false,
|
|
"noImplicitThis": false,
|
|
"alwaysStrict": true,
|
|
"noUnusedLocals": false,
|
|
"noUnusedParameters": false,
|
|
"noImplicitReturns": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"forceConsistentCasingInFileNames": true,
|
|
"resolveJsonModule": true,
|
|
"allowSyntheticDefaultImports": true,
|
|
"allowImportingTsExtensions": true,
|
|
"noEmit": true
|
|
},
|
|
"include": ["index.ts", "src/**/*.ts"],
|
|
"exclude": ["node_modules", "dist"]
|
|
}
|