@myrialabs/clopen 0.3.21 → 0.4.0
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 +11 -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/claude/environment.ts +0 -17
- package/backend/engine/adapters/claude/error-handler.ts +0 -4
- 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/engine/install-recipes.ts +26 -95
- package/backend/files/file-operations.test.ts +75 -0
- package/backend/files/file-operations.ts +10 -56
- package/backend/files/image-processing.test.ts +52 -0
- package/backend/files/image-processing.ts +11 -1
- package/backend/files/path-browsing.ts +141 -139
- package/backend/git/git-service.ts +13 -2
- package/backend/http/files-upload.test.ts +174 -0
- package/backend/http/files-upload.ts +27 -7
- package/backend/http/upload-temp-cleanup.ts +53 -0
- package/backend/index.ts +9 -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/internal/remote-server.test.ts +150 -0
- package/backend/mcp/{remote-server.ts → internal/remote-server.ts} +68 -0
- 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/terminal/pty-session-manager.ts +18 -11
- package/backend/ws/engine/index.ts +3 -1
- package/backend/ws/engine/restart.ts +54 -0
- package/backend/ws/files/index.ts +5 -0
- package/backend/ws/files/reveal.ts +61 -0
- package/backend/ws/files/search.test.ts +115 -0
- package/backend/ws/files/search.ts +77 -26
- package/backend/ws/files/write.ts +3 -1
- package/backend/ws/git/branch-name.ts +170 -0
- package/backend/ws/git/branch.ts +15 -2
- package/backend/ws/git/commit-message.ts +8 -2
- package/backend/ws/git/index.ts +3 -1
- 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/user/crud.ts +8 -4
- package/dist/assets/main-B7f2Gzb3.css +1 -0
- package/dist/assets/main-DYt1fDrp.js +383 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/shared/constants/git.ts +5 -0
- package/shared/types/git.ts +5 -0
- package/shared/types/stores/settings.ts +19 -0
- package/backend/mcp/servers/weather/get-temperature.ts +0 -56
- package/backend/mcp/servers/weather/index.ts +0 -31
- package/dist/assets/main-BgOiIS43.js +0 -360
- package/dist/assets/main-CJdJeen6.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/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-DYt1fDrp.js"></script>
|
|
62
|
+
<link rel="stylesheet" crossorigin href="/assets/main-B7f2Gzb3.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.0",
|
|
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
|
@@ -194,3 +194,8 @@ export interface GeneratedCommitMessage {
|
|
|
194
194
|
/** Null for single-line commits — strict-schema engines (Codex) require explicit null over omission. */
|
|
195
195
|
body: string | null;
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
/** Structured branch-name output from AI */
|
|
199
|
+
export interface GeneratedBranchName {
|
|
200
|
+
description: string;
|
|
201
|
+
}
|
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import type { EngineType } from '$shared/types/unified';
|
|
2
2
|
import type { CommitMessageFormat } from '$shared/types/git';
|
|
3
3
|
|
|
4
|
+
export interface CommitMessageConfig {
|
|
5
|
+
style: 'concise' | 'technical' | 'descriptive';
|
|
6
|
+
subjectLength: 50 | 72 | 100;
|
|
7
|
+
allowedTypes: string;
|
|
8
|
+
context: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface BranchNameConfig {
|
|
12
|
+
maxWords: 1 | 2 | 3;
|
|
13
|
+
allowedPrefixes: string;
|
|
14
|
+
context: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
4
17
|
/** AI commit message generator settings */
|
|
5
18
|
export interface CommitGeneratorSettings {
|
|
6
19
|
/** When false, uses the chat model (selectedEngine/selectedModel). When true, uses custom engine/model below. */
|
|
@@ -10,6 +23,10 @@ export interface CommitGeneratorSettings {
|
|
|
10
23
|
modelId: string;
|
|
11
24
|
modelName: string;
|
|
12
25
|
format: CommitMessageFormat;
|
|
26
|
+
/** Separator between prefix and generated description, e.g. '/', '#', '-'. */
|
|
27
|
+
branchSeparator: string;
|
|
28
|
+
commitConfig: CommitMessageConfig;
|
|
29
|
+
branchConfig: BranchNameConfig;
|
|
13
30
|
}
|
|
14
31
|
|
|
15
32
|
/** Per-user settings (stored per user) */
|
|
@@ -37,6 +54,8 @@ export interface AppSettings {
|
|
|
37
54
|
gitDiffSideBySide: boolean;
|
|
38
55
|
/** AI commit message generator configuration */
|
|
39
56
|
commitGenerator: CommitGeneratorSettings;
|
|
57
|
+
/** Pinned model IDs — shown at top of provider group in model picker */
|
|
58
|
+
pinnedModels: string[];
|
|
40
59
|
}
|
|
41
60
|
|
|
42
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
|
-
});
|