@capagents/forgeqe 3.1.1 → 3.1.3

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 (258) hide show
  1. package/HOW_TO_USE.md +5152 -1869
  2. package/README.md +155 -434
  3. package/THIRD_PARTY_NOTICES.md +210 -1
  4. package/dist/docs-site/CREDITS.md +6 -0
  5. package/dist/docs-site/architecture-map/index.html +1 -1
  6. package/dist/docs-site/docs/app-theme.css +126 -13
  7. package/dist/docs-site/docs/architecture/index.html +56 -530
  8. package/dist/docs-site/docs/architecture-reference/index.html +1781 -0
  9. package/dist/docs-site/docs/area-api/index.html +491 -0
  10. package/dist/docs-site/docs/area-automated-tests/index.html +1777 -0
  11. package/dist/docs-site/docs/area-browser/index.html +472 -0
  12. package/dist/docs-site/docs/area-data/index.html +595 -0
  13. package/dist/docs-site/docs/area-desktop/index.html +802 -0
  14. package/dist/docs-site/docs/area-mobile/index.html +683 -0
  15. package/dist/docs-site/docs/area-operations/index.html +1243 -0
  16. package/dist/docs-site/docs/area-pull-requests/index.html +290 -0
  17. package/dist/docs-site/docs/area-quality/index.html +427 -0
  18. package/dist/docs-site/docs/area-release/index.html +435 -0
  19. package/dist/docs-site/docs/area-setup/index.html +1595 -0
  20. package/dist/docs-site/docs/area-systems/index.html +191 -0
  21. package/dist/docs-site/docs/area-test-cases/index.html +927 -0
  22. package/dist/docs-site/docs/containers/index.html +168 -189
  23. package/dist/docs-site/docs/cost-architecture/index.html +110 -113
  24. package/dist/docs-site/docs/custom-agents-first-run/index.html +121 -67
  25. package/dist/docs-site/docs/desktop/index.html +363 -373
  26. package/dist/docs-site/docs/desktop-ci/index.html +39 -36
  27. package/dist/docs-site/docs/docs-tabs.js +56 -0
  28. package/dist/docs-site/docs/evidence/index.html +297 -300
  29. package/dist/docs-site/docs/feature-test-prompts/index.html +79 -73
  30. package/dist/docs-site/docs/get-started/index.html +791 -0
  31. package/dist/docs-site/docs/graphify/index.html +45 -48
  32. package/dist/docs-site/docs/guardrails/index.html +35 -23
  33. package/dist/docs-site/docs/index.html +18 -6729
  34. package/dist/docs-site/docs/mobile/index.html +223 -210
  35. package/dist/docs-site/docs/model-routing/index.html +84 -65
  36. package/dist/docs-site/docs/overview/index.html +192 -0
  37. package/dist/docs-site/docs/product-graph/index.html +60 -62
  38. package/dist/docs-site/docs/product-knowledge/index.html +24 -17
  39. package/dist/docs-site/docs/product-views/index.html +57 -60
  40. package/dist/docs-site/docs/reference/index.html +409 -0
  41. package/dist/docs-site/docs/search.js +1 -1
  42. package/dist/docs-site/docs/using/index.html +798 -0
  43. package/dist/docs-site/docs/web-app/index.html +168 -111
  44. package/dist/docs-site/security/index.html +930 -0
  45. package/dist/docs-site/security/security-theme.css +161 -0
  46. package/dist/docs-site/security/security.js +1465 -0
  47. package/dist/docs-site/vendor/react-18.3.1.production.min.js +31 -0
  48. package/dist/docs-site/vendor/react-dom-18.3.1.production.min.js +267 -0
  49. package/dist/docs-site/vendor/reactflow-11.11.4.umd.js +10 -0
  50. package/dist/forgeqe.js +1903 -1896
  51. package/dist/web/THIRD_PARTY_NOTICES.md +0 -136
  52. package/dist/web/assets/Agent-3pV8Rwap.js +8 -0
  53. package/dist/web/assets/AgentWork-DAnmH0My.js +2 -0
  54. package/dist/web/assets/ApiTests-DW4MRFzG.js +10 -0
  55. package/dist/web/assets/Browse-Bd0ZZfc2.js +1 -0
  56. package/dist/web/assets/Chat-DnBUm_97.js +3 -0
  57. package/dist/web/assets/CommandPalette-B1O9aDTk.js +1 -0
  58. package/dist/web/assets/Compare-1v7_ca7z.js +1 -0
  59. package/dist/web/assets/Cost-CWrc4McH.js +1 -0
  60. package/dist/web/assets/Data-rWSiG4Cq.js +6 -0
  61. package/dist/web/assets/Desktop-3x6EQqos.js +1 -0
  62. package/dist/web/assets/DesktopReview-cSA10Rm3.js +1 -0
  63. package/dist/web/assets/Evidence-CKy3o7cw.js +1 -0
  64. package/dist/web/assets/Explore-CMAxWE_8.js +2 -0
  65. package/dist/web/assets/Features-haQchkhA.js +1 -0
  66. package/dist/web/assets/Flags-BaQjYi_t.js +2 -0
  67. package/dist/web/assets/Flaky-DUuC0qTn.js +1 -0
  68. package/dist/web/assets/Impact-CP0H8ygo.js +3 -0
  69. package/dist/web/assets/Jobs-cYxoYd3i.js +5 -0
  70. package/dist/web/assets/KindPage-DWW8gN5_.js +6 -0
  71. package/dist/web/assets/Migration-Bsm7WU1d.js +2 -0
  72. package/dist/web/assets/PageAgent-c95zT2PJ.js +1 -0
  73. package/dist/web/assets/Product-BQSiR28a.js +7 -0
  74. package/dist/web/assets/Production-CAv0Vtoy.js +1 -0
  75. package/dist/web/assets/Quality-aQPaPYQc.js +1 -0
  76. package/dist/web/assets/Readiness-CkknP87n.js +1 -0
  77. package/dist/web/assets/Record-09IsC9U-.js +1 -0
  78. package/dist/web/assets/Regression-BL4MfN47.js +5 -0
  79. package/dist/web/assets/RelationGraph-Dg4fqt7l.js +1 -0
  80. package/dist/web/assets/Reports-CMV1l-iS.js +2 -0
  81. package/dist/web/assets/Response-DTBFBeKB.js +9 -0
  82. package/dist/web/assets/Responsive-DBRQ9FUO.js +3 -0
  83. package/dist/web/assets/RunDiff-CMDrnsA3.js +1 -0
  84. package/dist/web/assets/Runs-Dkeu6_vZ.js +2 -0
  85. package/dist/web/assets/Settings-KjKm8h-_.js +21 -0
  86. package/dist/web/assets/Steps-HYHK9psI.js +2 -0
  87. package/dist/web/assets/TestCases-Cv6-OSv0.js +1 -0
  88. package/dist/web/assets/TestData-DbEfNlUE.js +2 -0
  89. package/dist/web/assets/TestDebt-DzHQIU4X.js +1 -0
  90. package/dist/web/assets/TestManagement-BgRTGHMT.js +1 -0
  91. package/dist/web/assets/Tosca-DZpHAtnH.js +3 -0
  92. package/dist/web/assets/WhatsNew-jp0c4WSV.js +1 -0
  93. package/dist/web/assets/agents-C0Jg2pN8.js +1 -0
  94. package/dist/web/assets/coverage-BB9BLjGz.js +5 -0
  95. package/dist/web/assets/dataParts-DEPK4eQE.js +3 -0
  96. package/dist/web/assets/diff-CcNwLCX6.js +2 -0
  97. package/dist/web/assets/families-gkpkloLT.js +1 -0
  98. package/dist/web/assets/filters-C7phIFfd.js +1 -0
  99. package/dist/web/assets/fold-i73P-EDV.js +1 -0
  100. package/dist/web/assets/head-BtTqyLlj.js +1 -0
  101. package/dist/web/assets/highlight-DZI39CzZ.js +4 -0
  102. package/dist/web/assets/index-ClFOh63x.css +2 -0
  103. package/dist/web/assets/index-YGWJEkAT.js +64 -0
  104. package/dist/web/assets/input-C2vQ9O3a.js +1 -0
  105. package/dist/web/assets/jsx-runtime-LKYXHABd.js +1 -0
  106. package/dist/web/assets/logos-BmbNTDu2.js +1 -0
  107. package/dist/web/assets/palette-XFlqvgZl.js +1 -0
  108. package/dist/web/assets/paletteCommands-DsbD2ASU.js +1 -0
  109. package/dist/web/assets/parts-DEVx2Sea.js +1 -0
  110. package/dist/web/assets/productParts-Bi-XjszL.js +1 -0
  111. package/dist/web/assets/qualityParts-Dbu01g7G.js +1 -0
  112. package/dist/web/assets/recordTest--Wr40QdN.js +1 -0
  113. package/dist/web/assets/rolldown-runtime-XKyaHtl9.js +1 -0
  114. package/dist/web/assets/route-Dg53WdFu.js +1 -0
  115. package/dist/web/index.html +11 -6
  116. package/docs/ARCHITECTURE.md +50 -563
  117. package/docs/ARCHITECTURE_REFERENCE.md +1484 -0
  118. package/docs/BASAL.md +1 -1
  119. package/docs/CONTAINERS.md +87 -87
  120. package/docs/CUSTOM_AGENTS_FIRST_RUN.md +125 -43
  121. package/docs/DESKTOP-CI.md +18 -3
  122. package/docs/DESKTOP.md +306 -286
  123. package/docs/EVIDENCE.md +1 -1
  124. package/docs/MOBILE.md +107 -75
  125. package/docs/MODEL_ROUTING.md +48 -15
  126. package/docs/PRODUCT_KNOWLEDGE.md +2 -0
  127. package/docs/WEB_APP.md +143 -75
  128. package/docs/feature-test-prompts.md +29 -16
  129. package/docs/user-guide.html +5402 -2269
  130. package/forgeqe.example.yaml +3 -3
  131. package/guardrails/README.md +22 -2
  132. package/knowledge/README.md +15 -2
  133. package/package.json +1 -1
  134. package/prompts/brain.md +1 -0
  135. package/prompts/page-differs.md +1 -1
  136. package/prompts/requests-rule.md +1 -1
  137. package/prompts/test-reviewer.md +1 -1
  138. package/prompts/test-rules.md +3 -4
  139. package/py/forgeqe_engine/recordsession.py +100 -24
  140. package/skills/web-guidance/LICENSE +202 -0
  141. package/skills/web-guidance/SKILL.md +76 -0
  142. package/skills/web-guidance/UPSTREAM +67 -0
  143. package/skills/web-guidance/references/accessibility/accessibility.md +585 -0
  144. package/skills/web-guidance/references/accessibility/accessible-error-announcement.md +302 -0
  145. package/skills/web-guidance/references/accessibility/accessible-generated-content.md +41 -0
  146. package/skills/web-guidance/references/accessibility/respect-os-text-scale.md +127 -0
  147. package/skills/web-guidance/references/css/responsive-design.md +16 -0
  148. package/skills/web-guidance/references/forms/autofill-address-form.md +86 -0
  149. package/skills/web-guidance/references/forms/autofill-payment-form.md +142 -0
  150. package/skills/web-guidance/references/forms/autofill-sign-in-form.md +145 -0
  151. package/skills/web-guidance/references/forms/autofill-sign-up-form.md +155 -0
  152. package/skills/web-guidance/references/forms/forms.md +415 -0
  153. package/skills/web-guidance/references/forms/ime-safe-enter-submit.md +115 -0
  154. package/skills/web-guidance/references/forms/required-field-feedback.md +317 -0
  155. package/skills/web-guidance/references/forms/select-menu-interaction.md +310 -0
  156. package/skills/web-guidance/references/forms/slider.md +184 -0
  157. package/skills/web-guidance/references/forms/sms-otp-form.md +208 -0
  158. package/skills/web-guidance/references/forms/switch.md +60 -0
  159. package/skills/web-guidance/references/forms/validate-input-after-interaction.md +406 -0
  160. package/skills/web-guidance/references/performance/break-up-long-tasks.md +64 -0
  161. package/skills/web-guidance/references/performance/identify-heavy-scripts.md +69 -0
  162. package/skills/web-guidance/references/performance/identify-inp-causes.md +105 -0
  163. package/skills/web-guidance/references/performance/interaction-paint-timing.md +200 -0
  164. package/skills/web-guidance/references/performance/optimize-image-priority.md +73 -0
  165. package/skills/web-guidance/references/performance/performance.md +384 -0
  166. package/skills/web-guidance/references/privacy/privacy.md +247 -0
  167. package/skills/web-guidance/references/security/passkey-authentication.md +218 -0
  168. package/skills/web-guidance/references/security/passkey-management.md +310 -0
  169. package/skills/web-guidance/references/security/passkey-reauthentication.md +142 -0
  170. package/skills/web-guidance/references/security/passkey-registration.md +186 -0
  171. package/skills/web-guidance/references/security/passkeys.md +39 -0
  172. package/skills/web-guidance/references/security/sanitize-untrusted-html.md +105 -0
  173. package/skills/web-guidance/references/security/secure-external-subresources.md +202 -0
  174. package/skills/web-guidance/references/security/security.md +390 -0
  175. package/skills/web-guidance/references/security/trusted-types.md +141 -0
  176. package/skills/web-guidance/references/security/validate-origins.md +197 -0
  177. package/skills/web-guidance/references/security/verify-email-ownership.md +235 -0
  178. package/skills/web-guidance/references/ui-atoms/position-aware-tooltips.md +173 -0
  179. package/skills/web-guidance/references/ui-atoms/responsive-table.md +122 -0
  180. package/skills/web-guidance/references/ui-atoms/viewport-aware-dropdowns.md +178 -0
  181. package/skills/web-guidance/references/ui-behaviors/drag-and-drop.md +108 -0
  182. package/skills/web-guidance/references/ui-behaviors/light-dismiss-a-dialog.md +89 -0
  183. package/skills/web-guidance/references/ui-behaviors/motion.md +97 -0
  184. package/skills/web-guidance/references/ui-behaviors/platform-controls-dismiss-dialog.md +40 -0
  185. package/skills/web-guidance/references/ui-behaviors/prevent-page-scroll-under-modal-dialog.md +59 -0
  186. package/skills/web-guidance/references/ui-behaviors/search-hidden-content.md +141 -0
  187. package/skills/web-guidance/references/ui-behaviors/sortable-table.md +140 -0
  188. package/skills/web-guidance/references/ui-components/accordion.md +343 -0
  189. package/skills/web-guidance/references/ui-components/breadcrumbs.md +168 -0
  190. package/skills/web-guidance/references/ui-components/carousel.md +206 -0
  191. package/skills/web-guidance/references/ui-components/checkbox.md +144 -0
  192. package/skills/web-guidance/references/ui-components/dialog.md +218 -0
  193. package/skills/web-guidance/references/ui-components/hovercard.md +391 -0
  194. package/skills/web-guidance/references/ui-components/menu.md +415 -0
  195. package/skills/web-guidance/references/ui-components/navbar.md +281 -0
  196. package/skills/web-guidance/references/ui-components/navigation-drawer.md +429 -0
  197. package/skills/web-guidance/references/ui-components/persistent-toast-notifications.md +185 -0
  198. package/skills/web-guidance/references/ui-components/progress.md +181 -0
  199. package/skills/web-guidance/references/ui-components/spinner.md +179 -0
  200. package/skills/web-guidance/references/ui-components/tabs.md +371 -0
  201. package/skills/web-guidance/references/ui-components/toolbar.md +277 -0
  202. package/skills/web-guidance/references/user-experience/form-factor-adaptation.md +120 -0
  203. package/skills/web-guidance/references/user-experience/natural-interactions.md +155 -0
  204. package/skills/web-guidance/references/visual-design/color.md +43 -0
  205. package/skills/web-guidance/references/visual-design/dark-mode.md +350 -0
  206. package/dist/web/assets/AgentWork-DwAI0_Of.js +0 -2
  207. package/dist/web/assets/ApiTests-C0vFSHmM.js +0 -10
  208. package/dist/web/assets/Browse-5jfdtRc5.js +0 -2
  209. package/dist/web/assets/Chat-B3uhI94O.js +0 -3
  210. package/dist/web/assets/CommandPalette-D2J4nf5y.js +0 -1
  211. package/dist/web/assets/Compare-CN75w1p9.js +0 -1
  212. package/dist/web/assets/Cost-QoxyjR95.js +0 -1
  213. package/dist/web/assets/Data-BAvkcBVt.js +0 -6
  214. package/dist/web/assets/Desktop-BXdOIalN.js +0 -1
  215. package/dist/web/assets/DesktopReview-Bl2SrPP0.js +0 -1
  216. package/dist/web/assets/Evidence-BJ_I52CD.js +0 -1
  217. package/dist/web/assets/Explore-D9AuyTip.js +0 -2
  218. package/dist/web/assets/Features-CusGMDR9.js +0 -1
  219. package/dist/web/assets/Flags-CycGFuUP.js +0 -2
  220. package/dist/web/assets/Flaky-BcSzJogN.js +0 -1
  221. package/dist/web/assets/Impact-CJHnyZ21.js +0 -3
  222. package/dist/web/assets/Jobs-4xcFzEFo.js +0 -5
  223. package/dist/web/assets/KindPage-BielEIej.js +0 -6
  224. package/dist/web/assets/Migration-NwanKpJg.js +0 -2
  225. package/dist/web/assets/PageAgent-CNw4NXva.js +0 -1
  226. package/dist/web/assets/Product-DS3LJZ4P.js +0 -7
  227. package/dist/web/assets/Production-D3zsyNIS.js +0 -1
  228. package/dist/web/assets/Quality-Ctj2YpC4.js +0 -1
  229. package/dist/web/assets/Readiness-DGcRr_co.js +0 -1
  230. package/dist/web/assets/Record-Cc-wGe_Y.js +0 -1
  231. package/dist/web/assets/Regression-DcsbrRa1.js +0 -5
  232. package/dist/web/assets/Reports-BkCn0-Sf.js +0 -2
  233. package/dist/web/assets/Response-BP0UwQcW.js +0 -9
  234. package/dist/web/assets/Responsive-C8U7dumd.js +0 -3
  235. package/dist/web/assets/RunDiff-BhABuhF_.js +0 -1
  236. package/dist/web/assets/Runs-OwdWEYBv.js +0 -2
  237. package/dist/web/assets/Steps-BvzbQyoD.js +0 -2
  238. package/dist/web/assets/TestCases-CLq_6JA5.js +0 -1
  239. package/dist/web/assets/TestData-B0oKAhp6.js +0 -2
  240. package/dist/web/assets/TestDebt-8NLQ5YV_.js +0 -1
  241. package/dist/web/assets/TestManagement-2LYQ7vsN.js +0 -1
  242. package/dist/web/assets/Tosca-DfvMpPTG.js +0 -3
  243. package/dist/web/assets/WhatsNew-BGFNGwqN.js +0 -1
  244. package/dist/web/assets/families-DYlN5v0i.js +0 -1
  245. package/dist/web/assets/filters-faaSnoIq.js +0 -1
  246. package/dist/web/assets/fold-CUjwWAK3.js +0 -1
  247. package/dist/web/assets/frame-BLPdAXUq.js +0 -13
  248. package/dist/web/assets/head-CsTxBsO0.js +0 -1
  249. package/dist/web/assets/index-CxiCvGZq.js +0 -78
  250. package/dist/web/assets/index-dOIsrzhD.css +0 -2
  251. package/dist/web/assets/line-icons-CwZWt93L.js +0 -1
  252. package/dist/web/assets/logos-dGuc1jIM.js +0 -1
  253. package/dist/web/assets/markdown-BI3F-SJ1.js +0 -10
  254. package/dist/web/assets/paletteCommands-QJiCuUEr.js +0 -1
  255. package/dist/web/assets/parts-CdF1f7yS.js +0 -1
  256. package/dist/web/assets/productParts-hNLD9fN0.js +0 -1
  257. package/dist/web/assets/qualityParts-CT25lBWU.js +0 -1
  258. package/dist/web/assets/recordTest-P792aBUt.js +0 -1
@@ -174,11 +174,11 @@ prompts:
174
174
  # services, endpoints, tables, tests, and how they connect across repositories. By name, each a local clone (path) or
175
175
  # a link ForgeQE fetches itself into its cache (git): GitHub, Azure DevOps, GitLab, Bitbucket, or any git server over
176
176
  # https or ssh. Only the branch's latest commit and the files the graph reads are fetched, and only when it moved.
177
- # Settings › Evidence connects them for you: add an account (GitHub, Azure DevOps, GitLab, Bitbucket), sign in in the
177
+ # Settings › Product knowledge connects them for you: add an account (GitHub, Azure DevOps, GitLab, Bitbucket), sign in in the
178
178
  # browser or with a token, and pick its repositories; each picked one is written under repos with account: its name.
179
179
  # product:
180
180
  # name: Shop
181
- # accounts: # where the code is, by name; Settings › Evidence lists each one's repositories
181
+ # accounts: # where the code is, by name; Settings › Product knowledge lists each one's repositories
182
182
  # work: { host: github, auth: browser } # browser: the GitHub CLI's sign-in (gh auth login --web)
183
183
  # acme: { host: azure-devops, org: acme, auth: browser } # browser: Microsoft, through the Azure CLI (az login)
184
184
  # gl: { host: gitlab, auth: token, token_env: GITLAB_TOKEN } # or a personal access token, by its variable
@@ -216,7 +216,7 @@ prompts:
216
216
  # help: { url: https://help.shop.example/, depth: 1, max_pages: 100 } # a docs site: links followed on the same site only
217
217
  # api: { url: https://api.shop.example/openapi.json } # an OpenAPI, Swagger, WSDL, or GraphQL description: its endpoints
218
218
  # wiki: { confluence: SHOP, max_pages: 25 } # a Confluence space key, or a page link with the pages under it
219
- # # Markdown files added in Settings › Evidence are kept in .forgeqe/documents and read as the source "uploaded".
219
+ # # Markdown files added in Settings › Product knowledge are kept in .forgeqe/documents and read as the source "uploaded".
220
220
  # shop: { app: shop-web } # a web app of env.yaml: the pages ForgeQE's runs and explorations remember
221
221
  # # intranet: { url: https://wiki.acme.local/shop, token_env: WIKI_TOKEN } # a bearer token, sent to that site only
222
222
 
@@ -4,10 +4,30 @@ The team's own rules for every agent ForgeQE runs, to keep them grounded. Each b
4
4
  `.txt` file in this folder is one guardrail; headings, other lines and HTML comments are ignored. `guardrails.md` is
5
5
  the file ForgeQE's agent adds to when you ask it for a new rule.
6
6
 
7
- How the agents use them:
7
+ **Adding guardrails.**
8
+
9
+ **Web app**
10
+
11
+ 1. Open **Guardrails**.
12
+ 2. Press **Add**.
13
+ 3. Give it a **Name** and **What it is for**, and under **Agents that follow it** pick **Every agent** or **Chosen
14
+ agents**.
15
+ 4. Type or paste the **Rules**, one `- rule` line each, or press **Upload** for a `.md` file.
16
+ 5. Press **Add**.
17
+
18
+ **Terminal**
19
+
20
+ ```bash
21
+ forgeqe guardrails # the rules every agent follows, and where each comes from
22
+ forgeqe guardrails add "Never open a production URL" # one rule, for every agent, added to guardrails.md
23
+ ```
24
+
25
+ Or write a `.md` file in this folder and commit it.
26
+
27
+ **How the agents use them.**
8
28
 
9
29
  - A file can be for some agents only: start it with a header that names them, by their names in `forgeqe context`
10
- (the Settings › Guardrails page writes it for you when you add a file there, pasted or uploaded):
30
+ (the web app writes it for you when you pick **Chosen agents**):
11
31
 
12
32
  ```
13
33
  ---
@@ -4,13 +4,26 @@ What ForgeQE's agents should know about your product, written once and used on e
4
4
  the words your team uses, the rules it follows, the data to test with, and where it runs. Fill in the files below (or add
5
5
  your own `.md` or `.txt` files, in folders if you like) and commit them.
6
6
 
7
- How the agents use it:
7
+ **Adding or editing a knowledge file.**
8
+
9
+ **Web app**
10
+
11
+ 1. Open **Knowledge**.
12
+ 2. Press **Add** for a new file and give its **File name** (a folder before the name groups files), or open a file and
13
+ pick **Edit**.
14
+ 3. Write it in Markdown and press **Save**.
15
+
16
+ **Terminal**
17
+
18
+ Edit the `.md` or `.txt` files in this folder with any editor, and commit them.
19
+
20
+ **How the agents use it.**
8
21
 
9
22
  - **ForgeQE's agent** sees the list of these files and reads the ones a request needs (planning tests, judging a test
10
23
  case, answering about the product).
11
24
  - **Planning agents** (exploratory charters, API scenarios) get the sections that match the story or scenario.
12
25
  - **The browser agent** gets the few sections that match the goal (at most `knowledge.browser_max_chars`, default 1500
13
- characters, so runs stay cheap).
26
+ characters, so runs stay cheap; **Knowledge per browser run** in **Settings › Product knowledge**).
14
27
 
15
28
  Sections are found by their headings, so give each topic its own `##` heading. A file you have not changed since
16
29
  `forgeqe init` copied it is left out: the templates' examples never reach an agent.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capagents/forgeqe",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "ForgeQE: a browser agent CLI that runs goals and test cases in local Chrome or Chromium, or BrowserStack and TestMu AI/LambdaTest when configured, and turns passing runs into tests in your repo",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
package/prompts/brain.md CHANGED
@@ -461,6 +461,7 @@ For REST, GraphQL, SOAP, and gRPC:
461
461
  - To run API tests that are already in the repository, you MUST use find_tests, then run_tests. You MUST NOT run them with the shell.
462
462
  - Before api_new_set or api_add_calls, and whenever a set id is not in the conversation (a conversation picked up again), you MUST look for the API and the call with api_find_calls and reuse what is there. You MUST NOT make a second API or call with the same method and path; when you cannot tell which API is meant, ask the user.
463
463
  - To send API calls found in the repository's code, read the code, then use api_new_set and api_add_calls. To make tests of them, use write_api_tests.
464
+ - To delete an API (a set, a folder on the API tests Workbench), you MUST use api_delete_set with its set id (api_find_calls finds it); ForgeQE asks the user to confirm. You MUST NOT open the Workbench in a browser to delete, rename or change an API. When api_delete_set cannot delete it, tell the user why and stop.
464
465
 
465
466
  ### Monitoring
466
467
  - The settings are under monitor: in forgeqe.yaml: checks (test case sources), every (the interval), replay (verify or trust), fail_after, remind_every, and alerts (teams with webhook_env, email with host, port, username_env, password_env, from, and to).
@@ -9,7 +9,7 @@ When the page of the test differs from what ForgeQE saw:
9
9
  2. From inside the browser of the test, compare navigator.userAgent, navigator.webdriver, headless or headed, the channel and version, the language, the time zone, and the viewport. Many sites refuse a "HeadlessChrome" user agent.
10
10
  3. Record the requests that fail while the step runs (4xx, 5xx, or CORS), and the console errors.
11
11
  4. The framework can add headers to each request, such as a run id or tracing. Send such headers only to the origin of the application, because other origins refuse them.
12
- 5. Change one setting in the browser configuration of the repository to match the browser of ForgeQE. Run again, until the page is the same.
12
+ 5. Change one setting in the file of the test (never the suite's config) to match the browser of ForgeQE. Run again, until the page is the same.
13
13
 
14
14
  - You MUST NOT judge the site with webfetch, curl, or HTTP libraries. Bot protection gives them a challenge page.
15
15
  - You MAY report status blocked only as a last resort: you cannot get to the application, or it still refuses when the browsers agree on each point above.
@@ -10,5 +10,5 @@ Asking for more:
10
10
  - When you need more, you MUST ask. ForgeQE asks a person:
11
11
  - A package: request_install, with the project folder and the packages. For a Robot Framework or pytest project you MUST also pass language: "python", and write each package as pip spells it (robotframework-browser==18.9.1).
12
12
  - A command that your shell refuses: request_run, with the program and its arguments as a list.
13
- - A change to a package file: request_change, with the whole new content.
13
+ - A change to a package file or the suite's test-runner config: request_change, with the whole new content.
14
14
  - When ForgeQE or the person says no, you MUST NOT do it another way. Do the work without it, or report blocked with what you need.
@@ -19,7 +19,7 @@ A test is approved only when all these conditions are true:
19
19
  - It has an assertion for each result that the goal tells it to check. When the browser agent listed checks, use them.
20
20
  - It follows the test rules below. Page objects are generic, the data is in the test, and the assertions are true on each run.
21
21
  - It does not copy live values (prices, counts) or URLs from the run. It reads secrets from the environment, except a public demo login (below). It does not read ForgeQE files.
22
- - Changes to the browser and the framework are in the configuration or the shared setup. They apply to the full suite, and break no other test.
22
+ - Browser options that the test needs are in the file of the test (Playwright Test: a top-level `test.use`), and only those it needs. The test-runner configuration that the whole suite shares (playwright.config, cypress.config, wdio.conf, .runsettings) is not changed, and no other test breaks.
23
23
  - The job left nothing more: no scratch scripts, old tries, extra test files, or edits that are not related.
24
24
 
25
25
  ## Problem types
@@ -11,14 +11,13 @@ kind: fragment
11
11
  - A replacement test is never an acceptable result.
12
12
 
13
13
  ## The browser of the test
14
- - Before the first run, you MUST set up the browser the same as the browser that ForgeQE used.
14
+ - Before the first run, you MUST make the browser of the test get the same page as the browser that ForgeQE used.
15
15
  - You MUST use the "Browser options that reached the run's page" section of the handoff when it has one. It gives the exact launch and context options.
16
16
  - Without that section, you MUST use its "Browser ForgeQE used" section. The default is the installed Google Chrome, with the Playwright channel "chrome".
17
17
  - A different locale, time zone, viewport, or headless mode can get a different page, with a different currency, headings, or layout.
18
18
  - You MUST put each setting where it has an effect for the command that you report.
19
- - Settings files of the command, environment variables, and CI overrides replace the defaults. You MUST change the value in those places too.
20
- - You MUST put browser settings in the configuration of the repository, such as .runsettings, playwright.config, pytest options, or environment variables.
21
- - Browser settings MUST apply to the full suite, unless the repository configures browsers for each project. You MUST NOT put them in a test or a page object.
19
+ - You MUST set only the settings the test needs, in the file of the test: in Playwright Test a top-level `test.use({ ... })` (never `channel` or `launchOptions` inside a `describe` or a test), in other frameworks the test's own context options. Never in a page object.
20
+ - You MUST NOT change the test-runner configuration of the whole suite (playwright.config, cypress.config, wdio.conf, .runsettings, pytest options): it sets each test of the team. ForgeQE puts back such edits. When the suite needs a change there, ask with request_change.
22
21
  - The browser of ForgeQE used this application from this computer some minutes ago. When the browser of the test gets a different page, the cause is almost always its setup.
23
22
 
24
23
  - When the page of the test differs from what ForgeQE saw, ForgeQE sends you the steps to compare the two browsers with the failure.
@@ -61,6 +61,13 @@ CDP_TIMEOUT = 5.0
61
61
  # While a browser dialog is open the page's scripts wait for the person's answer, and so does a call into the page: it is
62
62
  # waited for (up to this long) rather than given up after CDP_TIMEOUT.
63
63
  DIALOG_WAIT = 600.0
64
+ # Stop is taken as soon as it is asked, ahead of the page's events: what the recorder is doing then gets this long to
65
+ # finish, and is then given up, so a page that does not answer (a dialog open, a frame that hangs) never holds Stop.
66
+ STOP_GRACE = 1.5
67
+ # The model's look at the typed and checked values when the recording stops: the saving waits this long for it at most.
68
+ REVIEW_SECONDS = 30.0
69
+ # And the pages' last typing and the last step's picture are waited for this long at most.
70
+ STOP_FLUSH = 4.0
64
71
  # A step's picture of the page: taken this long after the step, once the page has answered it; at most this many.
65
72
  SHOT_SETTLE = 0.7
66
73
  MAX_SHOTS = 400
@@ -248,6 +255,10 @@ class RecordSession:
248
255
  kw: Dict[str, Any] = {"params": params} if params is not None else {}
249
256
  if sid:
250
257
  kw["session_id"] = sid
258
+ if self.stop_reason and self._dialogs:
259
+ # Stopped with a dialog open: a call into the page would only wait for it. Given up at once (each caller
260
+ # takes a failed call as no answer), so the browser closes now.
261
+ raise asyncio.TimeoutError()
251
262
  call = asyncio.ensure_future(fn(**kw))
252
263
  waited = 0.0
253
264
  while True:
@@ -256,8 +267,9 @@ class RecordSession:
256
267
  if done:
257
268
  return call.result() or {}
258
269
  waited += CDP_TIMEOUT
259
- # A dialog open now, or one that opened meanwhile: the page waits for the person, and the call with it.
260
- if (self._dialogs or self._dialog_count != seen) and waited < DIALOG_WAIT:
270
+ # A dialog open now, or one that opened meanwhile: the page waits for the person, and the call with it. Not once
271
+ # the tester stopped: the browser is closing, and nobody answers that dialog.
272
+ if (self._dialogs or self._dialog_count != seen) and waited < DIALOG_WAIT and not self.stop_reason:
261
273
  continue
262
274
  call.cancel()
263
275
  raise asyncio.TimeoutError()
@@ -280,6 +292,8 @@ class RecordSession:
280
292
  # When it happened: a click handled late (its page navigating) is still before the back that followed it.
281
293
  if isinstance(event, dict):
282
294
  event.setdefault("_at", time.monotonic())
295
+ if kind == "binding" and self._page_stop(event, session_id):
296
+ return
283
297
  self.queue.put_nowait((kind, event, session_id))
284
298
 
285
299
  return handler
@@ -421,7 +435,8 @@ class RecordSession:
421
435
  await self.send("Page.stopScreencast", {}, sid)
422
436
  if self.browser is not None and self.profile is None:
423
437
  try:
424
- self.profile = await asyncio.wait_for(browser_profile(self.browser, self.launch), timeout=8)
438
+ # A dialog left open holds the page's part of it: not waited for, so the window goes when the tester stops.
439
+ self.profile = await asyncio.wait_for(browser_profile(self.browser, self.launch), timeout=1.5 if self._dialogs else 8)
425
440
  except Exception:
426
441
  self.profile = {}
427
442
  # Nothing is sent to the page any more (the panel, a log line): it is going.
@@ -462,24 +477,51 @@ class RecordSession:
462
477
  item = await asyncio.wait_for(self.queue.get(), timeout=min(left, 1.0))
463
478
  except asyncio.TimeoutError:
464
479
  continue
465
- await self._handle(item)
466
- # Typing not yet reported (the tester stopped with the caret still in a field), in a frame too.
467
- for tab in list(self.pages):
468
- await self._frame_calls(tab, "__fqeRec.flush()")
469
- for sid, page in list(self.pages.items()):
470
- ctx = page.get("ctx")
471
- if ctx:
472
- try:
473
- await self.send("Runtime.evaluate", {"expression": "globalThis.__fqeRec && __fqeRec.flush()", "contextId": ctx}, sid)
474
- except Exception:
475
- pass
480
+ await self._handle_until_stop(item)
481
+ # Typing not yet reported (the tester stopped with the caret still in a field), in a frame too: as long as the
482
+ # pages answer within STOP_FLUSH, never longer.
483
+ async def flush() -> None:
484
+ for tab in list(self.pages):
485
+ await self._frame_calls(tab, "__fqeRec.flush()")
486
+ for sid, page in list(self.pages.items()):
487
+ ctx = page.get("ctx")
488
+ if ctx:
489
+ try:
490
+ await self.send("Runtime.evaluate", {"expression": "globalThis.__fqeRec && __fqeRec.flush()", "contextId": ctx}, sid)
491
+ except Exception:
492
+ pass
493
+
494
+ try:
495
+ await asyncio.wait_for(flush(), timeout=STOP_FLUSH)
496
+ except asyncio.TimeoutError:
497
+ logger.info("record: the pages did not report their last typing within %.0f s of the stop", STOP_FLUSH)
476
498
  stopping = self.stop_reason
477
499
  await self._drain(0.6, stopping=True)
478
500
  self.stop_reason = stopping
479
501
  # The last step's picture, now rather than after its pause.
480
502
  if self._shot_task and not self._shot_task.done():
481
503
  self._shot_task.cancel()
482
- await self.shoot()
504
+ with contextlib.suppress(asyncio.TimeoutError):
505
+ await asyncio.wait_for(self.shoot(), timeout=STOP_FLUSH)
506
+
507
+ async def _handle_until_stop(self, item: Any) -> None:
508
+ """
509
+ One event, as _handle does it; but once the tester stopped, what is still going (a call the page does not answer)
510
+ gets STOP_GRACE more and is then given up, so Stop never waits for the page.
511
+ """
512
+ task = asyncio.ensure_future(self._handle(item))
513
+ while not task.done():
514
+ if self.stop_reason:
515
+ done, _ = await asyncio.wait({task}, timeout=STOP_GRACE)
516
+ if not done:
517
+ task.cancel()
518
+ with contextlib.suppress(asyncio.CancelledError, Exception):
519
+ await task
520
+ logger.info("record: an event still being handled when the recording stopped was given up (%s)", item[0])
521
+ return
522
+ await asyncio.wait({task}, timeout=0.25)
523
+ with contextlib.suppress(asyncio.CancelledError):
524
+ task.result()
483
525
 
484
526
  async def _drain(self, seconds: float, stopping: bool = False) -> None:
485
527
  end = time.monotonic() + seconds
@@ -493,7 +535,7 @@ class RecordSession:
493
535
  return
494
536
  if stopping and item[0] == "cmd":
495
537
  continue
496
- await self._handle(item)
538
+ await self._handle_until_stop(item)
497
539
 
498
540
  async def _handle(self, item: Any) -> None:
499
541
  kind, event, sid = item
@@ -1294,6 +1336,39 @@ class RecordSession:
1294
1336
 
1295
1337
  # -- commands: from the Recorder panel, the page's key commands, and the terminal -----------------------------------
1296
1338
 
1339
+ def ask_stop(self, data: Dict[str, Any]) -> bool:
1340
+ """
1341
+ Stop, as soon as it is asked: called where the command arrives (stdin, the page's binding), never queued behind the
1342
+ page's events, so a page that keeps the recorder busy or waiting cannot hold it. False before the recording has
1343
+ begun (it is queued then, for the loop to take). A test case with expected results not checked yet warns once.
1344
+ """
1345
+ rec = self.rec
1346
+ if rec is None:
1347
+ return False
1348
+ if self.stop_reason:
1349
+ return True
1350
+ gaps = rec.case_gaps()
1351
+ if gaps and not data.get("force") and not self.gaps_warned:
1352
+ self.gaps_warned = True
1353
+ listed = "; ".join(f"step {g['n']} expects {g['expected']!r}" for g in gaps[:4]) + ("; …" if len(gaps) > 4 else "")
1354
+ self.log(f"No check yet for {listed}. Add one (pick the case step, then Check), or press Stop again to stop.", "warn")
1355
+ return True
1356
+ self.stop_reason = "stopped"
1357
+ return True
1358
+
1359
+ def _page_stop(self, event: Any, sid: Optional[str]) -> bool:
1360
+ """The page's Stop (the bar's button, the S key): taken at once, only from the recorder's own binding in a tab or frame it follows."""
1361
+ if not isinstance(event, dict) or event.get("name") != self.binding or not sid or (sid not in self.pages and sid not in self.frames):
1362
+ return False
1363
+ try:
1364
+ data = json.loads(event.get("payload") or "{}")
1365
+ except (TypeError, ValueError):
1366
+ return False
1367
+ if not isinstance(data, dict) or data.get("kind") != "command" or data.get("cmd") != "stop":
1368
+ return False
1369
+ return self.ask_stop({"force": data.get("force") is True})
1370
+
1371
+
1297
1372
  async def command(self, data: Dict[str, Any]) -> None:
1298
1373
  rec = self.rec
1299
1374
  if rec is None:
@@ -1301,13 +1376,7 @@ class RecordSession:
1301
1376
  cmd = str(data.get("cmd") or "")
1302
1377
  msg: Optional[str] = None
1303
1378
  if cmd == "stop":
1304
- gaps = rec.case_gaps()
1305
- if gaps and not data.get("force") and not self.gaps_warned:
1306
- self.gaps_warned = True
1307
- listed = "; ".join(f"step {g['n']} expects {g['expected']!r}" for g in gaps[:4]) + ("; …" if len(gaps) > 4 else "")
1308
- self.log(f"No check yet for {listed}. Add one (pick the case step, then Check), or press Stop again to stop.", "warn")
1309
- return
1310
- self.stop_reason = "stopped"
1379
+ self.ask_stop(data)
1311
1380
  return
1312
1381
  if cmd == "case_step":
1313
1382
  msg = rec.set_case_step(int(data.get("n") or 0))
@@ -1483,8 +1552,12 @@ class RecordSession:
1483
1552
  )
1484
1553
  user = "\n".join(f"{it['n']}. {it['what']} on {it['label']!r}: {it['value']!r}" for it in items[:40])
1485
1554
  try:
1486
- res = await self.llm.ainvoke([SystemMessage(content=system), UserMessage(content=user)], output_format=Values)
1555
+ # The tester is waiting for the recording to save: a model that is slow to answer is not waited for.
1556
+ res = await asyncio.wait_for(self.llm.ainvoke([SystemMessage(content=system), UserMessage(content=user)], output_format=Values), timeout=REVIEW_SECONDS)
1487
1557
  answers = res.completion.values if isinstance(res.completion, Values) else []
1558
+ except asyncio.TimeoutError:
1559
+ self.log(f"Live data was not reviewed: the model did not answer within {REVIEW_SECONDS:.0f} s; the values stay as recorded (change them in the review).", "warn")
1560
+ return
1488
1561
  except Exception as ex:
1489
1562
  self.log(f"Live data was not reviewed by the model ({type(ex).__name__}); the patterns ForgeQE found stand.", "warn")
1490
1563
  return
@@ -2149,6 +2222,9 @@ async def record_web(payload: Dict[str, Any], emit: Emit, commands: asyncio.Queu
2149
2222
  async def relay() -> None:
2150
2223
  while True:
2151
2224
  cmd = await commands.get()
2225
+ # Stop is taken at once, ahead of the page's events (ask_stop); the rest in their turn.
2226
+ if isinstance(cmd, dict) and cmd.get("cmd") == "stop" and s.ask_stop(cmd):
2227
+ continue
2152
2228
  s.queue.put_nowait(("cmd", cmd, None))
2153
2229
 
2154
2230
  relay_task = asyncio.ensure_future(relay())
@@ -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.