Repository navigation
WIP: move shared mcpx daemon files into plugin core #7166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
41bc659
cc5cdff
9dd72a5
4265f3b
3ebb272
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,7 +23,7 @@ import { | |
| type Discovery, | ||
| type DiscoverOptions, | ||
| type Target, | ||
| } from "./mcpx/daemon.ts"; | ||
| } from "../core/daemon.ts"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For users following Useful? React with 👍 / 👎. |
||
| // The only reliable way to tell, in v1, whether anyone is looking at a | ||
| // screen. See `headless` below. | ||
| import { isMainThread } from "node:worker_threads"; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| /** | ||
| * The daemon core is harness-free and shared with v1: discovery, the /v1 | ||
| * socket client, ranking and the remembered-target types all live in | ||
| * ../mcpx/daemon.ts and are imported unchanged (design doc §5). This module | ||
| * ../../core/daemon.ts and are imported unchanged (design doc §5). This module | ||
| * exists so the v2 tree names its dependency in one place. | ||
| */ | ||
| export * from "../mcpx/daemon.ts"; | ||
| export * from "../../core/daemon.ts"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When OpenCode loads the repository's
.opencode/plugin/mcpx-session.ts, this import resolves to.opencode/core/daemon.ts, but the relocated file is at.opencode/plugin/core/daemon.ts. A repository-wide path search confirms there is no.opencode/core/daemon.ts. Consequently, the dogfood plugin fails during module loading, disabling its session/environment hooks and tools. The source and dogfood adapters now have different relative layouts, so copying the source adapter unchanged no longer works; adjust the deployed layout or its import and corresponding sync check.Useful? React with 👍 / 👎.