feat: add cdn packages for iife builds

This commit is contained in:
Simon
2026-01-13 20:52:41 +08:00
parent 8b1e91d665
commit 3b21c42cdb
9 changed files with 185 additions and 27 deletions

15
packages/cdn/src/full.js Normal file
View File

@@ -0,0 +1,15 @@
// @ts-nocheck
/**
* Full CDN build for page-agent
* Exposes PageAgent class for manual instantiation and configuration
*
* Usage:
* <script src="https://unpkg.com/@page-agent/cdn/dist/page-agent.js"></script>
* <script>
* const agent = new PageAgent({ model: 'gpt-4o', apiKey: 'your-key' })
* agent.panel.show()
* </script>
*/
import { PageAgent } from 'page-agent'
export { PageAgent }