web-agent-bridge 1.2.0 → 2.0.0

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 (94) hide show
  1. package/LICENSE +21 -21
  2. package/README.ar.md +446 -446
  3. package/README.md +780 -933
  4. package/bin/cli.js +80 -80
  5. package/bin/wab.js +80 -80
  6. package/examples/bidi-agent.js +119 -119
  7. package/examples/mcp-agent.js +94 -94
  8. package/examples/next-app-router/README.md +44 -0
  9. package/examples/puppeteer-agent.js +108 -108
  10. package/examples/saas-dashboard/README.md +55 -0
  11. package/examples/shopify-hydrogen/README.md +74 -0
  12. package/examples/vision-agent.js +171 -171
  13. package/examples/wordpress-elementor/README.md +77 -0
  14. package/package.json +69 -78
  15. package/public/.well-known/ai-assets.json +59 -0
  16. package/public/admin/login.html +84 -84
  17. package/public/ai.html +196 -0
  18. package/public/cookies.html +208 -208
  19. package/public/css/premium.css +317 -0
  20. package/public/css/styles.css +1235 -1235
  21. package/public/dashboard.html +704 -704
  22. package/public/demo.html +259 -0
  23. package/public/docs.html +585 -585
  24. package/public/feed.xml +89 -0
  25. package/public/index.html +495 -332
  26. package/public/js/auth-nav.js +31 -31
  27. package/public/js/auth-redirect.js +12 -12
  28. package/public/js/cookie-consent.js +56 -56
  29. package/public/js/wab-demo-page.js +721 -0
  30. package/public/js/ws-client.js +74 -74
  31. package/public/llms-full.txt +309 -0
  32. package/public/llms.txt +85 -0
  33. package/public/login.html +83 -83
  34. package/public/openapi.json +580 -0
  35. package/public/premium-dashboard.html +2487 -0
  36. package/public/premium.html +791 -0
  37. package/public/privacy.html +295 -295
  38. package/public/register.html +103 -103
  39. package/public/robots.txt +87 -0
  40. package/public/script/wab-consent.d.ts +36 -0
  41. package/public/script/wab-consent.js +104 -0
  42. package/public/script/wab-schema.js +131 -0
  43. package/public/script/wab.d.ts +108 -0
  44. package/public/script/wab.min.js +234 -0
  45. package/public/sitemap.xml +93 -0
  46. package/public/terms.html +254 -254
  47. package/public/video/tutorial.mp4 +0 -0
  48. package/script/ai-agent-bridge.js +1558 -1513
  49. package/sdk/README.md +55 -55
  50. package/sdk/index.d.ts +118 -0
  51. package/sdk/index.js +257 -203
  52. package/sdk/package.json +14 -14
  53. package/sdk/schema-discovery.js +83 -0
  54. package/server/config/secrets.js +94 -92
  55. package/server/index.js +0 -9
  56. package/server/middleware/adminAuth.js +30 -30
  57. package/server/middleware/auth.js +41 -41
  58. package/server/middleware/rateLimits.js +24 -24
  59. package/server/migrations/001_add_analytics_indexes.sql +7 -7
  60. package/server/migrations/002_premium_features.sql +418 -0
  61. package/server/models/adapters/index.js +33 -33
  62. package/server/models/adapters/mysql.js +183 -183
  63. package/server/models/adapters/postgresql.js +172 -172
  64. package/server/models/adapters/sqlite.js +7 -7
  65. package/server/models/db.js +561 -561
  66. package/server/routes/admin-premium.js +671 -0
  67. package/server/routes/admin.js +247 -247
  68. package/server/routes/api.js +131 -138
  69. package/server/routes/auth.js +51 -51
  70. package/server/routes/billing.js +45 -45
  71. package/server/routes/discovery.js +406 -329
  72. package/server/routes/license.js +240 -240
  73. package/server/routes/noscript.js +543 -543
  74. package/server/routes/premium-v2.js +686 -0
  75. package/server/routes/premium.js +724 -0
  76. package/server/routes/wab-api.js +476 -476
  77. package/server/services/agent-memory.js +625 -0
  78. package/server/services/email.js +204 -204
  79. package/server/services/fairness.js +420 -420
  80. package/server/services/plugins.js +747 -0
  81. package/server/services/premium.js +1883 -0
  82. package/server/services/self-healing.js +843 -0
  83. package/server/services/stripe.js +192 -192
  84. package/server/services/swarm.js +788 -0
  85. package/server/services/vision.js +871 -0
  86. package/server/utils/cache.js +125 -125
  87. package/server/utils/migrate.js +81 -81
  88. package/server/utils/secureFields.js +50 -50
  89. package/server/ws.js +101 -101
  90. package/docs/DEPLOY.md +0 -118
  91. package/docs/SPEC.md +0 -1540
  92. package/wab-mcp-adapter/README.md +0 -136
  93. package/wab-mcp-adapter/index.js +0 -555
  94. package/wab-mcp-adapter/package.json +0 -17
@@ -0,0 +1,89 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <feed xmlns="http://www.w3.org/2005/Atom">
3
+ <title>Web Agent Bridge — Changelog</title>
4
+ <subtitle>Open protocol for AI agent ↔ website interaction. Release notes and updates.</subtitle>
5
+ <link href="https://webagentbridge.com/feed.xml" rel="self" type="application/atom+xml"/>
6
+ <link href="https://webagentbridge.com/" rel="alternate" type="text/html"/>
7
+ <id>https://webagentbridge.com/</id>
8
+ <updated>2026-03-28T00:00:00Z</updated>
9
+ <author>
10
+ <name>Web Agent Bridge</name>
11
+ <uri>https://webagentbridge.com</uri>
12
+ </author>
13
+ <icon>https://webagentbridge.com/favicon.ico</icon>
14
+ <rights>MIT License</rights>
15
+ <category term="AI" label="Artificial Intelligence"/>
16
+ <category term="web-protocol" label="Web Protocol"/>
17
+ <category term="automation" label="Automation"/>
18
+
19
+ <entry>
20
+ <title>v1.2.0 — WAB Protocol Ecosystem Release</title>
21
+ <link href="https://github.com/abokenan444/web-agent-bridge/releases/tag/v1.2.0" rel="alternate"/>
22
+ <id>https://webagentbridge.com/releases/v1.2.0</id>
23
+ <updated>2026-03-28T00:00:00Z</updated>
24
+ <summary type="html">
25
+ &lt;p&gt;Major release: WAB Protocol Specification v1.0, MCP Adapter for Claude/GPT integration,
26
+ Fairness Engine for equitable AI discovery, Discovery Protocol with agent-bridge.json,
27
+ WordPress plugin with full protocol support, dynamic subscription plan management,
28
+ NoScript HTTP fallback for JS-disabled environments, Agent SDK with discover/ping/execute methods,
29
+ and comprehensive OpenAPI documentation.&lt;/p&gt;
30
+ </summary>
31
+ <content type="html">
32
+ &lt;h2&gt;WAB Protocol v1.2.0 — Ecosystem Release&lt;/h2&gt;
33
+ &lt;h3&gt;Protocol &amp; Specification&lt;/h3&gt;
34
+ &lt;ul&gt;
35
+ &lt;li&gt;WAB Protocol Specification v1.0 — Formal spec with Discovery, Command, Lifecycle, Security, and Fairness protocols&lt;/li&gt;
36
+ &lt;li&gt;Discovery Protocol — Sites publish agent-bridge.json or /.well-known/wab.json&lt;/li&gt;
37
+ &lt;li&gt;Command Protocol — Standardized JSON format for agent actions&lt;/li&gt;
38
+ &lt;li&gt;Lifecycle Protocol — Discover → Authenticate → Plan → Execute → Confirm&lt;/li&gt;
39
+ &lt;/ul&gt;
40
+ &lt;h3&gt;MCP Integration&lt;/h3&gt;
41
+ &lt;ul&gt;
42
+ &lt;li&gt;wab-mcp-adapter — Converts WAB actions into MCP tools&lt;/li&gt;
43
+ &lt;li&gt;Compatible with Claude, GPT, LangChain, and any MCP-enabled agent&lt;/li&gt;
44
+ &lt;/ul&gt;
45
+ &lt;h3&gt;Fairness Engine&lt;/h3&gt;
46
+ &lt;ul&gt;
47
+ &lt;li&gt;Neutrality scoring (0–100) for equitable site discovery&lt;/li&gt;
48
+ &lt;li&gt;Anti-monopoly bias correction in search results&lt;/li&gt;
49
+ &lt;li&gt;Commission transparency and local business support flags&lt;/li&gt;
50
+ &lt;/ul&gt;
51
+ &lt;h3&gt;WordPress Plugin&lt;/h3&gt;
52
+ &lt;ul&gt;
53
+ &lt;li&gt;Discovery Protocol endpoints (REST API + rewrite rules)&lt;/li&gt;
54
+ &lt;li&gt;NoScript meta tags and fallback for HTTP-only agents&lt;/li&gt;
55
+ &lt;li&gt;Protocol status page in admin settings&lt;/li&gt;
56
+ &lt;/ul&gt;
57
+ &lt;h3&gt;Infrastructure&lt;/h3&gt;
58
+ &lt;ul&gt;
59
+ &lt;li&gt;Dynamic subscription plan management via admin dashboard&lt;/li&gt;
60
+ &lt;li&gt;OpenAPI specification for all public endpoints&lt;/li&gt;
61
+ &lt;li&gt;llms.txt and llms-full.txt for AI model discovery&lt;/li&gt;
62
+ &lt;li&gt;AI-optimized robots.txt and sitemap.xml&lt;/li&gt;
63
+ &lt;/ul&gt;
64
+ </content>
65
+ </entry>
66
+
67
+ <entry>
68
+ <title>v1.1.0 — Protocol Specification &amp; MCP Adapter</title>
69
+ <link href="https://github.com/abokenan444/web-agent-bridge/releases/tag/v1.1.0" rel="alternate"/>
70
+ <id>https://webagentbridge.com/releases/v1.1.0</id>
71
+ <updated>2026-03-25T00:00:00Z</updated>
72
+ <summary type="html">
73
+ &lt;p&gt;Introduction of the WAB Protocol Specification v1.0, MCP adapter for LLM integration,
74
+ Discovery Protocol, and Fairness Engine.&lt;/p&gt;
75
+ </summary>
76
+ </entry>
77
+
78
+ <entry>
79
+ <title>v1.0.0 — Initial Release</title>
80
+ <link href="https://github.com/abokenan444/web-agent-bridge/releases/tag/v1.0.0" rel="alternate"/>
81
+ <id>https://webagentbridge.com/releases/v1.0.0</id>
82
+ <updated>2026-03-20T00:00:00Z</updated>
83
+ <summary type="html">
84
+ &lt;p&gt;First public release of Web Agent Bridge. Core runtime with AI command registration,
85
+ client-side bridge script, Express.js server, license management, analytics,
86
+ and the initial NoScript fallback.&lt;/p&gt;
87
+ </summary>
88
+ </entry>
89
+ </feed>