@sparkleideas/browser 3.0.0-alpha.6 → 3.0.0-alpha.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/package.json +2 -2
- package/src/application/browser-service.ts +1 -1
- package/src/domain/types.ts +1 -1
- package/src/index.ts +2 -2
- package/src/infrastructure/hooks-integration.ts +1 -1
- package/src/infrastructure/memory-integration.ts +2 -2
- package/src/infrastructure/reasoningbank-adapter.ts +1 -1
- package/src/mcp-tools/browser-tools.ts +1 -1
- package/src/skill/index.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sparkleideas/browser",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.8",
|
|
4
4
|
"description": "Browser automation for AI agents - integrates agent-browser with claude-flow swarms",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@sparkleideas/agentic-flow": "^2.0.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@sparkleideas/cli": "
|
|
30
|
+
"@sparkleideas/cli": "*"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "^20.10.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @sparkleideas/browser - Browser Service
|
|
3
|
-
* Core application service integrating agent-browser with
|
|
3
|
+
* Core application service integrating agent-browser with agentic-flow
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { AgentBrowserAdapter } from '../infrastructure/agent-browser-adapter.js';
|
package/src/domain/types.ts
CHANGED
|
@@ -281,7 +281,7 @@ export type BrowserEvent =
|
|
|
281
281
|
| { type: 'error:occurred'; message: string; stack?: string; timestamp: string };
|
|
282
282
|
|
|
283
283
|
// ============================================================================
|
|
284
|
-
// Integration with
|
|
284
|
+
// Integration with agentic-flow
|
|
285
285
|
// ============================================================================
|
|
286
286
|
|
|
287
287
|
export interface BrowserTrajectory {
|
package/src/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @sparkleideas/browser
|
|
3
|
-
* Browser automation for AI agents - integrates agent-browser with
|
|
3
|
+
* Browser automation for AI agents - integrates agent-browser with claude-flow swarms
|
|
4
4
|
*
|
|
5
5
|
* Features:
|
|
6
6
|
* - 50+ MCP tools for browser automation
|
|
7
7
|
* - AI-optimized snapshots with element refs (@e1, @e2)
|
|
8
8
|
* - Multi-session support for swarm coordination
|
|
9
9
|
* - Trajectory tracking for ReasoningBank/SONA learning
|
|
10
|
-
* - Integration with
|
|
10
|
+
* - Integration with agentic-flow optimizations
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```typescript
|
|
@@ -73,7 +73,7 @@ export interface MemoryFilter {
|
|
|
73
73
|
// ============================================================================
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Adapter for
|
|
76
|
+
* Adapter for claude-flow memory system with HNSW indexing
|
|
77
77
|
*/
|
|
78
78
|
export class ClaudeFlowMemoryAdapter implements IMemoryAdapter {
|
|
79
79
|
private namespace: string;
|
|
@@ -95,7 +95,7 @@ export class ClaudeFlowMemoryAdapter implements IMemoryAdapter {
|
|
|
95
95
|
|
|
96
96
|
// Store in memory via MCP (when available)
|
|
97
97
|
try {
|
|
98
|
-
// This would call
|
|
98
|
+
// This would call claude-flow memory_store MCP tool
|
|
99
99
|
// For now, store in local cache
|
|
100
100
|
this.cache.set(key, {
|
|
101
101
|
...entry,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @sparkleideas/browser - ReasoningBank Integration
|
|
3
|
-
* Connects browser trajectories to
|
|
3
|
+
* Connects browser trajectories to agentic-flow's learning system
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { BrowserTrajectory, BrowserTrajectoryStep, Snapshot } from '../domain/types.js';
|
package/src/skill/index.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { preBrowseHook, postBrowseHook, browserHooks } from '../infrastructure/h
|
|
|
10
10
|
// Skill metadata
|
|
11
11
|
export const SKILL_METADATA = {
|
|
12
12
|
name: 'browser',
|
|
13
|
-
description: 'Web browser automation with AI-optimized snapshots for
|
|
13
|
+
description: 'Web browser automation with AI-optimized snapshots for claude-flow agents',
|
|
14
14
|
version: '1.0.0',
|
|
15
15
|
triggers: ['/browser', 'browse', 'web automation', 'scrape', 'navigate', 'screenshot'],
|
|
16
16
|
tools: [
|