@myrialabs/clopen 0.3.22 → 0.4.1
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/backend/auth/permissions.ts +12 -1
- package/backend/chat/stream-manager.ts +14 -3
- package/backend/database/migrations/040_create_mcp_servers_table.ts +34 -0
- package/backend/database/migrations/index.ts +7 -0
- package/backend/database/queries/index.ts +3 -1
- package/backend/database/queries/mcp-server-queries.ts +166 -0
- package/backend/engine/README.md +2 -2
- package/backend/engine/adapters/codex/message-converter.ts +1 -1
- package/backend/engine/adapters/codex/stream.ts +1 -1
- package/backend/engine/adapters/copilot/message-converter.ts +1 -1
- package/backend/engine/adapters/copilot/stream.ts +1 -1
- package/backend/engine/adapters/qwen/message-converter.ts +1 -1
- package/backend/engine/adapters/qwen/stream.ts +1 -1
- package/backend/engine/docs/adapter-contract.md +2 -2
- package/backend/engine/docs/lessons-learned.md +3 -3
- package/backend/engine/docs/quick-reference.md +1 -1
- package/backend/git/git-parser.ts +58 -29
- package/backend/git/git-service.ts +79 -10
- package/backend/git/git-spawn-validation.ts +3 -3
- package/backend/index.ts +5 -1
- package/backend/mcp/README.md +67 -32
- package/backend/mcp/external/config.ts +200 -0
- package/backend/mcp/external/registry-client.ts +214 -0
- package/backend/mcp/external/types.ts +69 -0
- package/backend/mcp/index.ts +104 -19
- package/backend/mcp/{config.ts → internal/config.ts} +82 -18
- package/backend/mcp/{remote-server.test.ts → internal/remote-server.test.ts} +3 -3
- package/backend/mcp/{servers → internal/servers}/browser-automation/actions.ts +1 -1
- package/backend/mcp/{servers → internal/servers}/browser-automation/browser.ts +1 -1
- package/backend/mcp/{servers → internal/servers}/browser-automation/index.ts +2 -0
- package/backend/mcp/{servers → internal/servers}/browser-automation/inspection.ts +1 -1
- package/backend/mcp/{servers → internal/servers}/helper.ts +11 -0
- package/backend/mcp/{servers → internal/servers}/index.ts +0 -2
- package/backend/mcp/{types.ts → internal/types.ts} +3 -3
- package/backend/mcp/shared/constants.ts +66 -0
- package/backend/projects/project-cleanup.ts +1 -1
- package/backend/ws/engine/index.ts +3 -1
- package/backend/ws/engine/restart.ts +54 -0
- package/backend/ws/git/branch.ts +3 -2
- package/backend/ws/git/commit.ts +14 -0
- package/backend/ws/git/remote.ts +85 -0
- package/backend/ws/index.ts +5 -1
- package/backend/ws/mcp/catalog.ts +56 -0
- package/backend/ws/mcp/crud.ts +174 -0
- package/backend/ws/mcp/index.ts +18 -0
- package/backend/ws/settings/crud.ts +31 -0
- package/dist/assets/main-DKLZPDUN.css +1 -0
- package/dist/assets/main-qT_RedHf.js +377 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/shared/types/git.ts +4 -0
- package/shared/types/stores/settings.ts +2 -0
- package/backend/mcp/servers/weather/get-temperature.ts +0 -56
- package/backend/mcp/servers/weather/index.ts +0 -31
- package/dist/assets/main-Ba19ADkk.js +0 -377
- package/dist/assets/main-CwCZzMVm.css +0 -1
- /package/backend/mcp/{output-validator.test.ts → internal/output-validator.test.ts} +0 -0
- /package/backend/mcp/{output-validator.ts → internal/output-validator.ts} +0 -0
- /package/backend/mcp/{project-context.test.ts → internal/project-context.test.ts} +0 -0
- /package/backend/mcp/{project-context.ts → internal/project-context.ts} +0 -0
- /package/backend/mcp/{remote-server.ts → internal/remote-server.ts} +0 -0
package/dist/index.html
CHANGED
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
}
|
|
59
59
|
})();
|
|
60
60
|
</script>
|
|
61
|
-
<script type="module" crossorigin src="/assets/main-
|
|
62
|
-
<link rel="stylesheet" crossorigin href="/assets/main-
|
|
61
|
+
<script type="module" crossorigin src="/assets/main-qT_RedHf.js"></script>
|
|
62
|
+
<link rel="stylesheet" crossorigin href="/assets/main-DKLZPDUN.css">
|
|
63
63
|
</head>
|
|
64
64
|
<body
|
|
65
65
|
class="min-h-dvh bg-white text-slate-900 dark:bg-slate-950 dark:text-slate-100 transition-colors duration-200"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrialabs/clopen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "All-in-one web workspace for Claude Code & OpenCode — chat, terminal, git, browser preview, checkpoints, and real-time collaboration",
|
|
5
5
|
"author": "Myria Labs",
|
|
6
6
|
"license": "MIT",
|
package/shared/types/git.ts
CHANGED
|
@@ -50,6 +50,10 @@ export interface GitBranch {
|
|
|
50
50
|
ahead: number;
|
|
51
51
|
behind: number;
|
|
52
52
|
lastCommit?: string;
|
|
53
|
+
/** Commit subject of the branch tip */
|
|
54
|
+
lastCommitMessage?: string;
|
|
55
|
+
/** ISO 8601 committer date of the branch tip, for "created/updated X ago" UI */
|
|
56
|
+
lastCommitDate?: string;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
/** In-progress git operation that leaves the repo in a detached/transitional state */
|
|
@@ -54,6 +54,8 @@ export interface AppSettings {
|
|
|
54
54
|
gitDiffSideBySide: boolean;
|
|
55
55
|
/** AI commit message generator configuration */
|
|
56
56
|
commitGenerator: CommitGeneratorSettings;
|
|
57
|
+
/** Pinned model IDs — shown at top of provider group in model picker */
|
|
58
|
+
pinnedModels: string[];
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
/** Authentication mode */
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Get Temperature Handler
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export async function getTemperatureHandler(args: { latitude: number; longitude: number }) {
|
|
6
|
-
try {
|
|
7
|
-
// Call Open-Meteo API (no API key required)
|
|
8
|
-
const url = `https://api.open-meteo.com/v1/forecast?latitude=${args.latitude}&longitude=${args.longitude}¤t=temperature_2m&temperature_unit=fahrenheit`;
|
|
9
|
-
|
|
10
|
-
const response = await fetch(url);
|
|
11
|
-
|
|
12
|
-
if (!response.ok) {
|
|
13
|
-
return {
|
|
14
|
-
content: [{
|
|
15
|
-
type: "text" as const,
|
|
16
|
-
text: `Failed to fetch weather data: ${response.status} ${response.statusText}`
|
|
17
|
-
}],
|
|
18
|
-
isError: true
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const data = await response.json();
|
|
23
|
-
|
|
24
|
-
// Check if temperature data is available
|
|
25
|
-
if (!data.current || data.current.temperature_2m === undefined) {
|
|
26
|
-
return {
|
|
27
|
-
content: [{
|
|
28
|
-
type: "text" as const,
|
|
29
|
-
text: "Temperature data not available for this location."
|
|
30
|
-
}],
|
|
31
|
-
isError: true
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
const temperature = data.current.temperature_2m;
|
|
36
|
-
const unit = data.current_units?.temperature_2m || "°F";
|
|
37
|
-
|
|
38
|
-
return {
|
|
39
|
-
content: [{
|
|
40
|
-
type: "text" as const,
|
|
41
|
-
text: `Temperature: ${temperature}${unit}`
|
|
42
|
-
}]
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
} catch (error) {
|
|
46
|
-
const errorMessage = error instanceof Error ? error.message : 'Unknown error';
|
|
47
|
-
|
|
48
|
-
return {
|
|
49
|
-
content: [{
|
|
50
|
-
type: "text" as const,
|
|
51
|
-
text: `Error fetching temperature: ${errorMessage}`
|
|
52
|
-
}],
|
|
53
|
-
isError: true
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Weather Service - Custom MCP Server
|
|
3
|
-
*
|
|
4
|
-
* Provides weather-related tools using the Open-Meteo API.
|
|
5
|
-
* No API key required.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { z } from "zod";
|
|
9
|
-
import { defineServer } from "../helper";
|
|
10
|
-
import { getTemperatureHandler } from "./get-temperature";
|
|
11
|
-
|
|
12
|
-
export default defineServer({
|
|
13
|
-
name: "weather-service",
|
|
14
|
-
version: "1.0.0",
|
|
15
|
-
tools: {
|
|
16
|
-
"get_temperature": {
|
|
17
|
-
description: "Get current temperature for a location using coordinates. Returns temperature in Fahrenheit.",
|
|
18
|
-
schema: {
|
|
19
|
-
latitude: z.number()
|
|
20
|
-
.min(-90)
|
|
21
|
-
.max(90)
|
|
22
|
-
.describe("Latitude coordinate (-90 to 90)"),
|
|
23
|
-
longitude: z.number()
|
|
24
|
-
.min(-180)
|
|
25
|
-
.max(180)
|
|
26
|
-
.describe("Longitude coordinate (-180 to 180)")
|
|
27
|
-
},
|
|
28
|
-
handler: getTemperatureHandler
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|