@ulpi/browse 0.7.0 → 0.7.2
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/package.json +1 -1
- package/skill/SKILL.md +2 -1
- package/src/cli.ts +6 -0
- package/src/snapshot.ts +4 -1
package/package.json
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: browse
|
|
3
|
-
version: 2.5.
|
|
3
|
+
version: 2.5.1
|
|
4
4
|
description: |
|
|
5
5
|
Fast web browsing for AI coding agents via persistent headless Chromium daemon. Navigate to any URL,
|
|
6
6
|
read page content, click elements, fill forms, run JavaScript, take screenshots,
|
|
@@ -420,6 +420,7 @@ browse video status Check if recording is active
|
|
|
420
420
|
```
|
|
421
421
|
browse status Server health, uptime, session count
|
|
422
422
|
browse instances List all running browse servers (instance, PID, port, status)
|
|
423
|
+
browse version Print CLI version
|
|
423
424
|
browse stop Shutdown server
|
|
424
425
|
browse restart Kill + restart server
|
|
425
426
|
browse inspect Open DevTools (requires BROWSE_DEBUG_PORT)
|
package/src/cli.ts
CHANGED
|
@@ -576,6 +576,12 @@ export async function main() {
|
|
|
576
576
|
cliFlags.headed = headed;
|
|
577
577
|
|
|
578
578
|
// ─── Local commands (no server needed) ─────────────────────
|
|
579
|
+
if (args[0] === 'version' || args[0] === '--version' || args[0] === '-V') {
|
|
580
|
+
const pkg = await import('../package.json');
|
|
581
|
+
console.log(pkg.version);
|
|
582
|
+
return;
|
|
583
|
+
}
|
|
584
|
+
|
|
579
585
|
if (args[0] === 'instances') {
|
|
580
586
|
await listInstances();
|
|
581
587
|
return;
|
package/src/snapshot.ts
CHANGED
|
@@ -427,7 +427,10 @@ export async function handleSnapshot(
|
|
|
427
427
|
let outputLine: string;
|
|
428
428
|
if (terse) {
|
|
429
429
|
outputLine = `@${ref} [${node.role}]`;
|
|
430
|
-
if (node.name)
|
|
430
|
+
if (node.name) {
|
|
431
|
+
const name = node.name.length > 30 ? node.name.slice(0, 30) + '...' : node.name;
|
|
432
|
+
outputLine += ` "${name}"`;
|
|
433
|
+
}
|
|
431
434
|
} else {
|
|
432
435
|
outputLine = `${indent}@${ref} [${node.role}]`;
|
|
433
436
|
if (node.name) outputLine += ` "${node.name}"`;
|