wu-framework 1.1.15 → 1.1.17
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/README.md +52 -20
- package/dist/wu-framework.cjs.js +1 -1
- package/dist/wu-framework.cjs.js.map +1 -1
- package/dist/wu-framework.dev.js +15511 -15146
- package/dist/wu-framework.dev.js.map +1 -1
- package/dist/wu-framework.esm.js +1 -1
- package/dist/wu-framework.esm.js.map +1 -1
- package/dist/wu-framework.umd.js +1 -1
- package/dist/wu-framework.umd.js.map +1 -1
- package/package.json +166 -161
- package/src/adapters/angular/ai.js +30 -30
- package/src/adapters/angular/index.d.ts +154 -154
- package/src/adapters/angular/index.js +932 -932
- package/src/adapters/angular.d.ts +3 -3
- package/src/adapters/angular.js +3 -3
- package/src/adapters/index.js +168 -168
- package/src/adapters/lit/ai.js +20 -20
- package/src/adapters/lit/index.d.ts +120 -120
- package/src/adapters/lit/index.js +721 -721
- package/src/adapters/lit.d.ts +3 -3
- package/src/adapters/lit.js +3 -3
- package/src/adapters/preact/ai.js +33 -33
- package/src/adapters/preact/index.d.ts +108 -108
- package/src/adapters/preact/index.js +661 -661
- package/src/adapters/preact.d.ts +3 -3
- package/src/adapters/preact.js +3 -3
- package/src/adapters/react/index.js +48 -54
- package/src/adapters/react.d.ts +3 -3
- package/src/adapters/react.js +3 -3
- package/src/adapters/shared.js +64 -64
- package/src/adapters/solid/ai.js +32 -32
- package/src/adapters/solid/index.d.ts +101 -101
- package/src/adapters/solid/index.js +586 -586
- package/src/adapters/solid.d.ts +3 -3
- package/src/adapters/solid.js +3 -3
- package/src/adapters/svelte/ai.js +31 -31
- package/src/adapters/svelte/index.d.ts +166 -166
- package/src/adapters/svelte/index.js +798 -798
- package/src/adapters/svelte.d.ts +3 -3
- package/src/adapters/svelte.js +3 -3
- package/src/adapters/vanilla/ai.js +30 -30
- package/src/adapters/vanilla/index.d.ts +179 -179
- package/src/adapters/vanilla/index.js +785 -785
- package/src/adapters/vanilla.d.ts +3 -3
- package/src/adapters/vanilla.js +3 -3
- package/src/adapters/vue/ai.js +52 -52
- package/src/adapters/vue/index.d.ts +299 -299
- package/src/adapters/vue/index.js +610 -610
- package/src/adapters/vue.d.ts +3 -3
- package/src/adapters/vue.js +3 -3
- package/src/ai/wu-ai-actions.js +261 -261
- package/src/ai/wu-ai-agent.js +546 -546
- package/src/ai/wu-ai-browser-primitives.js +354 -354
- package/src/ai/wu-ai-browser.js +380 -380
- package/src/ai/wu-ai-context.js +332 -332
- package/src/ai/wu-ai-conversation.js +613 -613
- package/src/ai/wu-ai-orchestrate.js +1021 -1021
- package/src/ai/wu-ai-permissions.js +381 -381
- package/src/ai/wu-ai-provider.js +700 -700
- package/src/ai/wu-ai-schema.js +225 -225
- package/src/ai/wu-ai-triggers.js +396 -396
- package/src/ai/wu-ai.js +804 -804
- package/src/core/wu-app.js +236 -236
- package/src/core/wu-cache.js +498 -477
- package/src/core/wu-core.js +1412 -1398
- package/src/core/wu-error-boundary.js +396 -382
- package/src/core/wu-event-bus.js +390 -348
- package/src/core/wu-hooks.js +350 -350
- package/src/core/wu-html-parser.js +199 -190
- package/src/core/wu-iframe-sandbox.js +328 -328
- package/src/core/wu-loader.js +385 -273
- package/src/core/wu-logger.js +142 -134
- package/src/core/wu-manifest.js +532 -509
- package/src/core/wu-mcp-bridge.js +432 -432
- package/src/core/wu-overrides.js +510 -510
- package/src/core/wu-performance.js +228 -228
- package/src/core/wu-plugin.js +401 -348
- package/src/core/wu-prefetch.js +414 -414
- package/src/core/wu-proxy-sandbox.js +477 -476
- package/src/core/wu-sandbox.js +779 -779
- package/src/core/wu-script-executor.js +161 -113
- package/src/core/wu-snapshot-sandbox.js +227 -227
- package/src/core/wu-store.js +13 -3
- package/src/core/wu-strategies.js +256 -256
- package/src/core/wu-style-bridge.js +477 -477
- package/src/index.d.ts +317 -0
- package/src/index.js +234 -224
- package/src/utils/dependency-resolver.js +327 -327
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="https://wu-framework
|
|
2
|
+
<img src="https://raw.githubusercontent.com/LuisPadre25/wu-framework/main/wu-logo.png" width="80" alt="Wu Framework" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Wu Framework</h1>
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
<p align="center">
|
|
12
12
|
<a href="https://www.npmjs.com/package/wu-framework"><img src="https://img.shields.io/npm/v/wu-framework.svg?color=8b5cf6&label=npm" alt="npm version" /></a>
|
|
13
|
-
<a href="https://github.com/
|
|
13
|
+
<a href="https://github.com/LuisPadre25/wu-framework/actions"><img src="https://img.shields.io/github/actions/workflow/status/LuisPadre25/wu-framework/ci.yml?label=tests&color=10b981" alt="tests" /></a>
|
|
14
14
|
<img src="https://img.shields.io/badge/tests-650%20passed-10b981" alt="650 tests" />
|
|
15
15
|
<img src="https://img.shields.io/badge/dependencies-0-8b5cf6" alt="zero deps" />
|
|
16
16
|
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="MIT License" /></a>
|
|
17
17
|
</p>
|
|
18
18
|
|
|
19
19
|
<p align="center">
|
|
20
|
-
<a href="https://wu-framework.
|
|
21
|
-
<a href="https://wu-framework.
|
|
22
|
-
<a href="https://wu-framework.
|
|
20
|
+
<a href="https://www.wu-framework.com">Documentation</a> ·
|
|
21
|
+
<a href="https://www.wu-framework.com/docs/quick-start">Quick Start</a> ·
|
|
22
|
+
<a href="https://www.wu-framework.com/docs/ai/overview">AI Integration</a> ·
|
|
23
23
|
<a href="#wucommerce--real-world-example">Live Example</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
@@ -345,7 +345,7 @@ npm run test:coverage # Coverage report
|
|
|
345
345
|
| `wu-framework.esm.js` | ES Module | Bundler imports |
|
|
346
346
|
| `wu-framework.cjs.js` | CommonJS | Node.js require |
|
|
347
347
|
| `wu-framework.umd.js` | UMD | CDN / script tag |
|
|
348
|
-
| `wu-framework.
|
|
348
|
+
| `www.wu-framework.com.js` | ES Module | Development |
|
|
349
349
|
|
|
350
350
|
---
|
|
351
351
|
|
|
@@ -376,20 +376,20 @@ npm run test:coverage # Coverage report
|
|
|
376
376
|
|
|
377
377
|
## Documentation
|
|
378
378
|
|
|
379
|
-
Full documentation at **[wu-framework.
|
|
380
|
-
|
|
381
|
-
- [Quick Start](https://wu-framework.
|
|
382
|
-
- [Getting Started](https://wu-framework.
|
|
383
|
-
- [API Reference](https://wu-framework.
|
|
384
|
-
- [Event Bus](https://wu-framework.
|
|
385
|
-
- [Shared Store](https://wu-framework.
|
|
386
|
-
- [Sandbox](https://wu-framework.
|
|
387
|
-
- [AI Overview](https://wu-framework.
|
|
388
|
-
- [AI Actions](https://wu-framework.
|
|
389
|
-
- [Browser Actions](https://wu-framework.
|
|
390
|
-
- [MCP Server](https://wu-framework.
|
|
391
|
-
- [CSS Isolation](https://wu-framework.
|
|
392
|
-
- [Deployment](https://wu-framework.
|
|
379
|
+
Full documentation at **[www.wu-framework.com](https://www.wu-framework.com)**
|
|
380
|
+
|
|
381
|
+
- [Quick Start](https://www.wu-framework.com/docs/quick-start) — Get running in 5 minutes
|
|
382
|
+
- [Getting Started](https://www.wu-framework.com/docs/getting-started) — Deeper tutorial with cross-app communication
|
|
383
|
+
- [API Reference](https://www.wu-framework.com/docs/core/api) — Full API docs
|
|
384
|
+
- [Event Bus](https://www.wu-framework.com/docs/core/event-bus) — Inter-app communication
|
|
385
|
+
- [Shared Store](https://www.wu-framework.com/docs/core/store) — Cross-app reactive state
|
|
386
|
+
- [Sandbox](https://www.wu-framework.com/docs/core/sandbox) — JS isolation strategies
|
|
387
|
+
- [AI Overview](https://www.wu-framework.com/docs/ai/overview) — 4 AI paradigms
|
|
388
|
+
- [AI Actions](https://www.wu-framework.com/docs/ai/actions) — Register tools for the LLM
|
|
389
|
+
- [Browser Actions](https://www.wu-framework.com/docs/ai/browser-actions) — 10 built-in browser tools
|
|
390
|
+
- [MCP Server](https://www.wu-framework.com/docs/ai/mcp-server) — Connect AI agents to live apps
|
|
391
|
+
- [CSS Isolation](https://www.wu-framework.com/docs/guides/css-isolation) — Shadow DOM style modes
|
|
392
|
+
- [Deployment](https://www.wu-framework.com/docs/guides/deployment) — Production deployment guide
|
|
393
393
|
|
|
394
394
|
---
|
|
395
395
|
|
|
@@ -397,6 +397,38 @@ Full documentation at **[wu-framework.dev](https://wu-framework.dev)**
|
|
|
397
397
|
|
|
398
398
|
Chrome 80+, Firefox 78+, Safari 14+, Edge 80+. Shadow DOM v1 required.
|
|
399
399
|
|
|
400
|
+
---
|
|
401
|
+
|
|
402
|
+
<div align="center">
|
|
403
|
+
|
|
404
|
+
### What if Wu Framework could think without thinking?
|
|
405
|
+
|
|
406
|
+
</div>
|
|
407
|
+
|
|
408
|
+
```
|
|
409
|
+
User: "add to cart"
|
|
410
|
+
|
|
411
|
+
Before After
|
|
412
|
+
────── ─────
|
|
413
|
+
wu.ai.send() → LLM wu.ai.send() → ???
|
|
414
|
+
~2,000 ms ~0.73 ms
|
|
415
|
+
$0.003 per call $0.000
|
|
416
|
+
```
|
|
417
|
+
|
|
418
|
+
Something is coming. It learned from every LLM call you ever made. It doesn't need the cloud anymore.
|
|
419
|
+
|
|
420
|
+
**99.79% accuracy. 0.73 milliseconds. 800 KB. Zero GPU. Zero internet.**
|
|
421
|
+
|
|
422
|
+
274x faster than neural networks. And it dreams.
|
|
423
|
+
|
|
424
|
+
<div align="center">
|
|
425
|
+
|
|
426
|
+
**COMING SOON**
|
|
427
|
+
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
400
432
|
## Contributing
|
|
401
433
|
|
|
402
434
|
Contributions welcome. Please open an issue first to discuss what you'd like to change.
|