@myrialabs/clopen 0.4.43 → 0.4.45
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/artifacts/project/bridge.ts +218 -0
- package/backend/artifacts/project/edit.ts +243 -0
- package/backend/artifacts/project/index.ts +38 -0
- package/backend/artifacts/project/project.test.ts +181 -0
- package/backend/artifacts/project/scan.ts +368 -0
- package/backend/artifacts/project/sources.ts +100 -0
- package/backend/artifacts/sync.ts +1 -1
- package/backend/auth/permissions.ts +15 -0
- package/backend/chat/stream-manager.ts +26 -8
- package/backend/database/migrations/083_create_project_mcp_trust.ts +32 -0
- package/backend/database/migrations/index.ts +7 -0
- package/backend/database/queries/index.ts +2 -0
- package/backend/database/queries/project-mcp-trust-queries.ts +43 -0
- package/backend/engine/adapters/claude/message-converter.ts +6 -2
- package/backend/engine/adapters/claude/stream.ts +36 -8
- package/backend/engine/adapters/cline/mcp-tools.ts +26 -4
- package/backend/engine/adapters/cline/stream.ts +20 -6
- package/backend/engine/adapters/codex/stream.ts +21 -4
- package/backend/engine/adapters/copilot/stream.ts +6 -3
- package/backend/engine/adapters/cursor/stream.ts +19 -8
- package/backend/engine/adapters/opencode/server.ts +14 -4
- package/backend/engine/adapters/opencode/stream.ts +18 -3
- package/backend/engine/adapters/pi/mcp-tools.ts +26 -4
- package/backend/engine/adapters/pi/stream.ts +35 -3
- package/backend/engine/adapters/qwen/message-converter.ts +2 -2
- package/backend/engine/adapters/qwen/stream.ts +8 -0
- package/backend/engine/artifact-sync.ts +12 -5
- package/backend/engine/docs/lessons-learned.md +118 -0
- package/backend/files/file-watcher.test.ts +77 -0
- package/backend/files/file-watcher.ts +92 -60
- package/backend/files/watch-ignore.test.ts +182 -0
- package/backend/files/watch-ignore.ts +244 -0
- package/backend/git/git-executor.ts +14 -4
- package/backend/index.ts +11 -1
- package/backend/instructions/service.ts +5 -3
- package/backend/instructions/sync.ts +10 -27
- package/backend/mcp/external/config.ts +65 -23
- package/backend/mcp/external/project.ts +124 -0
- package/backend/mcp/external/proxy.ts +65 -11
- package/backend/mcp/index.ts +14 -9
- package/backend/mcp/internal/remote-server.ts +11 -1
- package/backend/skills/marketplace.ts +1 -1
- package/backend/snapshot/blob-store.ts +9 -5
- package/backend/snapshot/git-attribution.test.ts +42 -0
- package/backend/snapshot/git-attribution.ts +306 -0
- package/backend/snapshot/gitignore.test.ts +62 -0
- package/backend/snapshot/gitignore.ts +158 -78
- package/backend/snapshot/snapshot-service.test.ts +270 -0
- package/backend/snapshot/snapshot-service.ts +412 -136
- package/backend/snapshot/turn-activity.test.ts +52 -0
- package/backend/snapshot/turn-activity.ts +83 -0
- package/backend/snapshot/turn-changes.test.ts +58 -1
- package/backend/snapshot/turn-changes.ts +66 -0
- package/backend/worktrees/tree.ts +1 -1
- package/backend/ws/chat/composer.ts +504 -0
- package/backend/ws/chat/index.ts +3 -1
- package/backend/ws/chat/stream.ts +252 -440
- package/backend/ws/index.ts +4 -0
- package/backend/ws/project-artifacts/index.ts +236 -0
- package/backend/ws/snapshot/changes.ts +66 -31
- package/dist/assets/{index-BeUKiRiY.js → index-Am-rJRxA.js} +1 -1
- package/dist/assets/{index-B6u8cait.js → index-D-Ad1N96.js} +1 -1
- package/dist/assets/main--PLCDxSy.css +1 -0
- package/dist/assets/main-DelPm2Xt.js +1239 -0
- package/dist/index.html +2 -2
- package/package.json +5 -5
- package/shared/types/stores/settings.ts +5 -0
- package/shared/types/unified/index.ts +2 -0
- package/shared/types/unified/message.ts +2 -0
- package/shared/types/unified/stream.ts +38 -1
- package/dist/assets/main-CMRXlv2f.js +0 -1215
- package/dist/assets/main-DzCY0n-j.css +0 -1
package/dist/index.html
CHANGED
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
}
|
|
64
64
|
})();
|
|
65
65
|
</script>
|
|
66
|
-
<script type="module" crossorigin src="/assets/main-
|
|
67
|
-
<link rel="stylesheet" crossorigin href="/assets/main
|
|
66
|
+
<script type="module" crossorigin src="/assets/main-DelPm2Xt.js"></script>
|
|
67
|
+
<link rel="stylesheet" crossorigin href="/assets/main--PLCDxSy.css">
|
|
68
68
|
</head>
|
|
69
69
|
<body
|
|
70
70
|
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.4.
|
|
3
|
+
"version": "0.4.45",
|
|
4
4
|
"description": "All-in-one web workspace for AI coding agents — Claude Code, OpenCode, Codex, Copilot, Qwen Code, Pi, Cline, and Cursor — with chat, terminal, git, browser preview, database client, checkpoints, and real-time collaboration",
|
|
5
5
|
"author": "Myria Labs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"prepublishOnly": "bun run build"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
81
|
-
"@anthropic-ai/sdk": "0.
|
|
80
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.284",
|
|
81
|
+
"@anthropic-ai/sdk": "0.129.0",
|
|
82
82
|
"@cline/agents": "0.0.74",
|
|
83
83
|
"@cline/sdk": "0.0.74",
|
|
84
84
|
"@cursor/sdk": "1.0.27",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@huggingface/tokenizers": "0.1.3",
|
|
118
118
|
"@iconify-json/lucide": "1.2.96",
|
|
119
119
|
"@iconify-json/material-icon-theme": "1.2.55",
|
|
120
|
-
"@modelcontextprotocol/sdk": "1.
|
|
120
|
+
"@modelcontextprotocol/sdk": "1.31.0",
|
|
121
121
|
"@monaco-editor/loader": "1.7.0",
|
|
122
122
|
"@myrialabs/ptykit": "0.0.7",
|
|
123
123
|
"@myrialabs/tunnelkit": "0.0.15",
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
"ssh2": "1.17.0",
|
|
147
147
|
"systeminformation": "5.33.1",
|
|
148
148
|
"typebox": "1.1.38",
|
|
149
|
-
"zod": "4.
|
|
149
|
+
"zod": "4.6.5"
|
|
150
150
|
},
|
|
151
151
|
"trustedDependencies": [
|
|
152
152
|
"puppeteer",
|
|
@@ -79,6 +79,11 @@ export interface AppSettings {
|
|
|
79
79
|
* else's change is mostly reading the new side.
|
|
80
80
|
*/
|
|
81
81
|
workDiffSideBySide: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Whole-file diffs (a chat's changes) fold the lines no change touches,
|
|
84
|
+
* keeping a little context around each change. Default: true.
|
|
85
|
+
*/
|
|
86
|
+
diffChangesOnly: boolean;
|
|
82
87
|
/** AI commit message generator configuration */
|
|
83
88
|
commitGenerator: CommitGeneratorSettings;
|
|
84
89
|
/** AI authoring model for artifact generation (optional; falls back to assistant model) */
|
|
@@ -80,9 +80,46 @@ export interface SystemInitEvent {
|
|
|
80
80
|
mcpServers: McpServerStatus[];
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* MCP connection state as the engine reported it at session init.
|
|
85
|
+
*
|
|
86
|
+
* The vocabulary is the Claude Agent SDK's, which is the widest any adapter
|
|
87
|
+
* feeds in; `disconnected` is Clopen's own fallback for a producer that sent no
|
|
88
|
+
* status at all (Qwen types the field as a bare `string`). Two of these are not
|
|
89
|
+
* failures and must not raise a toast: `needs-auth` means the server wants
|
|
90
|
+
* credentials configured in Settings → MCP, and `pending` means still
|
|
91
|
+
* connecting — routine since claude-agent-sdk 0.3.282 made MCP servers connect
|
|
92
|
+
* in the background so a slow server no longer delays session start. See the
|
|
93
|
+
* `system_init` arm of stream-manager.ts.
|
|
94
|
+
*/
|
|
83
95
|
export interface McpServerStatus {
|
|
84
96
|
name: string;
|
|
85
|
-
status: 'connected' | '
|
|
97
|
+
status: 'connected' | 'pending' | 'needs-auth' | 'failed' | 'disabled' | 'disconnected';
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const MCP_SERVER_STATUSES = new Set<McpServerStatus['status']>([
|
|
101
|
+
'connected', 'pending', 'needs-auth', 'failed', 'disabled', 'disconnected'
|
|
102
|
+
]);
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Narrow an engine-reported MCP status string into the union above.
|
|
106
|
+
*
|
|
107
|
+
* Every SDK that carries this field types it as a bare `string` — the Claude
|
|
108
|
+
* Agent SDK included, whose own richer `McpServerStatus` belongs to a different
|
|
109
|
+
* API surface than the `system:init` payload. So the value has to be checked,
|
|
110
|
+
* not asserted, and the check lives here rather than beside each call site: a
|
|
111
|
+
* per-adapter copy of the vocabulary is how one of them goes stale while
|
|
112
|
+
* type-checking clean.
|
|
113
|
+
*
|
|
114
|
+
* Anything unrecognised or absent becomes `disconnected`, which reads as
|
|
115
|
+
* "reported nothing usable" and raises a toast. Do not fold it into a soft
|
|
116
|
+
* status to quiet the toast: a genuinely unreachable server would then be
|
|
117
|
+
* indistinguishable from one that is still connecting.
|
|
118
|
+
*/
|
|
119
|
+
export function toMcpServerStatus(status: string | undefined): McpServerStatus['status'] {
|
|
120
|
+
return MCP_SERVER_STATUSES.has(status as McpServerStatus['status'])
|
|
121
|
+
? (status as McpServerStatus['status'])
|
|
122
|
+
: 'disconnected';
|
|
86
123
|
}
|
|
87
124
|
|
|
88
125
|
export type RateLimitType =
|