From 31f9024046ae9d01ad19334f4e315334a0c7e18d Mon Sep 17 00:00:00 2001 From: Haozhe Date: Wed, 17 Jun 2026 21:11:36 +0800 Subject: [PATCH] chore(daemon): remove unused daemon package and stale references (#852) - delete packages/daemon package.json - drop daemon from flake.nix workspace paths/names and pnpm-lock.yaml - remove dead daemon-e2e Dockerfile gitignore negation - update stale daemon references in DiffView and PromptDispatchLogEntry comments --- .changeset/README.md | 1 - .changeset/config.json | 1 - .gitignore | 1 - apps/kimi-web/src/components/DiffView.vue | 2 +- flake.nix | 2 -- packages/agent-core/src/services/prompt/prompt.ts | 6 +++--- packages/daemon/package.json | 5 ----- pnpm-lock.yaml | 2 -- 8 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 packages/daemon/package.json diff --git a/.changeset/README.md b/.changeset/README.md index 49b0efd33..dd568888b 100644 --- a/.changeset/README.md +++ b/.changeset/README.md @@ -29,7 +29,6 @@ All other workspace packages are private internal packages, are not published to - `@moonshot-ai/vis` - `@moonshot-ai/vis-server` - `@moonshot-ai/vis-web` -- `daemon` - `kimi-migration-legacy` Version impact from internal dependencies must be judged manually. The published artifacts for CLI and SDK bundle internal workspace packages into the artifact itself; runtime `dependencies` of published packages must not include any `@moonshot-ai/*` internal workspace packages. diff --git a/.changeset/config.json b/.changeset/config.json index 60653082f..227d94e00 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -21,7 +21,6 @@ "@moonshot-ai/vis", "@moonshot-ai/vis-server", "@moonshot-ai/vis-web", - "daemon", "kimi-migration-legacy" ], "snapshot": { diff --git a/.gitignore b/.gitignore index 33fcb0805..602aa5038 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,6 @@ superpowers .worktrees/ Dockerfile -!packages/daemon-e2e/Dockerfile docker-compose.yml .dockerignore diff --git a/apps/kimi-web/src/components/DiffView.vue b/apps/kimi-web/src/components/DiffView.vue index 7f306eefd..bebf43a5d 100644 --- a/apps/kimi-web/src/components/DiffView.vue +++ b/apps/kimi-web/src/components/DiffView.vue @@ -77,7 +77,7 @@ function badgeGlyph(s: string): string { /** * Truncate a long path from the left, showing the tail. - * e.g. "packages/daemon/src/middleware/schema.ts" → "…leware/schema.ts" + * e.g. "packages/agent-core/src/services/session/sessionService.ts" → "…sion/sessionService.ts" */ function truncateLeft(path: string, maxLen = 60): string { if (path.length <= maxLen) return path; diff --git a/flake.nix b/flake.nix index 5aa699ad0..88a79f610 100644 --- a/flake.nix +++ b/flake.nix @@ -64,7 +64,6 @@ workspacePaths = [ ./packages/acp-adapter ./packages/agent-core - ./packages/daemon ./packages/server ./packages/server-e2e ./packages/kaos @@ -100,7 +99,6 @@ "@moonshot-ai/vis" "@moonshot-ai/vis-server" "@moonshot-ai/vis-web" - "daemon" "kimi-code-docs" "kimi-migration-legacy" ]; diff --git a/packages/agent-core/src/services/prompt/prompt.ts b/packages/agent-core/src/services/prompt/prompt.ts index 0c6dd4ae4..fa8bd72bd 100644 --- a/packages/agent-core/src/services/prompt/prompt.ts +++ b/packages/agent-core/src/services/prompt/prompt.ts @@ -350,9 +350,9 @@ export interface AgentStateSnapshot { * One dispatch record appended to the per-session ring buffer whenever * `PromptService._applyAgentState` actually issues a setter RPC against * `core.rpc.*`. Absence of an entry between two prompts proves the - * shadow suppressed a redundant call — which is the property - * `daemon-e2e` scenarios need to assert directly, since WS frames - * alone can't distinguish "state held" from "setter re-dispatched". + * shadow suppressed a redundant call — letting tests assert "state held" + * versus "setter re-dispatched", since WS frames alone can't distinguish + * the two. */ export interface PromptDispatchLogEntry { /** ISO-8601 timestamp captured immediately after the setter resolves. */ diff --git a/packages/daemon/package.json b/packages/daemon/package.json deleted file mode 100644 index e5dbad47c..000000000 --- a/packages/daemon/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "daemon", - "version": "0.0.0", - "private": true -} \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9bd3027bf..723961f2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -439,8 +439,6 @@ importers: specifier: ^3.3.1 version: 3.3.1 - packages/daemon: {} - packages/kaos: dependencies: pathe: