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.
Files changed (88) hide show
  1. package/README.md +52 -20
  2. package/dist/wu-framework.cjs.js +1 -1
  3. package/dist/wu-framework.cjs.js.map +1 -1
  4. package/dist/wu-framework.dev.js +15511 -15146
  5. package/dist/wu-framework.dev.js.map +1 -1
  6. package/dist/wu-framework.esm.js +1 -1
  7. package/dist/wu-framework.esm.js.map +1 -1
  8. package/dist/wu-framework.umd.js +1 -1
  9. package/dist/wu-framework.umd.js.map +1 -1
  10. package/package.json +166 -161
  11. package/src/adapters/angular/ai.js +30 -30
  12. package/src/adapters/angular/index.d.ts +154 -154
  13. package/src/adapters/angular/index.js +932 -932
  14. package/src/adapters/angular.d.ts +3 -3
  15. package/src/adapters/angular.js +3 -3
  16. package/src/adapters/index.js +168 -168
  17. package/src/adapters/lit/ai.js +20 -20
  18. package/src/adapters/lit/index.d.ts +120 -120
  19. package/src/adapters/lit/index.js +721 -721
  20. package/src/adapters/lit.d.ts +3 -3
  21. package/src/adapters/lit.js +3 -3
  22. package/src/adapters/preact/ai.js +33 -33
  23. package/src/adapters/preact/index.d.ts +108 -108
  24. package/src/adapters/preact/index.js +661 -661
  25. package/src/adapters/preact.d.ts +3 -3
  26. package/src/adapters/preact.js +3 -3
  27. package/src/adapters/react/index.js +48 -54
  28. package/src/adapters/react.d.ts +3 -3
  29. package/src/adapters/react.js +3 -3
  30. package/src/adapters/shared.js +64 -64
  31. package/src/adapters/solid/ai.js +32 -32
  32. package/src/adapters/solid/index.d.ts +101 -101
  33. package/src/adapters/solid/index.js +586 -586
  34. package/src/adapters/solid.d.ts +3 -3
  35. package/src/adapters/solid.js +3 -3
  36. package/src/adapters/svelte/ai.js +31 -31
  37. package/src/adapters/svelte/index.d.ts +166 -166
  38. package/src/adapters/svelte/index.js +798 -798
  39. package/src/adapters/svelte.d.ts +3 -3
  40. package/src/adapters/svelte.js +3 -3
  41. package/src/adapters/vanilla/ai.js +30 -30
  42. package/src/adapters/vanilla/index.d.ts +179 -179
  43. package/src/adapters/vanilla/index.js +785 -785
  44. package/src/adapters/vanilla.d.ts +3 -3
  45. package/src/adapters/vanilla.js +3 -3
  46. package/src/adapters/vue/ai.js +52 -52
  47. package/src/adapters/vue/index.d.ts +299 -299
  48. package/src/adapters/vue/index.js +610 -610
  49. package/src/adapters/vue.d.ts +3 -3
  50. package/src/adapters/vue.js +3 -3
  51. package/src/ai/wu-ai-actions.js +261 -261
  52. package/src/ai/wu-ai-agent.js +546 -546
  53. package/src/ai/wu-ai-browser-primitives.js +354 -354
  54. package/src/ai/wu-ai-browser.js +380 -380
  55. package/src/ai/wu-ai-context.js +332 -332
  56. package/src/ai/wu-ai-conversation.js +613 -613
  57. package/src/ai/wu-ai-orchestrate.js +1021 -1021
  58. package/src/ai/wu-ai-permissions.js +381 -381
  59. package/src/ai/wu-ai-provider.js +700 -700
  60. package/src/ai/wu-ai-schema.js +225 -225
  61. package/src/ai/wu-ai-triggers.js +396 -396
  62. package/src/ai/wu-ai.js +804 -804
  63. package/src/core/wu-app.js +236 -236
  64. package/src/core/wu-cache.js +498 -477
  65. package/src/core/wu-core.js +1412 -1398
  66. package/src/core/wu-error-boundary.js +396 -382
  67. package/src/core/wu-event-bus.js +390 -348
  68. package/src/core/wu-hooks.js +350 -350
  69. package/src/core/wu-html-parser.js +199 -190
  70. package/src/core/wu-iframe-sandbox.js +328 -328
  71. package/src/core/wu-loader.js +385 -273
  72. package/src/core/wu-logger.js +142 -134
  73. package/src/core/wu-manifest.js +532 -509
  74. package/src/core/wu-mcp-bridge.js +432 -432
  75. package/src/core/wu-overrides.js +510 -510
  76. package/src/core/wu-performance.js +228 -228
  77. package/src/core/wu-plugin.js +401 -348
  78. package/src/core/wu-prefetch.js +414 -414
  79. package/src/core/wu-proxy-sandbox.js +477 -476
  80. package/src/core/wu-sandbox.js +779 -779
  81. package/src/core/wu-script-executor.js +161 -113
  82. package/src/core/wu-snapshot-sandbox.js +227 -227
  83. package/src/core/wu-store.js +13 -3
  84. package/src/core/wu-strategies.js +256 -256
  85. package/src/core/wu-style-bridge.js +477 -477
  86. package/src/index.d.ts +317 -0
  87. package/src/index.js +234 -224
  88. 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.dev/favicon.svg" width="80" alt="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/wu-framework/wu-framework/actions"><img src="https://img.shields.io/github/actions/workflow/status/wu-framework/wu-framework/ci.yml?label=tests&color=10b981" alt="tests" /></a>
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.dev">Documentation</a> &middot;
21
- <a href="https://wu-framework.dev/docs/quick-start">Quick Start</a> &middot;
22
- <a href="https://wu-framework.dev/docs/ai/overview">AI Integration</a> &middot;
20
+ <a href="https://www.wu-framework.com">Documentation</a> &middot;
21
+ <a href="https://www.wu-framework.com/docs/quick-start">Quick Start</a> &middot;
22
+ <a href="https://www.wu-framework.com/docs/ai/overview">AI Integration</a> &middot;
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.dev.js` | ES Module | Development |
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.dev](https://wu-framework.dev)**
380
-
381
- - [Quick Start](https://wu-framework.dev/docs/quick-start) — Get running in 5 minutes
382
- - [Getting Started](https://wu-framework.dev/docs/getting-started) — Deeper tutorial with cross-app communication
383
- - [API Reference](https://wu-framework.dev/docs/core/api) — Full API docs
384
- - [Event Bus](https://wu-framework.dev/docs/core/event-bus) — Inter-app communication
385
- - [Shared Store](https://wu-framework.dev/docs/core/store) — Cross-app reactive state
386
- - [Sandbox](https://wu-framework.dev/docs/core/sandbox) — JS isolation strategies
387
- - [AI Overview](https://wu-framework.dev/docs/ai/overview) — 4 AI paradigms
388
- - [AI Actions](https://wu-framework.dev/docs/ai/actions) — Register tools for the LLM
389
- - [Browser Actions](https://wu-framework.dev/docs/ai/browser-actions) — 10 built-in browser tools
390
- - [MCP Server](https://wu-framework.dev/docs/ai/mcp-server) — Connect AI agents to live apps
391
- - [CSS Isolation](https://wu-framework.dev/docs/guides/css-isolation) — Shadow DOM style modes
392
- - [Deployment](https://wu-framework.dev/docs/guides/deployment) — Production deployment guide
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.