feat(browser, terminal): implement browser driver, password manager, terminal features (#6196)

* icon styling

* feat(desktop): isolate chat browser and terminal sessions

* feat(desktop): uncap browser and terminal tabs

* feat(desktop): polish browser and terminal resources

* improvement desktop

* fixes

* updates

* fixes

* fix

* update tests
This commit is contained in:
Siddharth Ganesan
2026-08-03 16:00:04 -07:00
committed by GitHub
parent 3de63c94e3
commit 5ab5f2c7ed
213 changed files with 27752 additions and 4081 deletions
+6 -2
View File
@@ -73,7 +73,8 @@ const REQUIRED_FIELD = 'gate'
* skipped by prefix, which would have made the check vacuous for four of the
* six families.
*/
const PUSH_CALL_PATTERN = /(?:\.send|broadcast)\(\s*'([^']+)'/g
const PUSH_CALL_PATTERN =
/(?:(?:\.send|broadcast)\(\s*'([^']+)'|\.send(?:Browser|Terminal)\(\s*[^,\n]+,\s*'([^']+)')/g
interface ChannelDecl {
name: string
@@ -148,7 +149,10 @@ async function channelsPushedFromMain(): Promise<Set<string>> {
for (const entry of entries) {
if (!entry.isFile() || !entry.name.endsWith('.ts') || entry.name.includes('.test.')) continue
const source = await readFile(resolve(entry.parentPath, entry.name), 'utf8')
for (const match of source.matchAll(PUSH_CALL_PATTERN)) pushed.add(match[1])
for (const match of source.matchAll(PUSH_CALL_PATTERN)) {
const channel = match[1] ?? match[2]
if (channel) pushed.add(channel)
}
}
return pushed
}