Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/neat-lies-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@inkeep/agents-core": minor
"@inkeep/agents-sdk": minor
"@inkeep/agents-api": minor
"@inkeep/agents-cli": minor
---

chore: remove unused files
15 changes: 15 additions & 0 deletions .changeset/remove-unused-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
"@inkeep/agents-core": patch
"@inkeep/agents-sdk": patch
"@inkeep/agents-api": patch
"@inkeep/agents-cli": patch
"@inkeep/agents-manage-ui": patch
"@inkeep/agents-work-apps": patch
---

Remove unused files and add knip configuration for detecting unused code

- Remove 21 unused files identified by knip analysis including test utilities, analytics code, example files, and unused utilities
- Add root knip.config.ts configuration to detect unused code going forward
- Update package.json dependencies to remove unused packages (dotenv, ora, inquirer in agents-cli)
- Clean up vitest configuration files and consolidate test setup
10 changes: 0 additions & 10 deletions .opencode/plugin/notification.js

This file was deleted.

9 changes: 0 additions & 9 deletions agents-api/knip.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import type { KnipConfig } from 'knip';

export default {
ignoreIssues: {
'agents-api/tsdown.config.ts': ['files'],
// these are being disabled for now
'agents-api/src/domains/manage/routes/evals/datasetRunConfigs.ts': ['files'],
'agents-api/src/domains/manage/routes/evals/datasetRuns.ts': ['files'],
// used in agents-api/src/domains/evals/workflow/routes.ts
'agents-api/src/domains/evals/api/.well-known/workflow/v1/flow.ts': ['files'],
'agents-api/src/domains/evals/api/.well-known/workflow/v1/step.ts': ['files'],
},
// Disable the tsdown plugin because Knip treats its `entry` as a usage signal,
// causing all files in the `src` directory to be marked as used.
tsdown: false,
Expand Down
2 changes: 1 addition & 1 deletion agents-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"type": "module",
"license": "SEE LICENSE IN LICENSE.md",
"scripts": {
"knip": "knip --directory .. --workspace agents-api --config agents-api/knip.config.ts --dependencies --files",
"knip": "knip --directory .. --workspace agents-api --config agents-api/knip.config.ts --dependencies",
"workflow:build": "tsx src/domains/evals/scripts/build-workflow.ts",
"well-known:copy": "tsx scripts/copy-well-known.ts",
"dev": "pnpm workflow:build && vite",
Expand Down
4 changes: 0 additions & 4 deletions agents-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,11 +599,7 @@ export PATH="$PATH:/path/to/agents-cli/dist"

- **commander**: Command-line framework
- **chalk**: Terminal styling
- **dotenv**: Environment variable loading
- **ora**: Loading spinners
- **cli-table3**: Table formatting
- **inquirer**: Interactive prompts
- **inquirer-autocomplete-prompt**: Searchable selections

### Development Dependencies

Expand Down
6 changes: 2 additions & 4 deletions agents-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
"cli": "node ./dist/index.js",
"prepare": "pnpm build --no-dts",
"dev": "pnpm build --watch",
"test": "node -e \"process.exit(process.env.CI ? 0 : 1)\" && vitest --run --config vitest.config.ci.ts || vitest --run",
"test": "vitest --run",
"test:debug": "vitest --run --reporter=verbose --no-coverage",
"test:watch": "vitest",
"test:coverage": "node -e \"process.exit(process.env.CI ? 0 : 1)\" && vitest --run --coverage --config vitest.config.ci.ts || vitest --run --coverage",
"test:ci": "vitest --run --config vitest.config.ci.ts",
"test:coverage": "vitest --run --coverage",
"typecheck": "tsc --noEmit --project tsconfig.typecheck.json",
"typecheck:watch": "tsc --noEmit --watch --project tsconfig.typecheck.json"
},
Expand All @@ -48,7 +47,6 @@
"cli-table3": "^0.6.3",
"commander": "^14.0.0",
"degit": "^2.8.4",
"dotenv": "^17.2.1",
"find-up": "^7.0.0",
"fs-extra": "^11.2.0",
"json-schema-to-zod": "^2.6.1",
Expand Down
Loading
Loading