@jackwener/browsermcp 0.0.0-stage → 0.0.32

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 (325) hide show
  1. package/CHANGELOG.md +317 -0
  2. package/LICENSE +202 -0
  3. package/README.md +177 -2
  4. package/adapter-sdk/index.d.ts +94 -0
  5. package/adapter-sdk/index.js +30 -0
  6. package/adapters/bilibili/_shared.js +254 -0
  7. package/adapters/bilibili/comment.js +55 -0
  8. package/adapters/bilibili/comments.js +47 -0
  9. package/adapters/bilibili/download.js +73 -0
  10. package/adapters/bilibili/dynamic.js +29 -0
  11. package/adapters/bilibili/favorite.js +39 -0
  12. package/adapters/bilibili/feed-detail.js +66 -0
  13. package/adapters/bilibili/feed.js +95 -0
  14. package/adapters/bilibili/follow.js +36 -0
  15. package/adapters/bilibili/following.js +29 -0
  16. package/adapters/bilibili/history.js +27 -0
  17. package/adapters/bilibili/hot.js +25 -0
  18. package/adapters/bilibili/me.js +24 -0
  19. package/adapters/bilibili/popular.js +26 -0
  20. package/adapters/bilibili/ranking.js +24 -0
  21. package/adapters/bilibili/search.js +37 -0
  22. package/adapters/bilibili/site.json +3 -0
  23. package/adapters/bilibili/subtitle.js +49 -0
  24. package/adapters/bilibili/summary.js +59 -0
  25. package/adapters/bilibili/unfollow.js +35 -0
  26. package/adapters/bilibili/user-videos.js +32 -0
  27. package/adapters/bilibili/video.js +70 -0
  28. package/adapters/discord/_shared.js +112 -0
  29. package/adapters/discord/channels.js +22 -0
  30. package/adapters/discord/delete.js +22 -0
  31. package/adapters/discord/goto.js +23 -0
  32. package/adapters/discord/members.js +28 -0
  33. package/adapters/discord/read.js +24 -0
  34. package/adapters/discord/search.js +28 -0
  35. package/adapters/discord/send.js +22 -0
  36. package/adapters/discord/servers.js +14 -0
  37. package/adapters/discord/site.json +1 -0
  38. package/adapters/discord/status.js +13 -0
  39. package/adapters/discord/thread-read.js +25 -0
  40. package/adapters/discord/threads.js +42 -0
  41. package/adapters/facebook/_friending.js +64 -0
  42. package/adapters/facebook/_graphql.js +51 -0
  43. package/adapters/facebook/_marketplace.js +31 -0
  44. package/adapters/facebook/_shared.js +148 -0
  45. package/adapters/facebook/add-friend.js +14 -0
  46. package/adapters/facebook/cancel-friend-request.js +14 -0
  47. package/adapters/facebook/events.js +77 -0
  48. package/adapters/facebook/feed.js +146 -0
  49. package/adapters/facebook/friends.js +72 -0
  50. package/adapters/facebook/groups.js +69 -0
  51. package/adapters/facebook/join-group.js +68 -0
  52. package/adapters/facebook/marketplace-inbox.js +71 -0
  53. package/adapters/facebook/marketplace-listings.js +68 -0
  54. package/adapters/facebook/memories.js +38 -0
  55. package/adapters/facebook/notifications.js +82 -0
  56. package/adapters/facebook/posts.js +19 -0
  57. package/adapters/facebook/profile.js +66 -0
  58. package/adapters/facebook/search.js +20 -0
  59. package/adapters/facebook/site.json +1 -0
  60. package/adapters/gmail/_query.js +19 -0
  61. package/adapters/gmail/_shared.js +241 -0
  62. package/adapters/gmail/attachments.js +17 -0
  63. package/adapters/gmail/create-draft.js +13 -0
  64. package/adapters/gmail/delete.js +30 -0
  65. package/adapters/gmail/drafts.js +2 -0
  66. package/adapters/gmail/forward.js +30 -0
  67. package/adapters/gmail/important.js +2 -0
  68. package/adapters/gmail/inbox.js +2 -0
  69. package/adapters/gmail/labels.js +10 -0
  70. package/adapters/gmail/modify.js +44 -0
  71. package/adapters/gmail/reply.js +28 -0
  72. package/adapters/gmail/search.js +21 -0
  73. package/adapters/gmail/send.js +84 -0
  74. package/adapters/gmail/sent.js +2 -0
  75. package/adapters/gmail/site.json +1 -0
  76. package/adapters/gmail/snoozed.js +2 -0
  77. package/adapters/gmail/spam.js +2 -0
  78. package/adapters/gmail/starred.js +2 -0
  79. package/adapters/gmail/thread.js +16 -0
  80. package/adapters/gmail/trash.js +2 -0
  81. package/adapters/gmail/unread.js +2 -0
  82. package/adapters/linkedin/_profile-card.js +42 -0
  83. package/adapters/linkedin/_profile-sections.js +76 -0
  84. package/adapters/linkedin/_profile.js +112 -0
  85. package/adapters/linkedin/_shared.js +50 -0
  86. package/adapters/linkedin/company.js +56 -0
  87. package/adapters/linkedin/connect.js +53 -0
  88. package/adapters/linkedin/connections.js +45 -0
  89. package/adapters/linkedin/inbox.js +102 -0
  90. package/adapters/linkedin/job-detail.js +49 -0
  91. package/adapters/linkedin/jobs-preferences.js +33 -0
  92. package/adapters/linkedin/jobs.js +98 -0
  93. package/adapters/linkedin/people-search.js +52 -0
  94. package/adapters/linkedin/post-analytics.js +38 -0
  95. package/adapters/linkedin/posts.js +21 -0
  96. package/adapters/linkedin/profile-analytics.js +43 -0
  97. package/adapters/linkedin/profile-experience.js +18 -0
  98. package/adapters/linkedin/profile-projects.js +18 -0
  99. package/adapters/linkedin/profile-read.js +32 -0
  100. package/adapters/linkedin/salesnav-inbox.js +52 -0
  101. package/adapters/linkedin/salesnav-message.js +126 -0
  102. package/adapters/linkedin/salesnav-search.js +56 -0
  103. package/adapters/linkedin/salesnav-thread.js +106 -0
  104. package/adapters/linkedin/sent-invitations.js +40 -0
  105. package/adapters/linkedin/services-read.js +81 -0
  106. package/adapters/linkedin/site.json +3 -0
  107. package/adapters/linkedin/timeline.js +45 -0
  108. package/adapters/reddit/_shared.js +115 -0
  109. package/adapters/reddit/comment.js +26 -0
  110. package/adapters/reddit/frontpage.js +22 -0
  111. package/adapters/reddit/home.js +25 -0
  112. package/adapters/reddit/hot.js +25 -0
  113. package/adapters/reddit/popular.js +22 -0
  114. package/adapters/reddit/read.js +156 -0
  115. package/adapters/reddit/reply.js +26 -0
  116. package/adapters/reddit/save.js +21 -0
  117. package/adapters/reddit/saved.js +23 -0
  118. package/adapters/reddit/search.js +31 -0
  119. package/adapters/reddit/site.json +3 -0
  120. package/adapters/reddit/subreddit-info.js +39 -0
  121. package/adapters/reddit/subreddit.js +27 -0
  122. package/adapters/reddit/subscribe.js +20 -0
  123. package/adapters/reddit/subscribed.js +43 -0
  124. package/adapters/reddit/upvote.js +23 -0
  125. package/adapters/reddit/upvoted.js +23 -0
  126. package/adapters/reddit/user-comments.js +25 -0
  127. package/adapters/reddit/user-posts.js +25 -0
  128. package/adapters/reddit/user.js +36 -0
  129. package/adapters/reddit/whoami.js +29 -0
  130. package/adapters/twitter/_shared.js +345 -0
  131. package/adapters/twitter/accept.js +16 -0
  132. package/adapters/twitter/article.js +104 -0
  133. package/adapters/twitter/block.js +16 -0
  134. package/adapters/twitter/bookmark-folder.js +39 -0
  135. package/adapters/twitter/bookmark-folders.js +46 -0
  136. package/adapters/twitter/bookmark.js +14 -0
  137. package/adapters/twitter/bookmarks.js +33 -0
  138. package/adapters/twitter/collection.js +135 -0
  139. package/adapters/twitter/delete.js +14 -0
  140. package/adapters/twitter/device-follow.js +60 -0
  141. package/adapters/twitter/download.js +87 -0
  142. package/adapters/twitter/follow-batch.js +28 -0
  143. package/adapters/twitter/follow.js +16 -0
  144. package/adapters/twitter/followers.js +60 -0
  145. package/adapters/twitter/following.js +65 -0
  146. package/adapters/twitter/hide-reply.js +19 -0
  147. package/adapters/twitter/like.js +14 -0
  148. package/adapters/twitter/likes.js +41 -0
  149. package/adapters/twitter/list-add-batch.js +30 -0
  150. package/adapters/twitter/list-add.js +53 -0
  151. package/adapters/twitter/list-create.js +45 -0
  152. package/adapters/twitter/list-delete.js +15 -0
  153. package/adapters/twitter/list-remove-batch.js +30 -0
  154. package/adapters/twitter/list-remove.js +28 -0
  155. package/adapters/twitter/list-tweets.js +38 -0
  156. package/adapters/twitter/lists.js +18 -0
  157. package/adapters/twitter/mute-word.js +15 -0
  158. package/adapters/twitter/notifications.js +90 -0
  159. package/adapters/twitter/post.js +18 -0
  160. package/adapters/twitter/profile.js +43 -0
  161. package/adapters/twitter/quote.js +23 -0
  162. package/adapters/twitter/reply-dm.js +49 -0
  163. package/adapters/twitter/reply.js +23 -0
  164. package/adapters/twitter/retweet.js +16 -0
  165. package/adapters/twitter/search.js +150 -0
  166. package/adapters/twitter/site.json +3 -0
  167. package/adapters/twitter/thread.js +56 -0
  168. package/adapters/twitter/timeline.js +62 -0
  169. package/adapters/twitter/trending.js +32 -0
  170. package/adapters/twitter/tweets.js +46 -0
  171. package/adapters/twitter/unblock.js +16 -0
  172. package/adapters/twitter/unbookmark.js +14 -0
  173. package/adapters/twitter/unfollow.js +16 -0
  174. package/adapters/twitter/unlike.js +14 -0
  175. package/adapters/twitter/unretweet.js +15 -0
  176. package/cordis.patch.yml +15 -0
  177. package/dist/docs/api-reference.md +288 -0
  178. package/dist/docs/api-use.md +72 -0
  179. package/dist/docs/capabilities/cdp.md +7 -0
  180. package/dist/docs/capabilities/chrome.md +60 -0
  181. package/dist/docs/capabilities/visibility.md +2 -0
  182. package/dist/docs/capabilities/webmcp.md +2 -0
  183. package/dist/docs/define-tools.md +25 -0
  184. package/dist/docs/errors.md +28 -0
  185. package/dist/docs/instructions.md +14 -0
  186. package/dist/docs/js-tool.md +34 -0
  187. package/dist/docs/recon.md +5 -0
  188. package/dist/docs/repl-session.md +23 -0
  189. package/dist/docs/safety.md +8 -0
  190. package/dist/docs/sites.md +22 -0
  191. package/dist/docs/tab-lifecycle.md +15 -0
  192. package/dist/docs/troubleshooting.md +7 -0
  193. package/dist/src/api/action-input.js +165 -0
  194. package/dist/src/api/action-input.js.map +1 -0
  195. package/dist/src/api/agent.js +11 -0
  196. package/dist/src/api/agent.js.map +1 -0
  197. package/dist/src/api/api.js +69 -0
  198. package/dist/src/api/api.js.map +1 -0
  199. package/dist/src/api/browser.js +135 -0
  200. package/dist/src/api/browser.js.map +1 -0
  201. package/dist/src/api/context.js +2 -0
  202. package/dist/src/api/context.js.map +1 -0
  203. package/dist/src/api/diff.js +65 -0
  204. package/dist/src/api/diff.js.map +1 -0
  205. package/dist/src/api/errors.js +24 -0
  206. package/dist/src/api/errors.js.map +1 -0
  207. package/dist/src/api/network.js +33 -0
  208. package/dist/src/api/network.js.map +1 -0
  209. package/dist/src/api/observation.js +95 -0
  210. package/dist/src/api/observation.js.map +1 -0
  211. package/dist/src/api/streams.js +33 -0
  212. package/dist/src/api/streams.js.map +1 -0
  213. package/dist/src/api/tab.js +416 -0
  214. package/dist/src/api/tab.js.map +1 -0
  215. package/dist/src/backends/browser-helpers.js +76 -0
  216. package/dist/src/backends/browser-helpers.js.map +1 -0
  217. package/dist/src/backends/extension-page.js +305 -0
  218. package/dist/src/backends/extension-page.js.map +1 -0
  219. package/dist/src/backends/page-types.js +2 -0
  220. package/dist/src/backends/page-types.js.map +1 -0
  221. package/dist/src/docs/manifest.js +92 -0
  222. package/dist/src/docs/manifest.js.map +1 -0
  223. package/dist/src/docs/surface.js +95 -0
  224. package/dist/src/docs/surface.js.map +1 -0
  225. package/dist/src/host/bridge.js +126 -0
  226. package/dist/src/host/bridge.js.map +1 -0
  227. package/dist/src/host/doctor.js +92 -0
  228. package/dist/src/host/doctor.js.map +1 -0
  229. package/dist/src/host/extension.js +4 -0
  230. package/dist/src/host/extension.js.map +1 -0
  231. package/dist/src/host/host.js +77 -0
  232. package/dist/src/host/host.js.map +1 -0
  233. package/dist/src/host/ipc.js +80 -0
  234. package/dist/src/host/ipc.js.map +1 -0
  235. package/dist/src/host/jsonc-config.js +33 -0
  236. package/dist/src/host/jsonc-config.js.map +1 -0
  237. package/dist/src/host/launch.js +103 -0
  238. package/dist/src/host/launch.js.map +1 -0
  239. package/dist/src/host/native-messaging.js +81 -0
  240. package/dist/src/host/native-messaging.js.map +1 -0
  241. package/dist/src/host/opencode.js +14 -0
  242. package/dist/src/host/opencode.js.map +1 -0
  243. package/dist/src/host/pi.js +11 -0
  244. package/dist/src/host/pi.js.map +1 -0
  245. package/dist/src/host/registration.js +121 -0
  246. package/dist/src/host/registration.js.map +1 -0
  247. package/dist/src/host/setup.js +204 -0
  248. package/dist/src/host/setup.js.map +1 -0
  249. package/dist/src/host/socket.js +99 -0
  250. package/dist/src/host/socket.js.map +1 -0
  251. package/dist/src/host/state.js +124 -0
  252. package/dist/src/host/state.js.map +1 -0
  253. package/dist/src/launcher/stdio.js +153 -0
  254. package/dist/src/launcher/stdio.js.map +1 -0
  255. package/dist/src/lib/sources.js +27 -0
  256. package/dist/src/lib/sources.js.map +1 -0
  257. package/dist/src/main.js +131 -0
  258. package/dist/src/main.js.map +1 -0
  259. package/dist/src/mcp/catalog.js +28 -0
  260. package/dist/src/mcp/catalog.js.map +1 -0
  261. package/dist/src/mcp/js-evaluator.mjs +65 -0
  262. package/dist/src/mcp/js-session.js +292 -0
  263. package/dist/src/mcp/js-session.js.map +1 -0
  264. package/dist/src/mcp/js-worker.mjs +135 -0
  265. package/dist/src/mcp/server.js +221 -0
  266. package/dist/src/mcp/server.js.map +1 -0
  267. package/dist/src/protocol.js +18 -0
  268. package/dist/src/protocol.js.map +1 -0
  269. package/dist/src/recon/analyzer.js +366 -0
  270. package/dist/src/recon/analyzer.js.map +1 -0
  271. package/dist/src/recon/discover.js +130 -0
  272. package/dist/src/recon/discover.js.map +1 -0
  273. package/dist/src/runtime/runtime.js +221 -0
  274. package/dist/src/runtime/runtime.js.map +1 -0
  275. package/dist/src/shared/aria-tree.js +16 -0
  276. package/dist/src/shared/aria-tree.js.map +1 -0
  277. package/dist/src/shared/element-ref.js +7 -0
  278. package/dist/src/shared/element-ref.js.map +1 -0
  279. package/dist/src/shared/engine.js +426 -0
  280. package/dist/src/shared/engine.js.map +1 -0
  281. package/dist/src/shared/injected-source.js +5 -0
  282. package/dist/src/shared/injected-source.js.map +1 -0
  283. package/dist/src/shared/page-contract.js +8 -0
  284. package/dist/src/shared/page-contract.js.map +1 -0
  285. package/dist/src/sites/define.js +110 -0
  286. package/dist/src/sites/define.js.map +1 -0
  287. package/dist/src/sites/drafts.js +134 -0
  288. package/dist/src/sites/drafts.js.map +1 -0
  289. package/dist/src/sites/executor.js +75 -0
  290. package/dist/src/sites/executor.js.map +1 -0
  291. package/dist/src/sites/loader.js +234 -0
  292. package/dist/src/sites/loader.js.map +1 -0
  293. package/dist/src/sites/schema.js +169 -0
  294. package/dist/src/sites/schema.js.map +1 -0
  295. package/docs/api-reference.md +288 -0
  296. package/docs/api-use.md +72 -0
  297. package/docs/capabilities/cdp.md +7 -0
  298. package/docs/capabilities/chrome.md +60 -0
  299. package/docs/capabilities/visibility.md +2 -0
  300. package/docs/capabilities/webmcp.md +2 -0
  301. package/docs/define-tools.md +25 -0
  302. package/docs/errors.md +28 -0
  303. package/docs/guide.zh-CN.md +49 -0
  304. package/docs/instructions.md +14 -0
  305. package/docs/js-tool.md +34 -0
  306. package/docs/observation-design.md +43 -0
  307. package/docs/recon.md +5 -0
  308. package/docs/releasing.md +26 -0
  309. package/docs/repl-session.md +23 -0
  310. package/docs/safety.md +8 -0
  311. package/docs/setup.md +241 -0
  312. package/docs/sites.md +22 -0
  313. package/docs/tab-lifecycle.md +15 -0
  314. package/docs/troubleshooting.md +7 -0
  315. package/extension/dist/background.js +5263 -0
  316. package/extension/dist/chrome-reference.LICENSE.txt +21 -0
  317. package/extension/dist/content/cursor.js +156 -0
  318. package/extension/dist/cursor.svg +4 -0
  319. package/extension/dist/icons/icon-128.png +0 -0
  320. package/extension/dist/icons/icon-16.png +0 -0
  321. package/extension/dist/icons/icon-32.png +0 -0
  322. package/extension/dist/icons/icon-48.png +0 -0
  323. package/extension/dist/manifest.json +48 -0
  324. package/extension/dist/page.js +801 -0
  325. package/package.json +76 -4
package/CHANGELOG.md ADDED
@@ -0,0 +1,317 @@
1
+ # Changelog
2
+
3
+ ## 0.0.32 — 2026-10-20
4
+
5
+ - Rename the project, npm package, and CLI to browsermcp; rename the Chrome extension to BrowserMCP Connector (0.0.24).
6
+ - Migrate selected MCP client registrations while retaining the extension ID, native host identity, local data, and legacy adapter SDK imports.
7
+ - Move the repository to jackwener/browsermcp and update setup, documentation, and release artifacts.
8
+
9
+ Upgrade: npm install -g @jackwener/browsermcp, then browsermcp setup. Reload the extension and reconnect your MCP client.
10
+
11
+ ## 0.0.31 — 2026-10-20
12
+
13
+ - Probe browser health before creating MCP sessions. Automatically choose a responsive host when multiple instances share one browserId; preserve already connected sessions.
14
+ - Diagnose each host independently and retire hosts whose extension stops responding. Bound shutdown and handle native pipe errors.
15
+ - Move extension ping outside page/session initialization. Ship extension 0.0.23.
16
+
17
+ Upgrade note: reload the extension after upgrading npm to restart the native host with the new IPC handshake, then restart the MCP client.
18
+
19
+ - Page observations across the main document and child frames under one output budget, with explicit cursors over an immutable capture. Remove recursive branch folding that could hide the same branch on every expansion.
20
+ - Scope observations directly with existing locators or refs, and remove inert ARIA wrappers while preserving names, states, refs and explanatory text.
21
+ - Describe observation continuation in the MCP tool itself; distinguish output pagination, frame capture coverage, long-text fragments and abbreviated metadata.
22
+
23
+ ## 0.0.30 — 2026-10-14
24
+
25
+ - Replace the local HTTP bridge with MCP over Unix domain sockets / Windows named pipes; remove port, token, and remote MCP configuration.
26
+ - Reuse initialized host connections, keep each client session isolated, and reconnect to the same browser profile. Report session loss explicitly and never replay interrupted operations.
27
+ - Distinguish browser selection from connection failures and reclaim stale IPC endpoints after host crashes.
28
+ - Preserve explicitly organized tab groups through session cleanup.
29
+ - Remove unused dependencies and frame-session code; consolidate extension packaging.
30
+
31
+ Upgrade note: this release requires extension 0.0.22 alongside npm package 0.0.30. Update both, then reload the extension and restart your MCP client to switch from the old HTTP launcher to local IPC. Existing MCP stdio command configuration stays the same. Windows named pipes have not been verified on a Windows machine.
32
+
33
+ ## 0.0.29 — 2026-10-09
34
+
35
+ - chore: prepare extension 0.0.21 release
36
+ - test: trim suite to core integration coverage
37
+ - fix: preserve input semantics and verify settled control values
38
+
39
+ ## 0.0.28 — 2026-10-08
40
+
41
+ - fix: keep action targets out of page DOM and disable cursor by default
42
+
43
+ ## 0.0.27 — 2026-09-30
44
+
45
+ - feat: add Gmail API write adapters
46
+
47
+ ## 0.0.26 — 2026-09-30
48
+
49
+ - Unify element refs across ARIA, DOM, find and actions, with document/frame-scoped identity and actionable stale-ref errors.
50
+ - Resolve ARIA refs through the producing engine; prevent unregistered refs and large-capture eviction, and correctly handle quoted snapshot names.
51
+ - Clarify persistent REPL output directly in MCP guidance and diagnostics; preserve standard JavaScript semantics and bindings.
52
+ - Keep native host and MCP launchers working across Node upgrades, with installation and startup diagnostics.
53
+ - Read X search from observed UI evidence and improve Windows browser-connection recovery guidance.
54
+ - Ship Chrome extension 0.0.19; update the extension to receive the browser-side ref fixes.
55
+
56
+ ## 0.0.25 — 2026-09-28
57
+
58
+ - Fix JavaScript execution on Node 26 while retaining Node 22+ support, using one V8 Inspector REPL implementation across Node 22, 24 and 26.
59
+ - Preserve bindings after ordinary errors, correctly report falsy exceptions, and support redeclaring top-level bindings across calls.
60
+ - Drain dispatched API work within the call timeout; handle unobserved RPC failures and prevent late callbacks from affecting later calls.
61
+ - Validate persistent JavaScript execution through the native host and MCP, with Node 22/24/26 release checks.
62
+ - Chrome extension remains at 0.0.18; this release changes the local host only.
63
+
64
+ ## 0.0.24 — 2026-09-28
65
+
66
+ - Expose native Chrome APIs with on-demand signatures, direct CDP commands, and bounded event streams in the REPL.
67
+ - Support writable Main World evaluation with frame targeting and explicit uncertain outcomes without replaying dispatched commands.
68
+ - Add page console and extension log capture, and improve native tab/window ownership and session cleanup.
69
+ - Add frame-aware ARIA/DOM observations and exact DOM reads across nested and cross-origin frames.
70
+ - Ship Chrome extension 0.0.18 with updated runtime documentation and Chrome API reference attribution.
71
+
72
+ ## 0.0.23 — 2026-09-28
73
+
74
+ - Make js the primary browser workspace with seven default MCP tools; browser actions and adapter authoring use the shared object API.
75
+ - Use a persistent Node REPL for variables, functions, classes and top-level await, with interruptible worker execution and explicit timeout/reset/cancellation outcomes.
76
+ - Return compact browser handles, bounded output and MCP images, and expose focused API documentation directly through docs_get.
77
+ - Keep the adapter draft → trial → activation lifecycle and preserve action validation at the object API boundary.
78
+ - Fix live Chrome tab identity and adapter capture during initial navigation; report host/extension protocol drift as a warning.
79
+ - Bundle Chrome extension 0.0.17.
80
+
81
+ Migration: typed browser and adapter-authoring tools have been removed. Use js with browser, tab, tools and recon; use docs_get without arguments for the quickstart. Await every API call. Reset or timeout clears JavaScript bindings but does not undo already dispatched browser operations.
82
+
83
+ ## 0.0.22 — 2026-09-25
84
+
85
+ - feat: include LinkedIn connection count in profile analytics
86
+ - feat: complete API-backed social adapters
87
+ - feat: add more LinkedIn API adapters and recover stale adapter tabs
88
+ - feat: expand API-backed Facebook and LinkedIn adapters
89
+ - feat: add API-backed Gmail Facebook LinkedIn and Discord adapters
90
+ - test: keep only critical regression checks
91
+
92
+ ## 0.0.21 — 2026-09-25
93
+
94
+ - test: use current protocol in setup smoke
95
+ - test: trim redundant regression coverage
96
+ - chore: bump Chrome extension to 0.0.16
97
+ - Improve browser action continuation and protocol clarity
98
+ - Improve popup and download action evidence
99
+ - Improve agent tab claiming and batch cleanup
100
+
101
+ ## 0.0.20 — 2026-09-25
102
+
103
+ - release: add manual extension asset and bump extension to 0.0.15
104
+ - fix: reuse initial tabs in new browser windows
105
+
106
+ ## 0.0.19 — 2026-09-24
107
+
108
+ - chore: bump Chrome extension to 0.0.14
109
+ - feat: improve MCP browser evidence and agent-facing contracts
110
+ - test: focus suite on core agent and browser flows
111
+ - ci: automate npm and GitHub releases
112
+ - feat: make adapter authoring evidence-driven and runtime-aware
113
+
114
+ ## 0.0.18 — 2026-09-24
115
+
116
+ - Make site capabilities browsable without a search term and return actionable metadata after defining an adapter. Validate replacements before installing them, refresh discovery and typed tool schemas when definitions change, and reject unknown or malformed command arguments.
117
+ - Load the JavaScript API reference on demand instead of attaching it to the first `js` result. Keep the result envelope first, isolate concurrent call output, and update MCP guidance and connection documentation.
118
+ - Serialize adapter workflows sharing a site tab. Stop replaying tool calls after a host disconnect; report uncertain outcomes from interrupted or timed-out operations so agents can inspect state before retrying.
119
+
120
+ ## 0.0.17 — 2026-09-24
121
+
122
+ - Export the adapter SDK directly from the main package as `opencli-mcp/adapter-sdk`. Built-in and user-defined adapters now use the same package path without a separate bundled SDK dependency.
123
+
124
+ ## 0.0.16 — 2026-09-24
125
+
126
+ - Keep the stdio MCP connection available when Chrome is not running yet. Core tools, docs, and prompts remain discoverable; tool calls report `host_unavailable` until the Chrome host connects. Notify MCP clients when the host appears or changes so they can refresh site tools.
127
+ - Include the Apache-2.0 license in the bundled adapter SDK and align its package metadata with the main package.
128
+
129
+ ## 0.0.15 — 2026-09-24
130
+
131
+ - Add OpenCode to the client choices in `setup`, preserving existing JSONC config and MCP entries.
132
+ - Add Pi to the client choices in `setup` through `pi-mcp-adapter`, preserving other Pi MCP servers.
133
+
134
+ ## 0.0.14 — 2026-09-24
135
+
136
+ - Let DeepSeek Harness install `opencli-mcp` directly as a bundle. Bundle the local adapter SDK in the npm tarball so pnpm can install the main package without resolving a source-tree `file:` dependency.
137
+ - Retire the separate `dsh-plugin-opencli-mcp` package and document one-package setup.
138
+
139
+ ## 0.0.13 — 2026-09-24
140
+
141
+ - Center the product on one Chrome-backed browser service: remove the embedded stdio runtime, standalone `serve` path, and browser-free adapter mode. The launcher requires a connected Chrome host, and adapters use that same browser connection.
142
+ - Remove trace-based tool compilation and its stored evidence. Adapters are explicit functions that must be verified before use; keep network inspection and endpoint discovery as browser capabilities. Update MCP guidance and remove the obsolete embedded smoke test.
143
+ - Remove unused favicon-badge hooks, protocol-version and context IDs, ignored adapter options, dead CLI flags, and misleading resource-change notifications for tab events. Restore idle cleanup timers after a service-worker restart, and require bearer tokens in headers rather than URL query strings.
144
+ - Redesign the virtual cursor with a compact rounded pointer, blue glow, curved long moves, and reduced-motion support. Interrupted moves now report that they did not arrive.
145
+ - Give each MCP client its own browser and JavaScript session. Local stdio launchers create a session ID automatically and clean up on disconnect; direct HTTP clients provide `X-OpenCLI-Session-ID`.
146
+ - Clean up tabs when opening fails, and keep tab leases if releasing cannot finish. Closing a tab already removed by Chrome is treated as complete.
147
+ - Persist command journal snapshots before executing and before replying, so a retried write cannot silently run twice after a service-worker restart when session storage is available.
148
+ - Make browser tab ownership explicit: operations no longer create a tab or adopt an unknown page implicitly. Add searchable `tab_list` discovery with bounded user-tab results and expose tab origin/state.
149
+ - Separate `tab_release` / `tab.release()` (leave open) from `tab_close` / `tab.close()` (close), for both agent-created and claimed tabs. Session cleanup reports failed tab closures and leaves their leases available for retry.
150
+ - Serialize extension lease persistence to prevent out-of-order state writes. Allow long document reads to continue with `nextStart` and `start`.
151
+
152
+ ## 0.0.12 — 2026-09-23
153
+
154
+ - Add `tab_read` / `tab.read()` for bounded document text, including lazy content, deduplication, and scroll restoration.
155
+ - Collapse large accessibility snapshots into an action map and allow expanding a branch by ref.
156
+ - Detect clicks that never reach the page and support explicit `method:"dom"` for single-click activation; real mouse input remains the default.
157
+
158
+ - Remove the unused OpenCLI CLI dependency tree, legacy page wrappers and CLI argument filtering; use the adapter SDK argument type throughout. Keep only runtime docs in the npm package, clean build output before compilation, and remove historical release artifacts, obsolete design drafts and scripts. Remove unused extension transport operations and error-code compatibility mapping; adapters emit native error codes.
159
+
160
+ - Remove origin and write-approval policies. Site commands and WebMCP calls execute directly without confirmation prompts; remove policy configuration, `session.allowOrigin`, and confirmation arguments.
161
+
162
+ ## 0.0.11 — 2026-09-23
163
+
164
+ - Reject ambiguous browser actions and missing action values before execution. Return full snapshots by default, with diff available explicitly.
165
+ - Include complete argument metadata in site search and validate site arguments before write approval.
166
+ - Update adapter-definition guidance and Chrome Web Store installation documentation.
167
+
168
+ - Let users select which MCP clients `setup` configures. Interactive setup defaults to manual configuration; scripts use `--clients claude,codex`, `manual`, or `none`. Unselected clients are left untouched and cancelling the prompt makes no changes.
169
+
170
+ - Make `setup` the single connection-configuration command: register the browser host and selected MCP client CLIs, guide Chrome Web Store installation only when disconnected, and verify the live connection. Existing MCP client settings are preserved; failed registrations are reported as incomplete.
171
+ - Remove the separate `install` command. Native Messaging registration is internal to `setup`, with no extension ID or unpacked assets required for normal use.
172
+ - Make `doctor` a read-only, human-readable connection check (`--json` for structured output). Diagnose missing or invalid registrations instead of checking local extension build artifacts.
173
+ - Keep unpacked extension loading in the developer guide. Add isolated setup E2E coverage for registration, reruns, repair, Native Messaging, and MCP connectivity.
174
+
175
+ ## 0.0.10 — 2026-09-20
176
+
177
+ - **Fix: `SyntaxError: Illegal return statement` on any fetchJson-based adapter** (e.g. `sites.twitter.bookmarks()`).
178
+ `evaluateWithArgs` built a bare `{ …return… }` block, but the page evaluates the string via CDP `Runtime.evaluate`
179
+ as a script, where a top-level `return` is illegal. It now emits an async IIFE. (Extension unchanged — stays 0.0.9.)
180
+
181
+ ## 0.0.9 — 2026-09-20
182
+
183
+ - **New adapter architecture — path-addressed, self-describing modules over a source loader.** An adapter is now just a
184
+ file `adapters/<site>/<command>.js` that `export default defineAdapter({ description, access, args, run })`; the file
185
+ path is its identity and the module is its definition. There is no manifest and no global registry: a `SourceLoader`
186
+ lists adapters by directory, imports them on demand, and keeps a small mtime-keyed index for search. Sources are an
187
+ ordered list (built-in `adapters/` + the user's `~/.opencli-mcp/adapters/`), a later source overriding an earlier one
188
+ — so built-in adapters and `tools.define` outputs are one mechanism.
189
+ - **The adapter interface is the agent's own object model.** `run(ctx)` receives `{ tab, args, sites, recon }` — the same
190
+ surface an agent drives in the `js` tool. No CDP shadow page, no pipeline DSL, no columns, `access` is the only safety
191
+ field, args are snake_case, and paging is `{ rows, nextCursor }`.
192
+ - **`@opencli-mcp/adapter-sdk`** carries the contract (defineAdapter + errors + the tab interface), so the corpus is
193
+ separable and independently versionable.
194
+ - **Curated built-in adapters, all API-first (never DOM when an API exists):** twitter (44 commands),
195
+ bilibili (20, incl. WBI signing), reddit (20). Writes go through each site's API and the runtime's approval flow.
196
+ - Removed the vendored OpenCLI command corpus and the CLI-projection layer (archived on branch corpus-archive-2026-09-19).
197
+
198
+ ## 0.0.8 — 2026-09-19
199
+
200
+ - **The client channel survives host restarts (fix "Transport closed").** The Chrome-spawned host dies whenever the
201
+ extension's Native port drops (an extension reload/update, a crash, or the service worker being replaced). The stdio
202
+ launcher used to exit on that drop, permanently killing the client's MCP channel (Codex/Claude don't auto-reconnect a
203
+ dead server). The launcher now keeps the channel up and reconnects to the host on demand — re-reading the fresh
204
+ port/token a respawned host writes — and returns a retryable `host_unavailable` while the host is briefly down.
205
+ Combined with the extension's existing auto-reconnect, the channel self-heals after a reload instead of going
206
+ "Transport closed". See docs/design/host-resilience-2026-09-19.md for the architecture review behind this.
207
+
208
+ ## 0.0.7 — 2026-09-19
209
+
210
+ - **Fix a CSP error on strict sites.** The favicon-badge feature rewrote the page favicon to a `data:` SVG, which pages
211
+ with a strict `img-src` CSP (e.g. Hacker News) block — logging a Content-Security-Policy violation from the content
212
+ script on every such page. Removed the favicon badge (it was decorative; agent tabs are marked by the named tab group
213
+ and the cursor overlay). Reload the extension to clear existing errors.
214
+
215
+ ## 0.0.6 — 2026-09-19
216
+
217
+ - **We own the site corpus.** The OpenCLI adapter corpus (1387 adapters + manifest) and its runtime are vendored into
218
+ `vendor/opencli/` and consumed via a local `file:` dependency — git-tracked and editable, no pull from upstream.
219
+ - **One engine, no shadow.** `ExtensionPage` no longer extends OpenCLI's `CDPBasePage`; every adapter now runs on the
220
+ single Playwright injected-script engine (the second locator/AX engine is gone). The corpus-used methods (wait,
221
+ autoScroll, interceptors, fetchJson, snapshot→aria, …) are served on our transport.
222
+ - **Agent-friendly output formats.** One result envelope everywhere — `{ok:true,…}` / `{ok:false,error:{code,message,
223
+ hint?,…}}` with an in-band `ok`; `js` errors now carry the same branchable envelope; `tab_act` returns only what
224
+ changes the next move (full telemetry stays in the trace); every actionable error carries a next-step hint; results
225
+ are compact JSON and no longer double-sent as structuredContent.
226
+ - **Leaner startup.** The always-on instructions bundle is ~21% smaller (mechanics moved to on-demand docs; safety
227
+ de-duplicated; the site catalogue is now a lookup doc) with no capability or safety content lost.
228
+ - **New icon.**
229
+
230
+ ## 0.0.5 — 2026-09-19
231
+
232
+ - **MCP 2026-07-28 (v2 SDK).** Migrated to `@modelcontextprotocol/server`/`core`/`client`/`node` 2.0.0: stateless HTTP
233
+ via `createMcpHandler`, subscription-bus list-changed notifications, output schemas, and tool icons.
234
+ - **Native confirmations via MRTR.** Human-in-the-loop for write site commands now uses `input_required`
235
+ (multi-round-trip): the tool call pauses, the client collects the user's approval, and it resumes — one handler serves
236
+ both protocol eras. Replaces the elicitation path that threw under 2026-07-28.
237
+ - **Progress & cancellation** are forwarded again through the stdio launcher for long browser ops (and restored for
238
+ site commands).
239
+ - **Signer/replay hook for signed endpoints.** `tab.cookie(name)` reads a per-request token at replay; `tools_compile`
240
+ re-reads csrf/xsrf headers from the cookie automatically and names computed signatures (wbi, x-s) in a warning instead
241
+ of freezing dead values.
242
+ - **One error vocabulary.** Corpus/adapter error codes are normalized to the object model's lowercase families, so a
243
+ model branches on a single vocabulary.
244
+ - **Leaner by design.** Removed dead/over-built machinery found in a first-principles audit: the unused docs-gating
245
+ subsystem, a recon secret scanner, the single-browser "fleet" API, dead tab-mark methods, an unused hooks system, and
246
+ stealth injection on every navigation (a no-op driving the user's own Chrome). Recon no longer runs as a hidden side
247
+ effect of reading network requests; docs are memoized; the cursor overlay never blocks input; the write policy is
248
+ in-memory only.
249
+
250
+ ## 0.0.4 — 2026-09-18
251
+
252
+ - **API-first freezing.** Every session tab is captured from attach; `tools_compile` freezes the JSON request that
253
+ actually carried the data (method, contract headers and body, inputs parameterized; per-request tokens and credentials
254
+ are named, not frozen) instead of scraping the DOM, and falls back to UI steps with an explanation. `recon.discover`
255
+ candidates are returned by `tab.network.read()` by default. Captured evidence lives in its own bounded store, never in
256
+ the step trace.
257
+ - **Stable observe refs.** `eN` refs are pinned to the element and survive a node inserted above them, so a held ref does
258
+ not break and the diff stays clean.
259
+ - **One transport.** Local and remote clients use the same loopback HTTP endpoint with a bearer token; default port 19991.
260
+ - **One-command, client-agnostic setup.** `opencli-mcp setup` writes the host manifest, registers with Claude Code and
261
+ Codex when their CLIs are present, prints the standard config for any other client, and opens `chrome://extensions`.
262
+ - **New extension icon.**
263
+ - **Hardening (architecture review).** Frozen-tool code generation is injection-safe; the network dedup key is stable and
264
+ bounded; the stable-ref map is pruned everywhere; harvesting can never fail a step; the site executor reads the error
265
+ envelope at its real shape; dead fields and stale docs removed.
266
+
267
+ ## 0.0.3 — 2026-09-18
268
+
269
+ - The extension ID is fixed by the project: the public key lives in `extension/manifest.json`, so the ID is
270
+ `bpjiolaihhdecffckoljgckkcbglbpih` on every machine (and will stay so on the Chrome Web Store). The per-machine key
271
+ file, manifest patching and build-time key preservation are gone. Releases ship an extension zip that can be loaded
272
+ from anywhere.
273
+ - `setup` prints the standard MCP configuration for any client instead of registering with one.
274
+ - Default port 19991; local and remote clients use the same loopback HTTP endpoint with a bearer token.
275
+
276
+ ## 0.0.2 — 2026-09-18
277
+
278
+ - `opencli-mcp setup`: the first run in one command — writes the host manifests and the stable extension key, prints
279
+ the MCP configuration any client accepts (stdio command, or the HTTP endpoint and token location), opens
280
+ chrome://extensions with the unpacked-extension path on the clipboard, and waits until the extension connects.
281
+ - One home: the `OPENCLI_MCP_HOME` / `OPENCLI_MCP_TOOLS_DIR` overrides are gone; state is `~/.opencli-mcp`, defined
282
+ tools live in `~/.opencli-mcp/tools`, the extension build keeps the key from the existing dist manifest.
283
+ - Chinese project guide `docs/guide.zh-CN.md` (architecture, install, hosting, usage, lifecycle, freezing flows,
284
+ configuration, troubleshooting, development and release).
285
+ - README: stale `css` target and `session.name()` mentions removed.
286
+
287
+ ## 0.0.1 — 2026-09-18
288
+
289
+ First release. opencli-mcp is an MCP-native browser runtime for your logged-in Chrome: a Chrome-spawned native host
290
+ plus an MV3 extension, driven by agents through one object model.
291
+
292
+ **Browser operation, step by step (Codex-style)**
293
+ - One engine: Playwright's injected script runs in the extension's isolated world; observe refs (`eN`), `find`, `act`,
294
+ site adapters and frozen tools all resolve targets through it.
295
+ - `tab.observe`: accessibility snapshot with `[ref=eN]` refs, semantic diff against the previous observe, viewport
296
+ filter, focused element, credential redaction.
297
+ - `tab.act`: wait + act in one call — strict resolution (several matches only when one is visible), actionability
298
+ states, scroll into view, hit-test, real CDP mouse/keyboard input, navigation wait, settle. `within` scoping,
299
+ frame chains (same-origin, srcdoc and cross-origin OOPIF), native dialogs, console and network capture, downloads,
300
+ file uploads through the file chooser.
301
+ - Tabs are the user's: claim by id/url/title (fail-closed), agent tab groups, cursor overlay and badges, `finalize`
302
+ with `deliverable` / `handoff`, automatic finalize on session end; handoff tabs can be claimed back later.
303
+ - `js` code mode over the full object model (`agent.browsers`, `browser.tabs/user/capabilities`, `tab.*`, `sites`,
304
+ `recon`, `tools`, `session`), plus a small set of typed entry tools. The API reference is generated from the
305
+ TypeScript declarations and shipped in `browser.documentation()`.
306
+
307
+ **Freezing explored flows into tools**
308
+ - `tools.define` takes the function you just ran in `js`; `tools_compile` drafts one from the session trace —
309
+ network-first (`tab.fetchJson`), else `tab.goto/act/expect` with the locator intent you used and the checkpoints
310
+ you asserted; one-time refs and structural CSS are reported in `warnings`.
311
+ - Frozen tools run on the same object model and fail with structured `error.details` (step, label, state, expect).
312
+ - The OpenCLI site corpus (1200+ commands) is available through `sites.<site>.<command>()` and `site_run`.
313
+
314
+ **Hosting**
315
+ - stdio launcher for Claude Code / Cursor / Claude Desktop; loopback Streamable HTTP with a bearer token for cloud
316
+ agents; `install` writes the Native Messaging manifest and a stable extension key; `doctor` checks the chain.
317
+ - One error model everywhere: `code`, `message`, `hint`, structured data (`docs/errors.md`).
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.