Skip to content

feat(core): add context provider plugin system#54

Merged
0x5457 merged 1 commit intofeature-nextfrom
feat/context-api
Dec 1, 2025
Merged

feat(core): add context provider plugin system#54
0x5457 merged 1 commit intofeature-nextfrom
feat/context-api

Conversation

@0x5457
Copy link
Copy Markdown
Collaborator

@0x5457 0x5457 commented Dec 1, 2025

Implement extensible context provider architecture in core package with 5 browser providers. Add ContextManager for orchestration

  • Framework-agnostic ContextProvider interface
  • Browser providers: CurrentPage, Tabs, Bookmarks, Screenshot, History
  • Contexts passed as structured data to agent
  • Delete old context-providers.ts

Implement extensible context provider architecture in core package
with 5 browser providers. Add ContextManager for orchestration,
64 new unit tests, and full integration with AIPex agent.

- Framework-agnostic ContextProvider interface
- Browser providers: CurrentPage, Tabs, Bookmarks, Screenshot, History
- Contexts passed as structured data to agent
- Delete old context-providers.ts
@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 1, 2025

Coverage Report for core (packages/core)

Status Category Percentage Covered / Total
🔵 Lines 75.58% 452 / 598
🔵 Statements 75.4% 466 / 618
🔵 Functions 74.5% 114 / 153
🔵 Branches 72.37% 262 / 362
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/index.ts 0% 0% 0% 0%
packages/core/src/types.ts 0% 0% 0% 0%
packages/core/src/agent/aipex.ts 79.84% 65.34% 84.21% 80.46% 179-205, 265, 272, 285-289, 305, 313, 323-326, 335-343, 345-351, 363, 375
packages/core/src/context/index.ts 0% 0% 0% 0%
packages/core/src/context/manager.ts 97.64% 90% 100% 97.5% 63-64
packages/core/src/context/utils.ts 100% 100% 100% 100%
Generated in workflow #22 for commit 1159e69 by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 1, 2025

Coverage Report for browser-ext (packages/browser-ext)

Status Category Percentage Covered / Total
🔵 Lines 32.71% 408 / 1247
🔵 Statements 32.52% 418 / 1285
🔵 Functions 28.18% 95 / 337
🔵 Branches 25.75% 180 / 699
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/browser-ext/src/hooks/use-agent.ts 0% 0% 0% 0% 36-110
packages/browser-ext/src/hooks/use-chat.ts 86.59% 80.35% 93.75% 88.17% 127, 154, 180-181, 217-218, 223-224, 263-264, 269, 277, 293
packages/browser-ext/src/hooks/use-tabs-sync.ts 3.89% 0% 0% 3.94% 24-253
packages/browser-ext/src/lib/context/providers/bookmarks-provider.ts 12.12% 0% 0% 12.9% 25-102
packages/browser-ext/src/lib/context/providers/current-page-provider.ts 14.28% 0% 0% 15.38% 25-82
packages/browser-ext/src/lib/context/providers/history-provider.ts 16.66% 0% 0% 19.04% 25-84
packages/browser-ext/src/lib/context/providers/index.ts 100% 100% 100% 100%
packages/browser-ext/src/lib/context/providers/screenshot-provider.ts 28.57% 0% 0% 30.76% 25-53
packages/browser-ext/src/lib/context/providers/tabs-provider.ts 10.25% 0% 0% 11.11% 25-109
Generated in workflow #22 for commit 1159e69 by the Vitest Coverage Report Action

@0x5457 0x5457 merged commit 2a01756 into feature-next Dec 1, 2025
1 check passed
@0x5457 0x5457 deleted the feat/context-api branch December 1, 2025 16:16
wuchunfu pushed a commit to itsharex/AIPex that referenced this pull request Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant