@myrialabs/clopen 0.4.28 → 0.4.29
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/auth-service.ts +45 -25
- package/backend/auth/onboarding.test.ts +106 -0
- package/backend/auth/permissions.ts +1 -1
- package/backend/database/utils/connection.ts +7 -31
- package/backend/engine/README.md +8 -3
- package/backend/engine/adapters/claude/message-converter.ts +51 -0
- package/backend/engine/adapters/codex/message-converter.ts +8 -2
- package/backend/engine/adapters/codex/models.ts +85 -98
- package/backend/engine/adapters/codex/stream.ts +5 -7
- package/backend/engine/adapters/codex/usage-rollout.ts +7 -0
- package/backend/engine/adapters/copilot/stream.ts +24 -0
- package/backend/engine/docs/lessons-learned.md +78 -1
- package/backend/engine/docs/stack.md +8 -0
- package/backend/engine/install-recipes.ts +19 -2
- package/backend/files/file-size-limit.ts +5 -14
- package/backend/files/file-watcher.test.ts +160 -0
- package/backend/files/file-watcher.ts +276 -58
- package/backend/git/git-executor.ts +8 -0
- package/backend/git/git-service.test.ts +136 -0
- package/backend/git/git-service.ts +113 -17
- package/backend/index.ts +11 -4
- package/backend/mcp/internal/remote-server.test.ts +8 -3
- package/backend/mcp/internal/remote-server.ts +1 -1
- package/backend/settings/system-settings.ts +97 -0
- package/backend/tunnel/public-origin.ts +5 -13
- package/backend/utils/env.ts +29 -0
- package/backend/utils/paths.ts +9 -3
- package/backend/ws/auth/login.test.ts +8 -1
- package/backend/ws/auth/login.ts +22 -15
- package/backend/ws/auth/status.ts +24 -1
- package/backend/ws/chat/stream.ts +1 -0
- package/backend/ws/files/watch.ts +9 -0
- package/backend/ws/settings/crud.ts +14 -22
- package/dist/assets/{index-BujQYGBm.js → index-C7e5TWG3.js} +1 -1
- package/dist/assets/{index-DRMOgS9y.js → index-Derlqeyy.js} +1 -1
- package/dist/assets/{main-BrqMMMRX.css → main-CqzaPnux.css} +1 -1
- package/dist/assets/main-OGhsRKU1.js +1037 -0
- package/dist/index.html +2 -2
- package/package.json +14 -14
- package/shared/constants/engines.ts +1 -0
- package/shared/types/stores/settings.ts +11 -1
- package/shared/types/unified/stream.ts +10 -4
- package/dist/assets/main-BrYtWn-4.js +0 -1036
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-OGhsRKU1.js"></script>
|
|
62
|
+
<link rel="stylesheet" crossorigin href="/assets/main-CqzaPnux.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.4.
|
|
3
|
+
"version": "0.4.29",
|
|
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,20 +77,20 @@
|
|
|
77
77
|
"prepublishOnly": "bun run build"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
81
|
-
"@anthropic-ai/sdk": "0.
|
|
82
|
-
"@cline/agents": "0.0.
|
|
83
|
-
"@cline/sdk": "0.0.
|
|
84
|
-
"@cursor/sdk": "1.0.
|
|
85
|
-
"@earendil-works/pi-agent-core": "0.
|
|
86
|
-
"@earendil-works/pi-ai": "0.
|
|
87
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
80
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.229",
|
|
81
|
+
"@anthropic-ai/sdk": "0.116.0",
|
|
82
|
+
"@cline/agents": "0.0.74",
|
|
83
|
+
"@cline/sdk": "0.0.74",
|
|
84
|
+
"@cursor/sdk": "1.0.27",
|
|
85
|
+
"@earendil-works/pi-agent-core": "0.84.1",
|
|
86
|
+
"@earendil-works/pi-ai": "0.84.1",
|
|
87
|
+
"@earendil-works/pi-coding-agent": "0.84.1",
|
|
88
88
|
"@eslint/js": "^9.31.0",
|
|
89
|
-
"@github/copilot": "1.0.
|
|
90
|
-
"@github/copilot-sdk": "1.0.
|
|
91
|
-
"@openai/codex-sdk": "0.
|
|
92
|
-
"@opencode-ai/sdk": "1.
|
|
93
|
-
"@qwen-code/sdk": "0.1.
|
|
89
|
+
"@github/copilot": "1.0.79",
|
|
90
|
+
"@github/copilot-sdk": "1.0.9",
|
|
91
|
+
"@openai/codex-sdk": "0.147.0",
|
|
92
|
+
"@opencode-ai/sdk": "1.18.18",
|
|
93
|
+
"@qwen-code/sdk": "0.1.8",
|
|
94
94
|
"@sveltejs/vite-plugin-svelte": "^6.0.0",
|
|
95
95
|
"@tailwindcss/vite": "^4.1.11",
|
|
96
96
|
"@types/bun": "^1.2.18",
|
|
@@ -92,7 +92,17 @@ export type AuthMode = 'none' | 'required';
|
|
|
92
92
|
export interface SystemSettings {
|
|
93
93
|
/** Authentication mode: 'none' = single user no login, 'required' = multi-user with login. Default: 'required'. */
|
|
94
94
|
authMode: AuthMode;
|
|
95
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Setup wizard state — the authoritative marker.
|
|
97
|
+
* 'pending' is only written by a fresh install that entered the wizard; an
|
|
98
|
+
* install with users and no marker at all is treated (and recorded) as
|
|
99
|
+
* complete. Read server-side via `auth:status`, never decided by the client.
|
|
100
|
+
*/
|
|
101
|
+
onboarding?: 'pending' | 'complete';
|
|
102
|
+
/**
|
|
103
|
+
* Legacy boolean mirror of `onboarding`, still written so an older build
|
|
104
|
+
* downgraded onto the same database keeps recognising a completed setup.
|
|
105
|
+
*/
|
|
96
106
|
onboardingComplete: boolean;
|
|
97
107
|
/** Restrict folder browser to only these base paths. Empty = no restriction. */
|
|
98
108
|
allowedBasePaths: string[];
|
|
@@ -90,7 +90,8 @@ export type RateLimitType =
|
|
|
90
90
|
| 'seven_day'
|
|
91
91
|
| 'seven_day_opus'
|
|
92
92
|
| 'seven_day_sonnet'
|
|
93
|
-
| 'overage'
|
|
93
|
+
| 'overage'
|
|
94
|
+
| 'seven_day_overage_included';
|
|
94
95
|
|
|
95
96
|
export interface RateLimitEvent {
|
|
96
97
|
type: 'rate_limit';
|
|
@@ -102,9 +103,14 @@ export interface RateLimitEvent {
|
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
/**
|
|
105
|
-
* Transient, non-persisted notification surfaced as a toast
|
|
106
|
-
*
|
|
107
|
-
*
|
|
106
|
+
* Transient, non-persisted notification surfaced as a toast; the stream-manager
|
|
107
|
+
* routes it to a `chat:notification`.
|
|
108
|
+
*
|
|
109
|
+
* Reserved for things the transcript alone cannot explain: a turn that produced
|
|
110
|
+
* no output (Pi, Cline), an answer that came from a fallback model after a
|
|
111
|
+
* refusal (Claude), a request cancelled because the account's credit limit ran
|
|
112
|
+
* out (Copilot). Routine progress does NOT belong here — backgrounded task
|
|
113
|
+
* outcomes already land in the transcript, and toasting them was pure noise.
|
|
108
114
|
*/
|
|
109
115
|
export interface NotificationEvent {
|
|
110
116
|
type: 'notification';
|