2026-06-11 15:04:50 +08:00
|
|
|
{
|
|
|
|
|
"$schema": "https://unpkg.com/knip@5/schema.json",
|
|
|
|
|
"exclude": ["duplicates"],
|
2026-07-17 12:01:37 +08:00
|
|
|
"ignoreBinaries": ["bwrap", "python3", "sandbox-exec"],
|
2026-07-16 21:36:43 +08:00
|
|
|
"ignoreWorkspaces": ["vendor/*", "python/sdk-runtime", "website"],
|
2026-06-11 15:04:50 +08:00
|
|
|
"workspaces": {
|
|
|
|
|
".": {
|
2026-07-17 15:42:35 +08:00
|
|
|
"project": ["scripts/**/*.ts"]
|
|
|
|
|
},
|
|
|
|
|
"examples": {
|
2026-06-16 11:10:25 +08:00
|
|
|
"entry": [
|
2026-07-17 15:42:35 +08:00
|
|
|
"echo-agent/src/*.ts",
|
2026-07-19 18:47:34 +08:00
|
|
|
"echo-agent/tests/fixtures/goal/goal/seed-goal.ts",
|
2026-07-19 13:32:04 +08:00
|
|
|
"headless-agent/tests/fixtures/cli-mock-llm.ts",
|
2026-07-19 01:09:20 +08:00
|
|
|
"tui-agent/tests/fixtures/tui-scripted-llm.ts",
|
2026-07-17 15:42:35 +08:00
|
|
|
"*/tests/**/*.e2e.ts",
|
|
|
|
|
"*/tests/**/*.snapshot.ts"
|
2026-06-16 11:10:25 +08:00
|
|
|
],
|
2026-07-17 15:42:35 +08:00
|
|
|
"project": ["**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["@deepseek-ai/.+", "@cordisjs/.+"]
|
2026-06-11 15:04:50 +08:00
|
|
|
},
|
2026-06-20 22:55:20 +08:00
|
|
|
"packages/*/*": {
|
2026-06-11 15:04:50 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-13 00:28:29 +08:00
|
|
|
},
|
2026-07-09 16:05:44 +08:00
|
|
|
"packages/bash/bash-sandbox": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-14 21:45:54 +08:00
|
|
|
"packages/context/time-context": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
2026-07-09 16:05:44 +08:00
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-09 15:42:37 +08:00
|
|
|
"packages/sandbox/sandbox-local": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-06-21 07:17:25 +08:00
|
|
|
"packages/util/brand": {
|
|
|
|
|
"project": ["src/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-07-12 16:30:01 +08:00
|
|
|
"packages/util/home": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-07-06 16:23:52 +08:00
|
|
|
"packages/util/timeout": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-07-07 09:31:53 +08:00
|
|
|
"packages/util/retention": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
2026-07-08 01:44:20 +08:00
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
|
|
|
|
"packages/support/acp-snapshot": {
|
2026-07-08 02:05:06 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/fixtures/fake-acp-agent.ts"],
|
2026-07-17 15:42:35 +08:00
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-07-08 01:44:20 +08:00
|
|
|
},
|
2026-07-14 05:00:54 +08:00
|
|
|
"packages/support/loader-smoke": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/fixtures/*.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-07-06 04:01:56 +08:00
|
|
|
"packages/core/agent-loop": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-19 18:47:34 +08:00
|
|
|
"packages/goal/goal": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-08 11:00:06 +08:00
|
|
|
"packages/code-runtime/code-runtime-worker": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-06-20 22:55:20 +08:00
|
|
|
"packages/llm/llm-deepseek": {
|
2026-06-13 00:28:29 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-06-20 22:55:20 +08:00
|
|
|
"packages/llm/llm-pi-ai": {
|
2026-06-13 00:28:29 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-21 12:03:44 +08:00
|
|
|
},
|
2026-07-16 16:01:06 +08:00
|
|
|
"packages/context/workspace-context": {
|
2026-07-05 16:49:39 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-06-29 21:42:23 +08:00
|
|
|
"packages/util/paths": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-06-25 15:04:12 +08:00
|
|
|
"packages/web/web-search-exa": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
|
|
|
|
"packages/web/web-search-perplexity": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-09 19:06:55 +08:00
|
|
|
"packages/workflow/workflow-workerthread": {
|
2026-07-06 00:53:17 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-25 15:04:12 +08:00
|
|
|
},
|
2026-06-29 15:21:12 +08:00
|
|
|
"packages/web/web-search-deepseek": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-15 15:57:57 +08:00
|
|
|
"packages/examples/acp-demo": {
|
2026-06-21 12:03:44 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-21 15:13:57 +08:00
|
|
|
},
|
2026-07-14 08:59:33 +08:00
|
|
|
"packages/ui/jsonrpc": {
|
2026-07-06 00:53:17 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-22 05:58:40 +08:00
|
|
|
},
|
2026-07-15 15:57:57 +08:00
|
|
|
"packages/examples/stdio-demo": {
|
2026-06-21 15:13:57 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-22 05:58:40 +08:00
|
|
|
},
|
2026-07-15 21:21:24 +08:00
|
|
|
"packages/examples/cli-demo": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-15 02:02:11 +08:00
|
|
|
"packages/ui/stdio": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-18 22:31:04 +08:00
|
|
|
"packages/ui/tui": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.snapshot.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
2026-07-15 15:57:57 +08:00
|
|
|
"packages/examples/jsonrpc-demo": {
|
2026-07-11 14:08:12 +08:00
|
|
|
"project": ["src/**/*.ts"]
|
|
|
|
|
},
|
2026-07-15 18:17:38 +08:00
|
|
|
"packages/sdk/create-sdk": {
|
|
|
|
|
"entry": ["src/bin.ts", "tests/**/*.spec.ts", "tests/**/*.e2e.ts", "tests/**/*.snapshot.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
|
|
|
},
|
|
|
|
|
"packages/sdk/scripts": {
|
|
|
|
|
"entry": ["src/bin.ts", "tests/**/*.spec.ts", "tests/**/*.snapshot.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["node-addon-require-builtin"]
|
|
|
|
|
},
|
2026-06-22 05:58:40 +08:00
|
|
|
"packages/subagent/subagent-spawn": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-06-22 10:47:02 +08:00
|
|
|
},
|
|
|
|
|
"packages/subagent/subagent-acp": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts", "tests/mock-acp-server.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-07-02 20:47:20 +08:00
|
|
|
},
|
2026-07-09 13:42:03 +08:00
|
|
|
"packages/subagent/subagent-subprocess": {
|
2026-07-08 15:31:14 +08:00
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["cordis"]
|
|
|
|
|
},
|
2026-07-02 20:47:20 +08:00
|
|
|
"packages/fs/tool-fs": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
2026-07-08 13:01:00 +08:00
|
|
|
},
|
2026-07-09 20:44:32 +08:00
|
|
|
"packages/fs/tool-fs-search": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreBinaries": ["rg"]
|
2026-07-17 18:21:54 +08:00
|
|
|
},
|
2026-07-08 13:01:00 +08:00
|
|
|
"packages/mcp/mcp-client": {
|
|
|
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts", "tests/fixture-server.ts"],
|
|
|
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"],
|
|
|
|
|
"ignoreDependencies": ["@modelcontextprotocol/server-everything", "@modelcontextprotocol/server-filesystem"]
|
2026-06-11 15:04:50 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|