diff --git a/knip.jsonc b/knip.jsonc new file mode 100644 index 00000000..001bb230 --- /dev/null +++ b/knip.jsonc @@ -0,0 +1,51 @@ +{ + "$schema": "https://unpkg.com/knip@6.16.1/schema.json", + "entry": [ + "index.ts", + "lib/index.ts", + "lib/auth/index.ts", + "lib/request/index.ts", + "lib/codex-cli/index.ts", + "lib/ui/index.ts", + "scripts/*.{js,mjs}", + "test/**/*.test.ts", + "test/helpers/**/*.ts" + ], + "project": [ + "lib/**/*.ts", + "scripts/**/*.{js,mjs}", + "index.ts", + "test/**/*.ts" + ], + "ignore": [ + "bench/**", + "vendor/**", + "dist/**", + "docs/**" + ], + "ignoreBinaries": [ + "powershell.exe", + "pbcopy", + "where" + ], + "ignoreDependencies": [ + // Editor-only LSP tooling; never imported. + "typescript-language-server", + // The official Codex CLI this package wraps: resolved from the HOST + // install at runtime (scripts/codex-bin-resolver.js), deliberately not + // a package.json dependency. + "@openai/codex" + ], + // Export/type-level findings are warn-only on purpose: the blocking signal + // is unused FILES and DEPENDENCIES. The export backlog was cleared + // incrementally (PRs #556/#557, down to two documented keepers); escalate a + // rule to "error" once its warning count is intentionally pinned at zero. + "rules": { + "exports": "warn", + "types": "warn", + "nsExports": "warn", + "nsTypes": "warn", + "duplicates": "warn", + "enumMembers": "warn" + } +} diff --git a/package-lock.json b/package-lock.json index 7f1b6131..32532d57 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,6 @@ "mcodex": "scripts/mcodex.js" }, "devDependencies": { - "@fast-check/vitest": "^0.2.4", "@types/node": "^20.19.42", "@typescript-eslint/eslint-plugin": "^8.56.0", "@typescript-eslint/parser": "^8.56.0", @@ -686,29 +685,6 @@ "node": "^20.19.0 || ^22.13.0 || >=24" } }, - "node_modules/@fast-check/vitest": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/@fast-check/vitest/-/vitest-0.2.4.tgz", - "integrity": "sha512-Ilcr+JAIPhb1s6FRm4qoglQYSGXXrS+zAupZeNuWAA3qHVGDA1d1Gb84Hb/+otL3GzVZjFJESg5/1SfIvrgssA==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" - } - ], - "license": "MIT", - "dependencies": { - "fast-check": "^3.0.0 || ^4.0.0" - }, - "peerDependencies": { - "vitest": "^1 || ^2 || ^3 || ^4" - } - }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", diff --git a/package.json b/package.json index 916d87a1..edfb5673 100644 --- a/package.json +++ b/package.json @@ -156,7 +156,6 @@ "node": ">=18.17.0" }, "devDependencies": { - "@fast-check/vitest": "^0.2.4", "@types/node": "^20.19.42", "@typescript-eslint/eslint-plugin": "^8.56.0", "@typescript-eslint/parser": "^8.56.0",