@myrialabs/clopen 0.3.17 → 0.3.18
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/database/migrations/038_add_workspace_state_to_user_projects.ts +23 -0
- package/backend/database/migrations/index.ts +7 -0
- package/backend/database/queries/project-queries.ts +18 -0
- package/backend/git/git-service.ts +135 -2
- package/backend/preview/browser/browser-preview-service.ts +9 -6
- package/backend/utils/ws.ts +3 -1
- package/backend/ws/git/commit.ts +63 -0
- package/backend/ws/git/remote.ts +36 -1
- package/backend/ws/index.ts +2 -0
- package/backend/ws/preview/access.ts +20 -1
- package/backend/ws/preview/browser/tab-info.ts +15 -6
- package/backend/ws/preview/index.ts +7 -0
- package/backend/ws/workspace/index.ts +14 -0
- package/backend/ws/workspace/state.ts +44 -0
- package/dist/assets/main-6cCq8H0w.css +1 -0
- package/dist/assets/main-CaqEjA6B.js +361 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/shared/constants/notification-sounds.ts +1 -1
- package/shared/utils/logger.ts +4 -6
- package/dist/assets/main-CHTThSzD.js +0 -358
- package/dist/assets/main-Dzb_5CtR.css +0 -1
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-CaqEjA6B.js"></script>
|
|
62
|
+
<link rel="stylesheet" crossorigin href="/assets/main-6cCq8H0w.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.
|
|
3
|
+
"version": "0.3.18",
|
|
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",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Notification sound presets bundled with the app (served from /audio/<id>.ogg). */
|
|
2
2
|
export const NOTIFICATION_SOUND_PRESETS = [
|
|
3
|
-
{ id: 'chime', label: 'Chime' },
|
|
4
3
|
{ id: 'message', label: 'Message' },
|
|
4
|
+
{ id: 'chime', label: 'Chime' },
|
|
5
5
|
{ id: 'alert', label: 'Alert' },
|
|
6
6
|
{ id: 'chirp', label: 'Chirp' },
|
|
7
7
|
{ id: 'blip', label: 'Blip' },
|
package/shared/utils/logger.ts
CHANGED
|
@@ -55,7 +55,7 @@ interface LoggerConfig {
|
|
|
55
55
|
enabled: boolean; // Global enable/disable based on NODE_ENV (production = disabled)
|
|
56
56
|
filterLabels: LogLabel[] | null; // null = show all, array = only show specified labels
|
|
57
57
|
filterMethods: LogMethod[] | null; // null = show all, array = only show specified methods
|
|
58
|
-
|
|
58
|
+
filterTexts: string[] | null; // null = no text filter, array = only show logs containing any of these texts (case-sensitive)
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
// Default configuration - null means no filtering
|
|
@@ -64,7 +64,7 @@ const config: LoggerConfig = {
|
|
|
64
64
|
enabled: process.env.NODE_ENV !== 'production' || process.env.CLOPEN_DEBUG === 'true',
|
|
65
65
|
filterLabels: null,
|
|
66
66
|
filterMethods: null,
|
|
67
|
-
|
|
67
|
+
filterTexts: null
|
|
68
68
|
};
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -87,8 +87,7 @@ function shouldLog(label: LogLabel, method: LogMethod, args: any[]): boolean {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// Filter by text (case-sensitive)
|
|
90
|
-
if (config.
|
|
91
|
-
// Convert all arguments to string for searching
|
|
90
|
+
if (config.filterTexts !== null) {
|
|
92
91
|
const argsString = args
|
|
93
92
|
.map((arg) => {
|
|
94
93
|
if (typeof arg === 'object') {
|
|
@@ -102,8 +101,7 @@ function shouldLog(label: LogLabel, method: LogMethod, args: any[]): boolean {
|
|
|
102
101
|
})
|
|
103
102
|
.join(' ');
|
|
104
103
|
|
|
105
|
-
|
|
106
|
-
if (!argsString.includes(config.filterText)) {
|
|
104
|
+
if (!config.filterTexts.some((text) => argsString.includes(text))) {
|
|
107
105
|
return false;
|
|
108
106
|
}
|
|
109
107
|
}
|