@chatroomcp/chatroom 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +0 -0
- package/dist/mcp/server/plugin-mcp-registrar.d.ts +26 -0
- package/dist/mcp/server/plugin-mcp-registrar.js +63 -0
- package/dist/mcp/server/tool-support.d.ts +1 -1
- package/dist/operations/operation-log.d.ts +4 -0
- package/dist/operations/operation-log.js +10 -0
- package/dist/plugins/cloud/api-client.d.ts +5 -0
- package/dist/plugins/cloud/api-client.js +10 -0
- package/dist/plugins/cloud/controller.d.ts +1 -0
- package/dist/plugins/cloud/controller.js +5 -0
- package/dist/plugins/plugin-manager.js +6 -2
- package/dist/plugins/process/mcp.d.ts +2 -3
- package/dist/plugins/process/mcp.js +25 -36
- package/dist/plugins/process/plugin.js +3 -6
- package/dist/plugins/process/process-supervisor.d.ts +1 -0
- package/dist/plugins/process/process-supervisor.js +21 -16
- package/dist/plugins/types.d.ts +2 -2
- package/dist/plugins/web/http/cloud-api-router.js +1 -0
- package/dist/plugins/workspace/mcp.d.ts +2 -3
- package/dist/plugins/workspace/mcp.js +38 -67
- package/dist/plugins/workspace/plugin.js +3 -6
- package/dist/web/assets/{index-Cgwn3ot-.css → index-B4927Tpd.css} +1 -1
- package/dist/web/assets/{index-ClD90giy.js → index-KAI80R3I.js} +16 -16
- package/dist/web/index.html +2 -2
- package/package.json +2 -2
|
@@ -10,7 +10,6 @@ import { WorktreeReviewService } from "./worktree-review-service.js";
|
|
|
10
10
|
export const WorkspaceService = createServiceToken("workspace");
|
|
11
11
|
export function createWorkspacePlugin() {
|
|
12
12
|
let value = null;
|
|
13
|
-
let operations = null;
|
|
14
13
|
return {
|
|
15
14
|
id: "workspace",
|
|
16
15
|
async activate(context) {
|
|
@@ -21,17 +20,15 @@ export function createWorkspacePlugin() {
|
|
|
21
20
|
const workspaces = await WorkspaceRuntime.create(new WorkspaceRepository(context.database), git, review, context.config.allowedRoots, context.config.dataDir);
|
|
22
21
|
await workspaces.discoverGitWorkspaces();
|
|
23
22
|
value = { workspaces, git };
|
|
24
|
-
operations = context.operations;
|
|
25
23
|
context.services.provide(WorkspaceService, value);
|
|
26
24
|
},
|
|
27
|
-
registerMcp(
|
|
28
|
-
if (!value
|
|
25
|
+
registerMcp(mcp) {
|
|
26
|
+
if (!value)
|
|
29
27
|
throw new Error("Workspace plugin is not active");
|
|
30
|
-
registerWorkspaceTools(
|
|
28
|
+
registerWorkspaceTools(mcp, value.workspaces);
|
|
31
29
|
},
|
|
32
30
|
deactivate() {
|
|
33
31
|
value = null;
|
|
34
|
-
operations = null;
|
|
35
32
|
},
|
|
36
33
|
};
|
|
37
34
|
}
|