@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/dist/index.html CHANGED
@@ -58,8 +58,8 @@
58
58
  }
59
59
  })();
60
60
  </script>
61
- <script type="module" crossorigin src="/assets/main-CHTThSzD.js"></script>
62
- <link rel="stylesheet" crossorigin href="/assets/main-Dzb_5CtR.css">
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.17",
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' },
@@ -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
- filterText: string | null; // null = no text filter, string = only show logs containing this text (case-sensitive)
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
- filterText: null
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.filterText !== null) {
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
- // Case-sensitive search
106
- if (!argsString.includes(config.filterText)) {
104
+ if (!config.filterTexts.some((text) => argsString.includes(text))) {
107
105
  return false;
108
106
  }
109
107
  }