barebrowse 0.4.7 → 0.4.8

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.8
4
+
5
+ - Fix: `browse()` one-shot also had `#` prefix (missed in 0.4.7)
6
+ - MCP server version string updated
7
+
3
8
  ## 0.4.7
4
9
 
5
10
  Snapshot URL prefix format changed from `# <url>` to `url: <url>`.
package/mcp-server.js CHANGED
@@ -249,7 +249,7 @@ async function handleMessage(msg) {
249
249
  return jsonrpcResponse(id, {
250
250
  protocolVersion: '2024-11-05',
251
251
  capabilities: { tools: {} },
252
- serverInfo: { name: 'barebrowse', version: '0.4.6' },
252
+ serverInfo: { name: 'barebrowse', version: '0.4.8' },
253
253
  });
254
254
  }
255
255
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barebrowse",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Authenticated web browsing for autonomous agents via CDP. URL in, pruned ARIA snapshot out.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -103,7 +103,7 @@ export async function browse(url, opts = {}) {
103
103
  } else {
104
104
  snapshot = raw;
105
105
  }
106
- const stats = `# ${url}\n# ${raw.length.toLocaleString()} chars → ${snapshot.length.toLocaleString()} chars (${Math.round((1 - snapshot.length / raw.length) * 100)}% pruned)`;
106
+ const stats = `url: ${url}\n${raw.length.toLocaleString()} chars → ${snapshot.length.toLocaleString()} chars (${Math.round((1 - snapshot.length / raw.length) * 100)}% pruned)`;
107
107
  snapshot = stats + '\n' + snapshot;
108
108
 
109
109
  // Step 7: Clean up