The data layer no longer depends on the React glue package, and business plugins no longer depend on web-react at all: - The store engine (zustand vanilla + immer + persist + dev freeze), defineStore, and shallowEqual move to @deepseek-ai/dsh-client-runtime, exported from the ./client main entry — no ./store subpath survives on either package (the web-react one is deleted, none is opened on runtime). - Store products are bare snapshot sources: useSelector leaves SnapshotStore/StoreInstance and Session; every hook is composed at the binding site in web-react's renderer (per-source cached uSES binding). The SlotRendererHost sessions face carries bare observables only. - SessionProvider becomes a standard-kit seat: an entry whose children declare a session-scope slot receives the framework component as a prop, retiring the last value import of web-react from plugin packages. UseSession and the session-area types now live in ui-slots. - web-react shrinks to the shell-only React glue (renderer, providers, uSES bridge); zustand/immer belong to runtime alone; the module-table seed and tsdown externals drop the web-react/store seat. - NODE_ENV replacement is defined once in the shared tsdown client preset (browser bundles inline the engine and lost vite's define); the 3-line process.env typecheck shim moves to runtime with the engine. - Stray tsc artifacts (.js/.d.ts/.d.ts.map beside sources under src/) swept repo-wide; they shadow real sources under vitest resolution. Verified: both aggregate typecheck programs at zero; 604 client tests green; repo-wide grep for web-react/store at zero; real-host playwright run 7/7 including persist round-trip. ci: fix test/docs
574 lines
12 KiB
JSON
574 lines
12 KiB
JSON
{
|
|
"$schema": "https://unpkg.com/knip@5/schema.json",
|
|
"exclude": [
|
|
"duplicates"
|
|
],
|
|
"ignoreBinaries": [
|
|
"bwrap",
|
|
"python3",
|
|
"sandbox-exec"
|
|
],
|
|
"ignoreWorkspaces": [
|
|
"vendor/*",
|
|
"python/sdk-runtime"
|
|
],
|
|
"ignoreDependencies": [
|
|
"lightningcss"
|
|
],
|
|
"workspaces": {
|
|
".": {
|
|
"entry": [
|
|
"scripts/**/*.mjs"
|
|
],
|
|
"project": [
|
|
"scripts/**/*.ts",
|
|
"scripts/**/*.mjs"
|
|
]
|
|
},
|
|
"examples": {
|
|
"entry": [
|
|
"headless-agent/tests/fixtures/cli-mock-llm.ts",
|
|
"headless-agent/tests/fixtures/goal-domain/seed-goal.ts",
|
|
"headless-agent/tests/fixtures/time-context-driver.ts",
|
|
"headless-agent/tests/fixtures/time-context-mock-llm.ts",
|
|
"acp-agent/tests/snapshots/lsp-definition/workspace/subject.ts",
|
|
"tui-agent/tests/fixtures/tui-scripted-llm.ts",
|
|
"acp-agent/tests/fixtures/subagent/subagent-acp/mock-delegating-llm.ts",
|
|
"acp-agent/tests/fixtures/subagent/subagent-acp/driver.ts",
|
|
"*/tests/**/*.e2e.ts",
|
|
"*/tests/**/*.snapshot.ts"
|
|
],
|
|
"project": [
|
|
"**/*.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@deepseek-ai/.+",
|
|
"@cordisjs/.+"
|
|
]
|
|
},
|
|
"packages/util/home": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/host/webserver": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/host/runtime": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@deepseek-ai/dsh-client-.+"
|
|
]
|
|
},
|
|
"packages/client/web-ui": {
|
|
"entry": [
|
|
"tests/**/*.spec.{ts,tsx}"
|
|
],
|
|
"project": [
|
|
"src/**/*.{ts,tsx}",
|
|
"tests/**/*.{ts,tsx}"
|
|
]
|
|
},
|
|
"packages/client/runtime": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/client/ui-primitives": {
|
|
"entry": [
|
|
"tests/**/*.spec.tsx"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"tests/**/*.tsx"
|
|
]
|
|
},
|
|
"packages/client/web-react": {
|
|
"entry": [
|
|
"tests/**/*.spec.tsx"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"tests/**/*.tsx"
|
|
]
|
|
},
|
|
"packages/client/ui-layout": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.spec.tsx"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"tests/**/*.ts",
|
|
"tests/**/*.tsx"
|
|
]
|
|
},
|
|
"website": {
|
|
"project": [
|
|
"**/*.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@braintree/sanitize-url",
|
|
"cytoscape",
|
|
"cytoscape-cose-bilkent",
|
|
"dayjs",
|
|
"debug"
|
|
]
|
|
},
|
|
"packages/*/*": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/bash/bash-sandbox": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/context/time-context": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/lsp/lsp-local": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts",
|
|
"tests/fixture-server.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"typescript-language-server"
|
|
]
|
|
},
|
|
"packages/sandbox/sandbox-local": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/util/brand": {
|
|
"project": [
|
|
"src/**/*.ts"
|
|
]
|
|
},
|
|
"packages/util/timeout": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/util/retention": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/support/acp-snapshot": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/fixtures/fake-acp-agent.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/support/loader-smoke": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/fixtures/*.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/core/agent-loop": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/goal/goal": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/goal/goal-session": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/goal/tool-goal": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/code-runtime/code-runtime-worker": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/llm/llm-deepseek": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/llm/llm-pi-ai": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/session-title/session-title-first-message-llm": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/context/workspace-context": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/session-persistence/session-checkpoint-policy": {
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
},
|
|
"packages/util/paths": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"packages/workflow/workflow-workerthread": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/web/web-search-deepseek": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/examples/acp-demo": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/examples/agent-spine-demo": {
|
|
"entry": ["tests/**/*.spec.ts", "tests/**/*.e2e.ts"],
|
|
"project": ["src/**/*.ts", "tests/**/*.ts"]
|
|
},
|
|
"packages/ui/jsonrpc": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/ui/commands": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/examples/tui-demo": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/examples/cli-demo": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/ui/tui": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.snapshot.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/examples/jsonrpc-demo": {
|
|
"project": [
|
|
"src/**/*.ts"
|
|
]
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"packages/subagent/subagent-spawn": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/subagent/subagent-acp": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts",
|
|
"tests/mock-acp-server.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/subagent/subagent-subprocess": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/fs/tool-fs": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts",
|
|
"tests/**/*.e2e.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
]
|
|
},
|
|
"packages/fs/tool-fs-search": {
|
|
"entry": [
|
|
"tests/**/*.spec.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
],
|
|
"ignoreBinaries": [
|
|
"rg"
|
|
]
|
|
},
|
|
"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"
|
|
]
|
|
},
|
|
"packages/client/web": {
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"src/**/*.tsx",
|
|
"tests/**/*.tsx"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@deepseek-ai/dsh-client-ui-theme",
|
|
"@deepseek-ai/dsh-client-connection"
|
|
]
|
|
},
|
|
"apps/web": {
|
|
"entry": [
|
|
"tests/**/*.e2e.ts",
|
|
"tests/support.ts"
|
|
],
|
|
"project": [
|
|
"src/**/*.ts",
|
|
"tests/**/*.ts"
|
|
],
|
|
"ignoreDependencies": [
|
|
"@deepseek-ai/dsh-client-runtime",
|
|
"@deepseek-ai/dsh-client-ui-primitives",
|
|
"@deepseek-ai/dsh-client-ui-slots",
|
|
"@deepseek-ai/dsh-client-web-react",
|
|
"@types/react",
|
|
"@types/react-dom",
|
|
"react",
|
|
"react-dom"
|
|
]
|
|
}
|
|
}
|
|
}
|