web-agent-bridge 3.3.0 → 3.8.1

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 (312) hide show
  1. package/LICENSE +84 -72
  2. package/README.ar.md +1563 -1286
  3. package/README.md +137 -1764
  4. package/bin/agent-runner.js +474 -474
  5. package/bin/cli.js +237 -237
  6. package/bin/wab-init.js +244 -0
  7. package/bin/wab.js +80 -80
  8. package/examples/azure-dns-wab.js +83 -0
  9. package/examples/bidi-agent.js +119 -119
  10. package/examples/cloudflare-wab-dns.js +121 -0
  11. package/examples/cpanel-wab-dns.js +114 -0
  12. package/examples/cross-site-agent.js +91 -91
  13. package/examples/dns-discovery-agent.js +166 -0
  14. package/examples/gcp-dns-wab.js +76 -0
  15. package/examples/governance-agent.js +169 -0
  16. package/examples/mcp-agent.js +94 -94
  17. package/examples/next-app-router/README.md +44 -44
  18. package/examples/plesk-wab-dns.js +103 -0
  19. package/examples/puppeteer-agent.js +108 -108
  20. package/examples/route53-wab-dns.js +144 -0
  21. package/examples/saas-dashboard/README.md +55 -55
  22. package/examples/safe-mode-agent.js +96 -0
  23. package/examples/self-discovery.js +106 -0
  24. package/examples/shopify-hydrogen/README.md +74 -74
  25. package/examples/vision-agent.js +171 -171
  26. package/examples/wab-sign.js +74 -0
  27. package/examples/wab-verify.js +60 -0
  28. package/examples/wordpress-elementor/README.md +77 -77
  29. package/package.json +93 -93
  30. package/public/.well-known/agent-tools.json +180 -180
  31. package/public/.well-known/ai-assets.json +59 -59
  32. package/public/.well-known/security.txt +8 -8
  33. package/public/.well-known/wab.json +28 -0
  34. package/public/activate.html +448 -0
  35. package/public/adopt.html +236 -0
  36. package/public/adoption-metrics.html +188 -0
  37. package/public/agent-workspace.html +359 -349
  38. package/public/ai.html +198 -198
  39. package/public/api.html +397 -413
  40. package/public/azure-dns-integration.html +289 -0
  41. package/public/browser.html +486 -486
  42. package/public/cloudflare-integration.html +380 -0
  43. package/public/commander-dashboard.html +243 -243
  44. package/public/cookies.html +210 -210
  45. package/public/cpanel-integration.html +398 -0
  46. package/public/css/agent-workspace.css +1713 -1713
  47. package/public/css/premium.css +317 -317
  48. package/public/css/styles.css +1401 -1235
  49. package/public/dashboard-shieldlink.html +295 -0
  50. package/public/dashboard.html +711 -706
  51. package/public/dns.html +436 -507
  52. package/public/docs.html +588 -587
  53. package/public/enterprise-mesh.ar.html +80 -0
  54. package/public/enterprise-mesh.html +81 -0
  55. package/public/feed.xml +89 -89
  56. package/public/gcp-dns-integration.html +318 -0
  57. package/public/governance.ar.html +70 -0
  58. package/public/governance.html +69 -0
  59. package/public/growth.html +465 -463
  60. package/public/index.html +1372 -1070
  61. package/public/integrations.html +556 -556
  62. package/public/js/activate.js +449 -0
  63. package/public/js/agent-workspace.js +1740 -1740
  64. package/public/js/auth-nav.js +117 -31
  65. package/public/js/auth-redirect.js +12 -12
  66. package/public/js/cookie-consent.js +56 -56
  67. package/public/js/dns.js +438 -0
  68. package/public/js/wab-demo-page.js +721 -721
  69. package/public/js/ws-client.js +74 -74
  70. package/public/l-preview.html +242 -0
  71. package/public/llms-full.txt +360 -360
  72. package/public/llms.txt +125 -125
  73. package/public/login.html +85 -85
  74. package/public/mesh-dashboard.html +328 -328
  75. package/public/milestones.html +346 -0
  76. package/public/one-click.html +779 -0
  77. package/public/openapi.json +669 -580
  78. package/public/partners.ar.html +145 -0
  79. package/public/partners.html +143 -0
  80. package/public/phone-shield.html +281 -281
  81. package/public/plesk-integration.html +375 -0
  82. package/public/premium-dashboard.html +2489 -2489
  83. package/public/premium.html +793 -793
  84. package/public/privacy.html +297 -297
  85. package/public/provider-onboarding.html +172 -0
  86. package/public/provider-sandbox.html +134 -0
  87. package/public/providers.html +359 -0
  88. package/public/refusals.html +172 -0
  89. package/public/register.html +105 -105
  90. package/public/registrar-integrations.html +141 -0
  91. package/public/ring4.html +292 -0
  92. package/public/robots.txt +99 -87
  93. package/public/route53-integration.html +531 -0
  94. package/public/score.html +263 -0
  95. package/public/script/wab-consent.d.ts +36 -36
  96. package/public/script/wab-consent.js +104 -104
  97. package/public/script/wab-schema.js +131 -131
  98. package/public/script/wab.d.ts +108 -108
  99. package/public/script/wab.min.js +580 -580
  100. package/public/security.txt +8 -8
  101. package/public/shieldlink.html +244 -0
  102. package/public/shieldqr.html +231 -0
  103. package/public/sitemap.xml +19 -1
  104. package/public/terms.html +256 -256
  105. package/public/trust-graph-api.ar.html +92 -0
  106. package/public/trust-graph-api.html +91 -0
  107. package/public/wab-features.html +560 -0
  108. package/public/wab-trust.html +200 -0
  109. package/public/wab-truth.html +375 -0
  110. package/public/wab-vs-protocols.html +210 -0
  111. package/public/whitepaper.html +449 -0
  112. package/script/ai-agent-bridge.js +1754 -1754
  113. package/sdk/README.md +99 -99
  114. package/sdk/agent-mesh.js +449 -449
  115. package/sdk/auto-discovery.js +301 -0
  116. package/sdk/commander.js +262 -262
  117. package/sdk/governance.js +262 -0
  118. package/sdk/index.d.ts +464 -464
  119. package/sdk/index.js +649 -636
  120. package/sdk/multi-agent.js +318 -318
  121. package/sdk/package.json +2 -2
  122. package/sdk/safe-mode.js +221 -0
  123. package/sdk/safety-shield.js +219 -219
  124. package/sdk/schema-discovery.js +83 -83
  125. package/server/adapters/index.js +520 -520
  126. package/server/config/plans.js +412 -367
  127. package/server/config/secrets.js +102 -102
  128. package/server/control-plane/index.js +301 -301
  129. package/server/data-plane/index.js +354 -354
  130. package/server/index.js +790 -531
  131. package/server/llm/index.js +404 -404
  132. package/server/middleware/adminAuth.js +35 -35
  133. package/server/middleware/api-tier.js +170 -0
  134. package/server/middleware/auth.js +50 -50
  135. package/server/middleware/featureGate.js +88 -88
  136. package/server/middleware/rateLimits.js +100 -100
  137. package/server/middleware/sensitiveAction.js +157 -157
  138. package/server/middleware/wab-trust.js +141 -0
  139. package/server/migrations/001_add_analytics_indexes.sql +7 -7
  140. package/server/migrations/002_premium_features.sql +418 -418
  141. package/server/migrations/003_ads_integer_cents.sql +33 -33
  142. package/server/migrations/004_agent_os.sql +158 -158
  143. package/server/migrations/005_marketplace_metering.sql +126 -126
  144. package/server/migrations/006_growth_suite.sql +138 -0
  145. package/server/migrations/007_governance.sql +106 -0
  146. package/server/migrations/008_plans.sql +144 -0
  147. package/server/migrations/009_shieldqr.sql +30 -0
  148. package/server/migrations/010_extended_trust.sql +33 -0
  149. package/server/migrations/011_outreach.sql +47 -0
  150. package/server/migrations/012_shieldlink.sql +116 -0
  151. package/server/migrations/013_ct_monitor.sql +13 -0
  152. package/server/migrations/014_wab_advanced_features.sql +128 -0
  153. package/server/migrations/015_wab_truth_layer.sql +101 -0
  154. package/server/migrations/016_ring4_external_trust.sql +84 -0
  155. package/server/migrations/017_ring4_extensions.sql +69 -0
  156. package/server/migrations/018_commercial_foundations.sql +167 -0
  157. package/server/migrations/019_unify_tier_constraints.sql +133 -0
  158. package/server/models/adapters/index.js +33 -33
  159. package/server/models/adapters/mysql.js +183 -183
  160. package/server/models/adapters/postgresql.js +172 -172
  161. package/server/models/adapters/sqlite.js +7 -7
  162. package/server/models/db.js +740 -681
  163. package/server/observability/failure-analysis.js +337 -337
  164. package/server/observability/index.js +394 -394
  165. package/server/protocol/capabilities.js +223 -223
  166. package/server/protocol/index.js +243 -243
  167. package/server/protocol/schema.js +584 -584
  168. package/server/registry/certification.js +271 -271
  169. package/server/registry/index.js +326 -326
  170. package/server/routes/activate.js +478 -0
  171. package/server/routes/admin-outreach.js +239 -0
  172. package/server/routes/admin-plans.js +76 -0
  173. package/server/routes/admin-premium.js +674 -671
  174. package/server/routes/admin-shieldlink.js +137 -0
  175. package/server/routes/admin-shieldqr.js +90 -0
  176. package/server/routes/admin-trust-monitor.js +139 -0
  177. package/server/routes/admin.js +550 -261
  178. package/server/routes/adopt.js +61 -0
  179. package/server/routes/ads.js +130 -130
  180. package/server/routes/agent-workspace.js +540 -540
  181. package/server/routes/api-keys.js +127 -0
  182. package/server/routes/api.js +150 -150
  183. package/server/routes/auth.js +71 -71
  184. package/server/routes/billing.js +57 -45
  185. package/server/routes/commander.js +316 -316
  186. package/server/routes/customer-shieldlink.js +133 -0
  187. package/server/routes/demo-showcase.js +332 -332
  188. package/server/routes/demo-store.js +154 -154
  189. package/server/routes/diagnose.js +373 -0
  190. package/server/routes/discovery.js +2348 -417
  191. package/server/routes/enterprise-mesh.js +170 -0
  192. package/server/routes/gateway.js +173 -173
  193. package/server/routes/governance-saas.js +203 -0
  194. package/server/routes/governance.js +208 -0
  195. package/server/routes/growth.js +1048 -0
  196. package/server/routes/intent.js +328 -0
  197. package/server/routes/license.js +251 -251
  198. package/server/routes/mesh.js +469 -469
  199. package/server/routes/noscript.js +543 -543
  200. package/server/routes/partners.js +201 -0
  201. package/server/routes/plans.js +33 -0
  202. package/server/routes/premium-v2.js +686 -686
  203. package/server/routes/premium.js +724 -724
  204. package/server/routes/providers.js +650 -0
  205. package/server/routes/reputation.js +411 -0
  206. package/server/routes/ring4.js +885 -0
  207. package/server/routes/runtime.js +2148 -2148
  208. package/server/routes/shieldlink.js +70 -0
  209. package/server/routes/shieldqr.js +88 -0
  210. package/server/routes/sovereign.js +465 -465
  211. package/server/routes/truth-layer.js +670 -0
  212. package/server/routes/universal.js +200 -200
  213. package/server/routes/unsubscribe.js +51 -0
  214. package/server/routes/wab-api.js +850 -850
  215. package/server/routes/wab-cache.js +282 -0
  216. package/server/runtime/container-worker.js +111 -111
  217. package/server/runtime/container.js +448 -448
  218. package/server/runtime/distributed-worker.js +362 -362
  219. package/server/runtime/event-bus.js +210 -210
  220. package/server/runtime/index.js +253 -253
  221. package/server/runtime/queue.js +599 -599
  222. package/server/runtime/replay.js +666 -666
  223. package/server/runtime/sandbox.js +266 -266
  224. package/server/runtime/scheduler.js +534 -534
  225. package/server/runtime/session-engine.js +293 -293
  226. package/server/runtime/state-manager.js +188 -188
  227. package/server/secrets/wab-signing-key.pem +3 -0
  228. package/server/secrets/wab-signing-pub.pem +3 -0
  229. package/server/security/cross-site-redactor.js +196 -196
  230. package/server/security/dry-run.js +180 -180
  231. package/server/security/human-gate-rate-limit.js +147 -147
  232. package/server/security/human-gate-transports.js +178 -178
  233. package/server/security/human-gate.js +281 -281
  234. package/server/security/index.js +368 -368
  235. package/server/security/intent-engine.js +245 -245
  236. package/server/security/reward-guard.js +171 -171
  237. package/server/security/rollback-store.js +239 -239
  238. package/server/security/token-scope.js +404 -404
  239. package/server/security/url-policy.js +139 -139
  240. package/server/services/adoption-agent.js +182 -0
  241. package/server/services/agent-chat.js +506 -506
  242. package/server/services/agent-learning.js +601 -601
  243. package/server/services/agent-memory.js +625 -625
  244. package/server/services/agent-mesh.js +555 -555
  245. package/server/services/agent-symphony.js +717 -717
  246. package/server/services/agent-tasks.js +1807 -1807
  247. package/server/services/api-key-engine.js +292 -292
  248. package/server/services/cluster.js +894 -894
  249. package/server/services/commander.js +738 -738
  250. package/server/services/edge-compute.js +440 -440
  251. package/server/services/email.js +233 -204
  252. package/server/services/fairness-engine.js +409 -0
  253. package/server/services/fairness.js +420 -0
  254. package/server/services/governance.js +466 -0
  255. package/server/services/hosted-runtime.js +205 -205
  256. package/server/services/lfd.js +635 -635
  257. package/server/services/local-ai.js +389 -389
  258. package/server/services/marketplace.js +270 -270
  259. package/server/services/metering.js +182 -182
  260. package/server/services/modules/affiliate-intelligence.js +93 -93
  261. package/server/services/modules/agent-firewall.js +90 -90
  262. package/server/services/modules/bounty.js +89 -89
  263. package/server/services/modules/collective-bargaining.js +92 -92
  264. package/server/services/modules/dark-pattern.js +66 -66
  265. package/server/services/modules/gov-intelligence.js +45 -45
  266. package/server/services/modules/neural.js +55 -55
  267. package/server/services/modules/notary.js +49 -49
  268. package/server/services/modules/price-time-machine.js +86 -86
  269. package/server/services/modules/protocol.js +104 -104
  270. package/server/services/negotiation.js +439 -439
  271. package/server/services/outreach-agent.js +312 -0
  272. package/server/services/plans.js +214 -0
  273. package/server/services/plugins.js +771 -771
  274. package/server/services/premium.js +1 -1
  275. package/server/services/price-intelligence.js +566 -566
  276. package/server/services/price-shield.js +1137 -1137
  277. package/server/services/provider-clients.js +740 -0
  278. package/server/services/reputation.js +465 -465
  279. package/server/services/search-engine.js +357 -357
  280. package/server/services/security.js +513 -513
  281. package/server/services/self-healing.js +843 -843
  282. package/server/services/shieldlink.js +492 -0
  283. package/server/services/shieldqr.js +322 -0
  284. package/server/services/sovereign-shield.js +542 -542
  285. package/server/services/ssl-ct-monitor.js +224 -0
  286. package/server/services/ssl-inspector.js +42 -0
  287. package/server/services/ssl-monitor.js +167 -0
  288. package/server/services/stripe.js +206 -192
  289. package/server/services/swarm.js +788 -788
  290. package/server/services/universal-scraper.js +662 -662
  291. package/server/services/verification.js +481 -481
  292. package/server/services/vision.js +1163 -1163
  293. package/server/services/wab-crypto.js +178 -0
  294. package/server/utils/cache.js +125 -125
  295. package/server/utils/migrate.js +81 -81
  296. package/server/utils/safe-fetch.js +228 -228
  297. package/server/utils/secureFields.js +50 -50
  298. package/server/ws.js +161 -161
  299. package/templates/artisan-marketplace.yaml +104 -104
  300. package/templates/book-price-scout.yaml +98 -98
  301. package/templates/electronics-price-tracker.yaml +108 -108
  302. package/templates/flight-deal-hunter.yaml +113 -113
  303. package/templates/freelancer-direct.yaml +116 -116
  304. package/templates/grocery-price-compare.yaml +93 -93
  305. package/templates/hotel-direct-booking.yaml +113 -113
  306. package/templates/local-services.yaml +98 -98
  307. package/templates/olive-oil-tunisia.yaml +88 -88
  308. package/templates/organic-farm-fresh.yaml +101 -101
  309. package/templates/restaurant-direct.yaml +97 -97
  310. package/templates/ring4/banking-sovereign.yaml +55 -0
  311. package/templates/ring4/ecommerce-sovereign.yaml +58 -0
  312. package/templates/ring4/healthcare-sovereign.yaml +60 -0
package/public/terms.html CHANGED
@@ -1,256 +1,256 @@
1
- <!DOCTYPE html>
2
- <html lang="en" dir="ltr">
3
- <head>
4
- <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Terms of Service — Web Agent Bridge</title>
7
- <meta name="description" content="Terms of Service for Web Agent Bridge. EU and Dutch law compliant.">
8
- <link rel="preconnect" href="https://fonts.googleapis.com">
9
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
- <style>body{background:#0a0e1a;color:#f0f4ff;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;min-height:100vh}</style>
11
- <link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
12
- <noscript><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet"></noscript>
13
- <link rel="stylesheet" href="/css/styles.css?v=3.0.1">
14
- </head>
15
- <body>
16
-
17
- <nav class="navbar" id="navbar">
18
- <div class="container">
19
- <a href="/" class="navbar-brand">
20
- <div class="brand-icon">⚡</div>
21
- <span>WAB</span>
22
- </a>
23
- <ul class="navbar-links">
24
- <li><a href="/#features">Features</a></li>
25
- <li><a href="/#pricing">Pricing</a></li>
26
- <li><a href="/docs">Docs</a></li>
27
- </ul>
28
- <div class="navbar-actions">
29
- <a href="/login" class="btn btn-ghost">Sign In</a>
30
- <a href="/register" class="btn btn-primary btn-sm">Get Started</a>
31
- </div>
32
- </div>
33
- </nav>
34
-
35
- <div class="container" style="padding-top: 120px; padding-bottom: 80px; max-width: 800px;">
36
- <div class="section-header" style="text-align: left;">
37
- <span class="label">Legal</span>
38
- <h1 style="font-size: 2.2rem;">Terms of Service</h1>
39
- <p style="max-width: 100%;">Last updated: March 22, 2026</p>
40
- </div>
41
-
42
- <div class="docs-content">
43
-
44
- <h2 id="acceptance">1. Acceptance of Terms</h2>
45
- <p>
46
- By accessing or using Web Agent Bridge ("WAB", "the Service"), you agree to be bound by these
47
- Terms of Service ("Terms"). If you do not agree, do not use the Service.
48
- </p>
49
- <p>
50
- These Terms are governed by <strong>Dutch law</strong> and the applicable laws of the European Union,
51
- including the Digital Services Act (DSA) and consumer protection regulations.
52
- </p>
53
-
54
- <h2 id="definitions">2. Definitions</h2>
55
- <ul>
56
- <li><strong>"Service"</strong> — The WAB hosted platform at webagentbridge.com, including the API, dashboard, and bridge script delivery</li>
57
- <li><strong>"Software"</strong> — The open-source WAB codebase, licensed under the MIT License</li>
58
- <li><strong>"User"</strong> / <strong>"You"</strong> — Any person or entity using the Service</li>
59
- <li><strong>"Site Owner"</strong> — A User who embeds the WAB bridge script on their website</li>
60
- <li><strong>"Agent Developer"</strong> — A User who builds AI agents that interact with WAB-enabled websites</li>
61
- <li><strong>"Subscription"</strong> — A paid plan (Starter, Pro, or Enterprise) with additional features</li>
62
- </ul>
63
-
64
- <h2 id="open-source">3. Open Source License</h2>
65
- <p>
66
- The WAB software is released under the <strong>MIT License</strong>. You are free to use, copy, modify,
67
- merge, publish, distribute, sublicense, and/or sell copies of the Software, subject to the conditions
68
- of the MIT License.
69
- </p>
70
- <p>
71
- These Terms of Service apply specifically to the <strong>hosted service at webagentbridge.com</strong>.
72
- If you self-host WAB, the MIT License governs the software, and you are responsible for your own
73
- terms and compliance.
74
- </p>
75
-
76
- <h2 id="accounts">4. Accounts</h2>
77
- <h3>4.1 Registration</h3>
78
- <p>
79
- To use certain features, you must create an account with a valid email address and secure password.
80
- You are responsible for maintaining the confidentiality of your credentials.
81
- </p>
82
- <h3>4.2 Age Requirement</h3>
83
- <p>
84
- You must be at least <strong>16 years of age</strong> to use the Service, in accordance with
85
- the Dutch UAVG implementation of GDPR Art. 8.
86
- </p>
87
- <h3>4.3 Account Security</h3>
88
- <p>
89
- You are responsible for all activity under your account. Notify us immediately at
90
- <a href="mailto:support@webagentbridge.com" style="color: var(--accent-blue);">support@webagentbridge.com</a>
91
- if you suspect unauthorized access.
92
- </p>
93
-
94
- <h2 id="service-tiers">5. Service Tiers & Subscriptions</h2>
95
- <h3>5.1 Free Tier</h3>
96
- <p>
97
- WAB offers a free tier with core features: auto-discovery, click/scroll/form-fill permissions,
98
- and basic logging. The free tier is provided "as-is" without guaranteed uptime or support.
99
- </p>
100
- <h3>5.2 Paid Subscriptions</h3>
101
- <p>Paid plans (Starter, Pro, Enterprise) provide additional features including:</p>
102
- <ul>
103
- <li>Analytics dashboard</li>
104
- <li>API access and data extraction</li>
105
- <li>Custom rate limits and webhooks</li>
106
- <li>Priority support</li>
107
- </ul>
108
- <h3>5.3 Billing</h3>
109
- <p>
110
- Subscriptions are billed monthly or annually via <strong>Stripe</strong>. Prices are displayed
111
- in EUR and are inclusive of Dutch VAT (BTW) for EU consumers, or exclusive of VAT for business
112
- customers with a valid EU VAT number.
113
- </p>
114
- <h3>5.4 Cancellation & Refunds</h3>
115
- <p>
116
- You may cancel your subscription at any time from your dashboard. Per the
117
- <strong>EU Consumer Rights Directive (2011/83/EU)</strong>:
118
- </p>
119
- <ul>
120
- <li>You have a <strong>14-day cooling-off period</strong> from the date of purchase for a full refund</li>
121
- <li>After 14 days, your subscription continues until the end of the current billing period</li>
122
- <li>No refunds for partial billing periods after the cooling-off period</li>
123
- </ul>
124
-
125
- <h2 id="acceptable-use">6. Acceptable Use</h2>
126
- <p>You agree NOT to use the Service to:</p>
127
- <ul>
128
- <li>Violate any applicable law or regulation</li>
129
- <li>Scrape, harvest, or collect data from websites without authorization</li>
130
- <li>Use Stealth Mode to bypass security controls on websites you do not own or have authorization to test</li>
131
- <li>Distribute malware, spam, or malicious content through the bridge</li>
132
- <li>Attempt to gain unauthorized access to our systems or other users' accounts</li>
133
- <li>Circumvent rate limits or abuse the Service infrastructure</li>
134
- <li>Use the Service for any purpose that violates the rights of others</li>
135
- </ul>
136
- <p>
137
- Violation of these terms may result in immediate account suspension or termination.
138
- </p>
139
-
140
- <h2 id="site-owner">7. Site Owner Responsibilities</h2>
141
- <p>If you embed the WAB bridge script on your website, you are responsible for:</p>
142
- <ul>
143
- <li>Informing your website visitors that AI agent interaction is enabled (transparency requirement)</li>
144
- <li>Configuring appropriate permissions and restrictions for your site</li>
145
- <li>Ensuring your use of WAB complies with applicable laws, including GDPR, ePrivacy, and accessibility regulations</li>
146
- <li>Obtaining necessary consents from your users where required</li>
147
- </ul>
148
-
149
- <h2 id="intellectual-property">8. Intellectual Property</h2>
150
- <p>
151
- The WAB <strong>software code</strong> is open source under the MIT License. However, the following
152
- are proprietary and may not be used without permission:
153
- </p>
154
- <ul>
155
- <li>The WAB brand name, logo, and visual identity</li>
156
- <li>The webagentbridge.com hosted service infrastructure</li>
157
- <li>Proprietary documentation and marketing content</li>
158
- </ul>
159
-
160
- <h2 id="availability">9. Service Availability</h2>
161
- <p>
162
- We aim to provide high availability but do not guarantee uninterrupted service. We may perform
163
- scheduled maintenance with reasonable advance notice. We are not liable for downtime caused
164
- by factors outside our control (force majeure).
165
- </p>
166
-
167
- <h2 id="liability">10. Limitation of Liability</h2>
168
- <p>
169
- To the maximum extent permitted by applicable law, including Dutch Civil Code (Burgerlijk Wetboek):
170
- </p>
171
- <ul>
172
- <li>The Service is provided <strong>"as-is"</strong> and <strong>"as-available"</strong></li>
173
- <li>We disclaim all warranties, express or implied, including merchantability and fitness for a particular purpose</li>
174
- <li>Our total liability shall not exceed the amount you paid us in the 12 months preceding the claim</li>
175
- <li>We are not liable for indirect, incidental, special, or consequential damages</li>
176
- </ul>
177
- <p>
178
- <strong>Note:</strong> These limitations do not affect your statutory rights as an EU consumer
179
- under the Consumer Rights Directive or the Dutch Burgerlijk Wetboek.
180
- </p>
181
-
182
- <h2 id="termination">11. Termination</h2>
183
- <p>
184
- We may suspend or terminate your account if you violate these Terms. Upon termination:
185
- </p>
186
- <ul>
187
- <li>Your access to the dashboard and API will be revoked</li>
188
- <li>Your license keys will stop working</li>
189
- <li>You may request export of your data within 30 days (per GDPR Art. 20)</li>
190
- <li>We will delete your personal data within 30 days, except where retention is required by law</li>
191
- </ul>
192
-
193
- <h2 id="dispute">12. Dispute Resolution</h2>
194
- <p>
195
- These Terms are governed by <strong>Dutch law</strong>. Any dispute arising from these Terms shall
196
- be submitted to the competent court in <strong>The Hague, the Netherlands</strong>.
197
- </p>
198
- <p>
199
- For EU consumers: You may also use the <strong>EU Online Dispute Resolution platform</strong> at
200
- <a href="https://ec.europa.eu/odr" style="color: var(--accent-blue);" target="_blank" rel="noopener">https://ec.europa.eu/odr</a>.
201
- </p>
202
-
203
- <h2 id="changes">13. Changes to These Terms</h2>
204
- <p>
205
- We may update these Terms from time to time. We will notify registered users of material changes
206
- via email at least <strong>30 days</strong> before they take effect. Continued use of the Service
207
- after changes constitutes acceptance.
208
- </p>
209
-
210
- <h2 id="contact">14. Contact</h2>
211
- <p>
212
- For questions about these Terms:<br>
213
- Email: <a href="mailto:support@webagentbridge.com" style="color: var(--accent-blue);">support@webagentbridge.com</a>
214
- </p>
215
- </div>
216
- </div>
217
-
218
- <footer class="footer">
219
- <div class="container">
220
- <div class="footer-grid">
221
- <div class="footer-brand">
222
- <a href="/" class="navbar-brand"><div class="brand-icon">⚡</div><span>Web Agent Bridge</span></a>
223
- <p>Open-source middleware for AI agent and website interaction.</p>
224
- </div>
225
- <div class="footer-col">
226
- <h4>Product</h4>
227
- <ul>
228
- <li><a href="/#features">Features</a></li>
229
- <li><a href="/#pricing">Pricing</a></li>
230
- <li><a href="/docs">Documentation</a></li>
231
- </ul>
232
- </div>
233
- <div class="footer-col">
234
- <h4>Developers</h4>
235
- <ul>
236
- <li><a href="/docs#quick-start">Quick Start</a></li>
237
- <li><a href="/docs#api-reference">API Reference</a></li>
238
- <li><a href="https://github.com/abokenan444/web-agent-bridge" target="_blank" rel="noopener">GitHub</a></li>
239
- </ul>
240
- </div>
241
- <div class="footer-col">
242
- <h4>Legal</h4>
243
- <ul>
244
- <li><a href="/privacy">Privacy Policy</a></li>
245
- <li><a href="/terms">Terms of Service</a></li>
246
- <li><a href="/cookies">Cookie Policy</a></li>
247
- </ul>
248
- </div>
249
- </div>
250
- <div class="footer-bottom">
251
- <span>&copy; 2026 Web Agent Bridge. MIT License. Operated from the Netherlands.</span>
252
- </div>
253
- </div>
254
- </footer>
255
- </body>
256
- </html>
1
+ <!DOCTYPE html>
2
+ <html lang="en" dir="ltr">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Terms of Service — Web Agent Bridge</title>
7
+ <meta name="description" content="Terms of Service for Web Agent Bridge. EU and Dutch law compliant.">
8
+ <link rel="preconnect" href="https://fonts.googleapis.com">
9
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
+ <style>body{background:#0a0e1a;color:#f0f4ff;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;margin:0;min-height:100vh}</style>
11
+ <link rel="preload" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" as="style" onload="this.onload=null;this.rel='stylesheet'">
12
+ <noscript><link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet"></noscript>
13
+ <link rel="stylesheet" href="/css/styles.css?v=3.0.1">
14
+ </head>
15
+ <body>
16
+
17
+ <nav class="navbar" id="navbar">
18
+ <div class="container">
19
+ <a href="/" class="navbar-brand">
20
+ <div class="brand-icon">⚡</div>
21
+ <span>WAB</span>
22
+ </a>
23
+ <ul class="navbar-links">
24
+ <li><a href="/#features">Features</a></li>
25
+ <li><a href="/#pricing">Pricing</a></li>
26
+ <li><a href="/docs">Docs</a></li>
27
+ </ul>
28
+ <div class="navbar-actions">
29
+ <a href="/login" class="btn btn-ghost">Sign In</a>
30
+ <a href="/register" class="btn btn-primary btn-sm">Get Started</a>
31
+ </div>
32
+ </div>
33
+ </nav>
34
+
35
+ <div class="container" style="padding-top: 120px; padding-bottom: 80px; max-width: 800px;">
36
+ <div class="section-header" style="text-align: left;">
37
+ <span class="label">Legal</span>
38
+ <h1 style="font-size: 2.2rem;">Terms of Service</h1>
39
+ <p style="max-width: 100%;">Last updated: March 22, 2026</p>
40
+ </div>
41
+
42
+ <div class="docs-content">
43
+
44
+ <h2 id="acceptance">1. Acceptance of Terms</h2>
45
+ <p>
46
+ By accessing or using Web Agent Bridge ("WAB", "the Service"), you agree to be bound by these
47
+ Terms of Service ("Terms"). If you do not agree, do not use the Service.
48
+ </p>
49
+ <p>
50
+ These Terms are governed by <strong>Dutch law</strong> and the applicable laws of the European Union,
51
+ including the Digital Services Act (DSA) and consumer protection regulations.
52
+ </p>
53
+
54
+ <h2 id="definitions">2. Definitions</h2>
55
+ <ul>
56
+ <li><strong>"Service"</strong> — The WAB hosted platform at webagentbridge.com, including the API, dashboard, and bridge script delivery</li>
57
+ <li><strong>"Software"</strong> — The open-source WAB codebase, licensed under the MIT License</li>
58
+ <li><strong>"User"</strong> / <strong>"You"</strong> — Any person or entity using the Service</li>
59
+ <li><strong>"Site Owner"</strong> — A User who embeds the WAB bridge script on their website</li>
60
+ <li><strong>"Agent Developer"</strong> — A User who builds AI agents that interact with WAB-enabled websites</li>
61
+ <li><strong>"Subscription"</strong> — A paid plan (Pro, Business, or Enterprise) with additional features</li>
62
+ </ul>
63
+
64
+ <h2 id="open-source">3. Open Source License</h2>
65
+ <p>
66
+ The WAB software is released under the <strong>MIT License</strong>. You are free to use, copy, modify,
67
+ merge, publish, distribute, sublicense, and/or sell copies of the Software, subject to the conditions
68
+ of the MIT License.
69
+ </p>
70
+ <p>
71
+ These Terms of Service apply specifically to the <strong>hosted service at webagentbridge.com</strong>.
72
+ If you self-host WAB, the MIT License governs the software, and you are responsible for your own
73
+ terms and compliance.
74
+ </p>
75
+
76
+ <h2 id="accounts">4. Accounts</h2>
77
+ <h3>4.1 Registration</h3>
78
+ <p>
79
+ To use certain features, you must create an account with a valid email address and secure password.
80
+ You are responsible for maintaining the confidentiality of your credentials.
81
+ </p>
82
+ <h3>4.2 Age Requirement</h3>
83
+ <p>
84
+ You must be at least <strong>16 years of age</strong> to use the Service, in accordance with
85
+ the Dutch UAVG implementation of GDPR Art. 8.
86
+ </p>
87
+ <h3>4.3 Account Security</h3>
88
+ <p>
89
+ You are responsible for all activity under your account. Notify us immediately at
90
+ <a href="mailto:support@webagentbridge.com" style="color: var(--accent-blue);">support@webagentbridge.com</a>
91
+ if you suspect unauthorized access.
92
+ </p>
93
+
94
+ <h2 id="service-tiers">5. Service Tiers & Subscriptions</h2>
95
+ <h3>5.1 Free Tier</h3>
96
+ <p>
97
+ WAB offers a free tier with core features: auto-discovery, click/scroll/form-fill permissions,
98
+ and basic logging. The free tier is provided "as-is" without guaranteed uptime or support.
99
+ </p>
100
+ <h3>5.2 Paid Subscriptions</h3>
101
+ <p>Paid plans (Pro, Business, Enterprise) provide additional features including:</p>
102
+ <ul>
103
+ <li>Analytics dashboard</li>
104
+ <li>API access and data extraction</li>
105
+ <li>Custom rate limits and webhooks</li>
106
+ <li>Priority support</li>
107
+ </ul>
108
+ <h3>5.3 Billing</h3>
109
+ <p>
110
+ Subscriptions are billed monthly or annually via <strong>Stripe</strong>. Prices are displayed
111
+ in EUR and are inclusive of Dutch VAT (BTW) for EU consumers, or exclusive of VAT for business
112
+ customers with a valid EU VAT number.
113
+ </p>
114
+ <h3>5.4 Cancellation & Refunds</h3>
115
+ <p>
116
+ You may cancel your subscription at any time from your dashboard. Per the
117
+ <strong>EU Consumer Rights Directive (2011/83/EU)</strong>:
118
+ </p>
119
+ <ul>
120
+ <li>You have a <strong>14-day cooling-off period</strong> from the date of purchase for a full refund</li>
121
+ <li>After 14 days, your subscription continues until the end of the current billing period</li>
122
+ <li>No refunds for partial billing periods after the cooling-off period</li>
123
+ </ul>
124
+
125
+ <h2 id="acceptable-use">6. Acceptable Use</h2>
126
+ <p>You agree NOT to use the Service to:</p>
127
+ <ul>
128
+ <li>Violate any applicable law or regulation</li>
129
+ <li>Scrape, harvest, or collect data from websites without authorization</li>
130
+ <li>Use Stealth Mode to bypass security controls on websites you do not own or have authorization to test</li>
131
+ <li>Distribute malware, spam, or malicious content through the bridge</li>
132
+ <li>Attempt to gain unauthorized access to our systems or other users' accounts</li>
133
+ <li>Circumvent rate limits or abuse the Service infrastructure</li>
134
+ <li>Use the Service for any purpose that violates the rights of others</li>
135
+ </ul>
136
+ <p>
137
+ Violation of these terms may result in immediate account suspension or termination.
138
+ </p>
139
+
140
+ <h2 id="site-owner">7. Site Owner Responsibilities</h2>
141
+ <p>If you embed the WAB bridge script on your website, you are responsible for:</p>
142
+ <ul>
143
+ <li>Informing your website visitors that AI agent interaction is enabled (transparency requirement)</li>
144
+ <li>Configuring appropriate permissions and restrictions for your site</li>
145
+ <li>Ensuring your use of WAB complies with applicable laws, including GDPR, ePrivacy, and accessibility regulations</li>
146
+ <li>Obtaining necessary consents from your users where required</li>
147
+ </ul>
148
+
149
+ <h2 id="intellectual-property">8. Intellectual Property</h2>
150
+ <p>
151
+ The WAB <strong>software code</strong> is open source under the MIT License. However, the following
152
+ are proprietary and may not be used without permission:
153
+ </p>
154
+ <ul>
155
+ <li>The WAB brand name, logo, and visual identity</li>
156
+ <li>The webagentbridge.com hosted service infrastructure</li>
157
+ <li>Proprietary documentation and marketing content</li>
158
+ </ul>
159
+
160
+ <h2 id="availability">9. Service Availability</h2>
161
+ <p>
162
+ We aim to provide high availability but do not guarantee uninterrupted service. We may perform
163
+ scheduled maintenance with reasonable advance notice. We are not liable for downtime caused
164
+ by factors outside our control (force majeure).
165
+ </p>
166
+
167
+ <h2 id="liability">10. Limitation of Liability</h2>
168
+ <p>
169
+ To the maximum extent permitted by applicable law, including Dutch Civil Code (Burgerlijk Wetboek):
170
+ </p>
171
+ <ul>
172
+ <li>The Service is provided <strong>"as-is"</strong> and <strong>"as-available"</strong></li>
173
+ <li>We disclaim all warranties, express or implied, including merchantability and fitness for a particular purpose</li>
174
+ <li>Our total liability shall not exceed the amount you paid us in the 12 months preceding the claim</li>
175
+ <li>We are not liable for indirect, incidental, special, or consequential damages</li>
176
+ </ul>
177
+ <p>
178
+ <strong>Note:</strong> These limitations do not affect your statutory rights as an EU consumer
179
+ under the Consumer Rights Directive or the Dutch Burgerlijk Wetboek.
180
+ </p>
181
+
182
+ <h2 id="termination">11. Termination</h2>
183
+ <p>
184
+ We may suspend or terminate your account if you violate these Terms. Upon termination:
185
+ </p>
186
+ <ul>
187
+ <li>Your access to the dashboard and API will be revoked</li>
188
+ <li>Your license keys will stop working</li>
189
+ <li>You may request export of your data within 30 days (per GDPR Art. 20)</li>
190
+ <li>We will delete your personal data within 30 days, except where retention is required by law</li>
191
+ </ul>
192
+
193
+ <h2 id="dispute">12. Dispute Resolution</h2>
194
+ <p>
195
+ These Terms are governed by <strong>Dutch law</strong>. Any dispute arising from these Terms shall
196
+ be submitted to the competent court in <strong>The Hague, the Netherlands</strong>.
197
+ </p>
198
+ <p>
199
+ For EU consumers: You may also use the <strong>EU Online Dispute Resolution platform</strong> at
200
+ <a href="https://ec.europa.eu/odr" style="color: var(--accent-blue);" target="_blank" rel="noopener">https://ec.europa.eu/odr</a>.
201
+ </p>
202
+
203
+ <h2 id="changes">13. Changes to These Terms</h2>
204
+ <p>
205
+ We may update these Terms from time to time. We will notify registered users of material changes
206
+ via email at least <strong>30 days</strong> before they take effect. Continued use of the Service
207
+ after changes constitutes acceptance.
208
+ </p>
209
+
210
+ <h2 id="contact">14. Contact</h2>
211
+ <p>
212
+ For questions about these Terms:<br>
213
+ Email: <a href="mailto:support@webagentbridge.com" style="color: var(--accent-blue);">support@webagentbridge.com</a>
214
+ </p>
215
+ </div>
216
+ </div>
217
+
218
+ <footer class="footer">
219
+ <div class="container">
220
+ <div class="footer-grid">
221
+ <div class="footer-brand">
222
+ <a href="/" class="navbar-brand"><div class="brand-icon">⚡</div><span>Web Agent Bridge</span></a>
223
+ <p>Open-source middleware for AI agent and website interaction.</p>
224
+ </div>
225
+ <div class="footer-col">
226
+ <h4>Product</h4>
227
+ <ul>
228
+ <li><a href="/#features">Features</a></li>
229
+ <li><a href="/#pricing">Pricing</a></li>
230
+ <li><a href="/docs">Documentation</a></li>
231
+ </ul>
232
+ </div>
233
+ <div class="footer-col">
234
+ <h4>Developers</h4>
235
+ <ul>
236
+ <li><a href="/docs#quick-start">Quick Start</a></li>
237
+ <li><a href="/docs#api-reference">API Reference</a></li>
238
+ <li><a href="https://github.com/abokenan444/web-agent-bridge" target="_blank" rel="noopener">GitHub</a></li>
239
+ </ul>
240
+ </div>
241
+ <div class="footer-col">
242
+ <h4>Legal</h4>
243
+ <ul>
244
+ <li><a href="/privacy">Privacy Policy</a></li>
245
+ <li><a href="/terms">Terms of Service</a></li>
246
+ <li><a href="/cookies">Cookie Policy</a></li>
247
+ </ul>
248
+ </div>
249
+ </div>
250
+ <div class="footer-bottom">
251
+ <span>&copy; 2026 Web Agent Bridge. MIT License. Operated from the Netherlands.</span>
252
+ </div>
253
+ </div>
254
+ </footer>
255
+ </body>
256
+ </html>
@@ -0,0 +1,92 @@
1
+ <!doctype html>
2
+ <html lang="ar" dir="rtl">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <title>Trust Graph API — Web Agent Bridge</title>
7
+ <meta name="description" content="وصول برمجي لـ WAB Trust Graph: درجات ثقة زمنية، ملفات وكلاء موقَّعة، سجلّات رفض. طبقات Free / Pro / Enterprise.">
8
+ <link rel="canonical" href="https://www.webagentbridge.com/trust-graph-api.ar.html">
9
+ <style>
10
+ :root { --bg:#0b1020; --fg:#e7ebf3; --mute:#aab3c5; --card:#121a33; --line:#1f2a4d; }
11
+ *{box-sizing:border-box} body{margin:0;background:var(--bg);color:var(--fg);font:16px/1.75 "Cairo","Segoe UI",Tahoma,sans-serif}
12
+ a{color:#7dd3fc}.wrap{max-width:1120px;margin:0 auto;padding:32px 20px}
13
+ h1{font-size:32px;margin:0 0 8px}.sub{color:var(--mute);margin:0 0 28px}
14
+ pre{background:#0a1230;border:1px solid var(--line);border-radius:8px;padding:14px;overflow:auto;font-size:13.5px;direction:ltr;text-align:left}
15
+ code{background:#0a1230;padding:1px 6px;border-radius:4px;direction:ltr;display:inline-block}
16
+ .tiers{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;margin:18px 0 36px}
17
+ .tier{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px}
18
+ .tier h3{margin:0 0 6px}.tier .p{font-size:26px;font-weight:700;margin:6px 0}
19
+ .tier ul{margin:10px 18px 0 0;padding:0}
20
+ table{width:100%;border-collapse:collapse;margin:16px 0}
21
+ th,td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:right}
22
+ th{color:var(--mute);font-weight:600;font-size:13px}
23
+ form{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:22px;margin:20px 0}
24
+ input{width:100%;padding:10px;background:#0f1731;color:var(--fg);border:1px solid var(--line);border-radius:8px;font:inherit;margin:6px 0 0;direction:ltr;text-align:right}
25
+ label{display:block;font-size:13px;color:var(--mute);margin-top:10px}
26
+ button{margin-top:14px;padding:11px 18px;background:#0ea5e9;color:#fff;border:0;border-radius:8px;font-weight:700;cursor:pointer}
27
+ .ok{color:#10b981}.err{color:#ef4444}
28
+ </style>
29
+ </head>
30
+ <body>
31
+ <div class="wrap">
32
+ <p style="margin:0 0 6px"><a href="/">← Web Agent Bridge</a> · <a href="/trust-graph-api">English</a></p>
33
+ <h1>Trust Graph API</h1>
34
+ <p class="sub">وصول برمجي لرسم الثقة العام لـ WAB: ملفات وكلاء موقَّعة، درجات ثقة زمنية، سجلّات رفض.</p>
35
+
36
+ <div class="tiers">
37
+ <div class="tier"><h3>Free</h3><div class="p">0 €</div>
38
+ <ul><li>1,000 طلب / شهر · 30 طلب/د</li><li>قراءة درجات الثقة</li><li>وصول مجهول مسموح به (بدون مفتاح) بـ 10 طلب/د</li></ul></div>
39
+ <div class="tier"><h3>Pro</h3><div class="p">10 € / شهر</div>
40
+ <ul><li>100 000 طلب / شهر · 120 طلب/د</li><li>تاريخ 30 يومًا</li><li>قراءة السمعة</li><li>دعم بالبريد</li></ul></div>
41
+ <div class="tier"><h3>Enterprise</h3><div class="p">مبيعات</div>
42
+ <ul><li>5+ مليون طلب / شهر</li><li>تاريخ كامل · SLA · سجلّ تدقيق</li><li>نطاق Governance write</li><li>دعم متخصّص</li></ul></div>
43
+ </div>
44
+
45
+ <h2>احصل على مفتاح مجاني (بنقرة واحدة)</h2>
46
+ <form id="issueForm">
47
+ <label>بريدك الإلكتروني</label><input name="email" type="email" required>
48
+ <label>اسمك (اختياري)</label><input name="name" maxlength="80">
49
+ <button>إصدار مفتاح مجاني</button>
50
+ <p id="issueOut"></p>
51
+ </form>
52
+
53
+ <h2>نقاط النهاية</h2>
54
+ <table>
55
+ <thead><tr><th>الطريقة</th><th>المسار</th><th>النطاق</th><th>الوصف</th></tr></thead>
56
+ <tbody>
57
+ <tr><td>GET</td><td><code>/api/reputation/score/:domain</code></td><td>trust:read</td><td>درجة ثقة زمنية</td></tr>
58
+ <tr><td>GET</td><td><code>/api/ring4/status/:domain</code></td><td>trust:read</td><td>ملف Ring 4 موقَّع</td></tr>
59
+ <tr><td>GET</td><td><code>/api/truth/temporal/:domain</code></td><td>trust:history</td><td>ثقة زمنية سلسلية (Pro+)</td></tr>
60
+ <tr><td>POST</td><td><code>/api/keys/issue</code></td><td>—</td><td>إصدار ذاتي لمفتاح Free</td></tr>
61
+ <tr><td>GET</td><td><code>/api/keys/me</code></td><td>X-API-Key</td><td>الحصة والاستخدام</td></tr>
62
+ <tr><td>POST</td><td><code>/api/keys/revoke</code></td><td>X-API-Key</td><td>إلغاء من المالك</td></tr>
63
+ </tbody>
64
+ </table>
65
+
66
+ <h2>بدء سريع</h2>
67
+ <pre><code>curl -H "X-API-Key: $WAB_KEY" \
68
+ https://www.webagentbridge.com/api/reputation/score/example.com
69
+
70
+ # الاستجابة تتضمّن: X-WAB-Tier: pro
71
+ # X-WAB-Quota-Used: 1234
72
+ # X-WAB-Quota-Limit: 100000</code></pre>
73
+
74
+ <p style="margin-top:30px;color:var(--mute)">الوصول المجهول يعمل بدون مفتاح (10 طلب/د، حسب IP). Pro و Enterprise يفتحان العمق التاريخي ونطاق <code>governance:write</code>.</p>
75
+ </div>
76
+ <script>
77
+ document.getElementById('issueForm').addEventListener('submit', async (e) => {
78
+ e.preventDefault();
79
+ const fd = new FormData(e.target);
80
+ const body = Object.fromEntries(fd.entries());
81
+ const r = await fetch('/api/keys/issue', { method:'POST', headers:{'Content-Type':'application/json'}, body: JSON.stringify(body) });
82
+ const j = await r.json().catch(()=>({}));
83
+ const out = document.getElementById('issueOut');
84
+ if (r.ok && j.ok) {
85
+ out.innerHTML = '<span class="ok">✓ تمّ إصدار المفتاح. انسخه الآن — لن يُعرض مرّة أخرى.</span><pre><code>' + j.api_key + '</code></pre>';
86
+ } else {
87
+ out.innerHTML = '<span class="err">✗ ' + (j.error || ('HTTP ' + r.status)) + '</span>';
88
+ }
89
+ });
90
+ </script>
91
+ </body>
92
+ </html>