@capagents/forgeqe 3.0.8 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/HOW_TO_USE.md +20 -19
  2. package/bin/bundle.js +3 -3
  3. package/bin/forgeqe.js +3 -3
  4. package/bin/license.js +1 -1
  5. package/dist/docs-site/CREDITS.md +11 -4
  6. package/dist/docs-site/LICENSE.dm-sans.txt +93 -0
  7. package/dist/docs-site/LICENSE.jetbrains-mono.txt +93 -0
  8. package/dist/docs-site/app-look.css +62 -0
  9. package/dist/docs-site/architecture-map/arch-fill.js +56 -0
  10. package/dist/docs-site/architecture-map/arch-theme.css +203 -0
  11. package/dist/docs-site/architecture-map/arch.css +0 -5
  12. package/dist/docs-site/architecture-map/index.html +57 -43
  13. package/dist/docs-site/docs/app-theme.css +166 -0
  14. package/dist/docs-site/docs/architecture/index.html +14 -11
  15. package/dist/docs-site/docs/containers/index.html +14 -11
  16. package/dist/docs-site/docs/cost-architecture/index.html +14 -11
  17. package/dist/docs-site/docs/custom-agents-first-run/index.html +14 -11
  18. package/dist/docs-site/docs/desktop/index.html +14 -11
  19. package/dist/docs-site/docs/desktop-ci/index.html +14 -11
  20. package/dist/docs-site/docs/docs.css +0 -7
  21. package/dist/docs-site/docs/evidence/index.html +14 -11
  22. package/dist/docs-site/docs/feature-test-prompts/index.html +14 -11
  23. package/dist/docs-site/docs/graphify/index.html +14 -11
  24. package/dist/docs-site/docs/guardrails/index.html +14 -11
  25. package/dist/docs-site/docs/index.html +71 -36
  26. package/dist/docs-site/docs/mobile/index.html +56 -18
  27. package/dist/docs-site/docs/model-routing/index.html +14 -11
  28. package/dist/docs-site/docs/product-graph/index.html +14 -11
  29. package/dist/docs-site/docs/product-knowledge/index.html +14 -11
  30. package/dist/docs-site/docs/product-views/index.html +14 -11
  31. package/dist/docs-site/docs/search.js +1 -1
  32. package/dist/docs-site/docs/web-app/index.html +14 -11
  33. package/dist/docs-site/img/wordmark.webp +0 -0
  34. package/dist/docs-site/site-header.css +0 -5
  35. package/dist/forgeqe.js +1889 -1863
  36. package/dist/template.html +14 -14
  37. package/dist/web/assets/AgentWork-C3KdZh5M.js +2 -0
  38. package/dist/web/assets/ApiTests-BLnl7JGO.js +10 -0
  39. package/dist/web/assets/Browse-C-Enjpmd.js +2 -0
  40. package/dist/web/assets/Chat-Bt6jZI68.js +3 -0
  41. package/dist/web/assets/Choices-D5eTFinz.js +3 -0
  42. package/dist/web/assets/{CommandPalette-Cm8lLnfi.js → CommandPalette-D89NM2_E.js} +1 -1
  43. package/dist/web/assets/{Compare-D10RIrFU.js → Compare-YfFYHwfK.js} +1 -1
  44. package/dist/web/assets/Cost-ClaDz0YR.js +1 -0
  45. package/dist/web/assets/Data-jSFgAfej.js +6 -0
  46. package/dist/web/assets/Desktop-BofKeLVf.js +1 -0
  47. package/dist/web/assets/DesktopReview--WjeZh3w.js +1 -0
  48. package/dist/web/assets/Evidence-CJNzSQpY.js +1 -0
  49. package/dist/web/assets/{Explore-DOQ8KddV.js → Explore-BdFvqgF4.js} +2 -2
  50. package/dist/web/assets/Features-CIBbw6PG.js +1 -0
  51. package/dist/web/assets/Flags-B62v4uWR.js +2 -0
  52. package/dist/web/assets/Flaky-Cut1kZw6.js +1 -0
  53. package/dist/web/assets/Impact-jOSl5Q0k.js +3 -0
  54. package/dist/web/assets/Jobs-DMJGgWtQ.js +5 -0
  55. package/dist/web/assets/KindPage-BbQWH5wa.js +6 -0
  56. package/dist/web/assets/Migration-BBgv7xXo.js +2 -0
  57. package/dist/web/assets/PageAgent-txbNoP6u.js +1 -0
  58. package/dist/web/assets/Product-BrXH81Ns.js +7 -0
  59. package/dist/web/assets/Production-CCVtFNGQ.js +1 -0
  60. package/dist/web/assets/Quality-Dxh-60A8.js +1 -0
  61. package/dist/web/assets/Readiness-DyJvSOLN.js +1 -0
  62. package/dist/web/assets/Record-Dnlkimjb.js +1 -0
  63. package/dist/web/assets/Regression-D2DDTwzs.js +5 -0
  64. package/dist/web/assets/Reports-ClcY7M0Q.js +2 -0
  65. package/dist/web/assets/Response-D9FYUvHg.js +9 -0
  66. package/dist/web/assets/RunDiff-CNImaEdz.js +1 -0
  67. package/dist/web/assets/Runs-CFvmdULI.js +2 -0
  68. package/dist/web/assets/{Steps-BoSfaEHJ.js → Steps-BS66s0E1.js} +2 -2
  69. package/dist/web/assets/TestCases-CrQEUtfD.js +1 -0
  70. package/dist/web/assets/TestData-e3IX0xwG.js +2 -0
  71. package/dist/web/assets/TestDebt-tXPoexMF.js +1 -0
  72. package/dist/web/assets/TestManagement-wjGaoZzI.js +1 -0
  73. package/dist/web/assets/Tosca-C5YaMLS0.js +3 -0
  74. package/dist/web/assets/WhatsNew-CwnRbDnd.js +1 -0
  75. package/dist/web/assets/azuredevops-BcQ5AFOM.js +1 -0
  76. package/dist/web/assets/crew-CWfjZIxE.js +1 -0
  77. package/dist/web/assets/{families-D78NUxTI.js → families-DWilSDct.js} +1 -1
  78. package/dist/web/assets/filters-CVzIOjPG.js +1 -0
  79. package/dist/web/assets/{fold-DFcP0iIo.js → fold-tvLGnxD1.js} +1 -1
  80. package/dist/web/assets/frame-Deu1IqzV.js +13 -0
  81. package/dist/web/assets/index-BWMIKyPB.js +76 -0
  82. package/dist/web/assets/index-C2Yq55oT.css +2 -0
  83. package/dist/web/assets/line-icons-C_amZ5-o.js +1 -0
  84. package/dist/web/assets/logos-C1NBtBMc.js +1 -0
  85. package/dist/web/assets/logos-DFyhMw0i.js +1 -0
  86. package/dist/web/assets/{markdown-DIB_8ewG.js → markdown-DC2HA0yZ.js} +7 -7
  87. package/dist/web/assets/paletteCommands-Qxm5DZIs.js +1 -0
  88. package/dist/web/assets/parts-BR6dUwqn.js +1 -0
  89. package/dist/web/assets/{productParts-BYAQJWF9.js → productParts-BxdHuSBa.js} +1 -1
  90. package/dist/web/assets/qualityParts-lz6eYVxC.js +1 -0
  91. package/dist/web/assets/{recordTest-GM1nj_SM.js → recordTest-CcplpTS6.js} +1 -1
  92. package/dist/web/assets/today-DuQFapJM.js +1 -0
  93. package/dist/web/assets/when-CHnpLdYw.js +1 -0
  94. package/dist/web/index.html +12 -6
  95. package/docs/ForgeQE-Client-Overview.pdf +0 -0
  96. package/docs/ForgeQE-Installation-Guide.pdf +0 -0
  97. package/docs/MOBILE.md +42 -7
  98. package/docs/TEST_MANAGEMENT_PLAN.md +186 -15
  99. package/docs/user-guide.html +1 -1
  100. package/package.json +2 -1
  101. package/prompts/README.md +1 -0
  102. package/prompts/brain.md +1 -0
  103. package/prompts/test-linker.md +43 -0
  104. package/py/forgeqe_data/connect.py +3 -1
  105. package/py/forgeqe_data/flows.py +1 -1
  106. package/py/forgeqe_data/service.py +1 -1
  107. package/py/forgeqe_data/streams.py +1 -1
  108. package/py/forgeqe_data/testdata.py +1 -1
  109. package/py/forgeqe_desktop/replay.py +43 -1
  110. package/py/forgeqe_desktop/service.py +2 -0
  111. package/py/forgeqe_desktop/workflow.py +77 -15
  112. package/py/forgeqe_engine/brand.py +1 -1
  113. package/py/forgeqe_engine/browser.py +2 -1
  114. package/py/forgeqe_engine/diagnostics.py +1 -1
  115. package/py/forgeqe_engine/memory.py +2 -1
  116. package/py/forgeqe_engine/neutral_log.py +1 -1
  117. package/py/forgeqe_engine/otp.py +127 -12
  118. package/py/forgeqe_engine/pwlaunch.mjs +1 -1
  119. package/py/forgeqe_engine/recordsession.py +13 -3
  120. package/py/forgeqe_engine/webrecord.py +20 -0
  121. package/py/forgeqe_mobile/appium_driver.py +225 -10
  122. package/py/forgeqe_mobile/locators.py +277 -0
  123. package/py/forgeqe_mobile/maestro.py +28 -1
  124. package/py/forgeqe_mobile/magiclink.py +79 -0
  125. package/py/forgeqe_mobile/record.py +284 -67
  126. package/py/forgeqe_mobile/service.py +9 -0
  127. package/py/forgeqe_mobile/webview.py +142 -0
  128. package/py/forgeqe_testmgmt/__init__.py +1 -0
  129. package/py/forgeqe_testmgmt/pytest_collect.py +56 -0
  130. package/py/forgeqe_tosca/ntir.py +45 -6
  131. package/dist/docs-site/LICENSE.ubuntu.txt +0 -96
  132. package/dist/docs-site/img/icons/api.svg +0 -1
  133. package/dist/docs-site/img/icons/architecture.svg +0 -1
  134. package/dist/docs-site/img/icons/branch.svg +0 -1
  135. package/dist/docs-site/img/icons/browser-agent.svg +0 -1
  136. package/dist/docs-site/img/icons/case.svg +0 -1
  137. package/dist/docs-site/img/icons/container.svg +0 -1
  138. package/dist/docs-site/img/icons/context-engine.svg +0 -1
  139. package/dist/docs-site/img/icons/desktop.svg +0 -1
  140. package/dist/docs-site/img/icons/download.svg +0 -1
  141. package/dist/docs-site/img/icons/explorer.svg +0 -1
  142. package/dist/docs-site/img/icons/feature.svg +0 -1
  143. package/dist/docs-site/img/icons/healer.svg +0 -1
  144. package/dist/docs-site/img/icons/knowledge-base.svg +0 -1
  145. package/dist/docs-site/img/icons/mail.svg +0 -1
  146. package/dist/docs-site/img/icons/mobile.svg +0 -1
  147. package/dist/docs-site/img/icons/model.svg +0 -1
  148. package/dist/docs-site/img/icons/network.svg +0 -1
  149. package/dist/docs-site/img/icons/orchestrator.svg +0 -1
  150. package/dist/docs-site/img/icons/plug.svg +0 -1
  151. package/dist/docs-site/img/icons/pr-reviewer.svg +0 -1
  152. package/dist/docs-site/img/icons/replay.svg +0 -1
  153. package/dist/docs-site/img/icons/report.svg +0 -1
  154. package/dist/docs-site/img/icons/result.svg +0 -1
  155. package/dist/docs-site/img/icons/rule.svg +0 -1
  156. package/dist/docs-site/img/icons/scribe.svg +0 -1
  157. package/dist/docs-site/img/icons/shield.svg +0 -1
  158. package/dist/docs-site/img/icons/specs.svg +0 -1
  159. package/dist/docs-site/img/icons/speed.svg +0 -1
  160. package/dist/docs-site/img/icons/stories.svg +0 -1
  161. package/dist/docs-site/img/icons/terminal.svg +0 -1
  162. package/dist/docs-site/img/icons/test-finder.svg +0 -1
  163. package/dist/docs-site/img/icons/visual.svg +0 -1
  164. package/dist/docs-site/img/icons/web.svg +0 -1
  165. package/dist/docs-site/img/icons/wikis.svg +0 -1
  166. package/dist/web/assets/Agent-BgpsSPrr.js +0 -7
  167. package/dist/web/assets/AgentWork-VRJbVshA.js +0 -2
  168. package/dist/web/assets/ApiTests-DHwAbLqi.js +0 -10
  169. package/dist/web/assets/Browse-BMF56Efz.js +0 -2
  170. package/dist/web/assets/Chat-CaUU-WY7.js +0 -3
  171. package/dist/web/assets/Cost-B_UPdLMv.js +0 -1
  172. package/dist/web/assets/Data-C4H5sYEC.js +0 -6
  173. package/dist/web/assets/Desktop-bLj_WL8M.js +0 -1
  174. package/dist/web/assets/DesktopReview-Bl9TCBkR.js +0 -1
  175. package/dist/web/assets/Evidence-Cp1HUzpL.js +0 -1
  176. package/dist/web/assets/Features-RCBkPcEQ.js +0 -1
  177. package/dist/web/assets/Flags-n0IwBw02.js +0 -2
  178. package/dist/web/assets/Flaky-BfwzLt5Z.js +0 -1
  179. package/dist/web/assets/Impact-DLpuEZSR.js +0 -3
  180. package/dist/web/assets/Jobs-BdXmyaEl.js +0 -5
  181. package/dist/web/assets/KindPage-B3aoqE1U.js +0 -6
  182. package/dist/web/assets/Migration-CZyx2ubc.js +0 -2
  183. package/dist/web/assets/PageAgent-D5ZEQOQe.js +0 -1
  184. package/dist/web/assets/Product-BZe62mCa.js +0 -7
  185. package/dist/web/assets/Production-D0PyJr7i.js +0 -1
  186. package/dist/web/assets/Quality-k-6G5B1k.js +0 -1
  187. package/dist/web/assets/Readiness-InUynp50.js +0 -1
  188. package/dist/web/assets/Record-DIprTx7M.js +0 -1
  189. package/dist/web/assets/Regression-CWk9uEE7.js +0 -5
  190. package/dist/web/assets/RelationGraph-ybf6gf-K.js +0 -1
  191. package/dist/web/assets/Reports-BYOTLZah.js +0 -2
  192. package/dist/web/assets/Response-BC4GgybP.js +0 -9
  193. package/dist/web/assets/RunDiff-B0sRO9OI.js +0 -1
  194. package/dist/web/assets/Runs-Dy_fBhhR.js +0 -2
  195. package/dist/web/assets/TestCases-D4xZlPgR.js +0 -1
  196. package/dist/web/assets/TestData-CXDU1gv4.js +0 -2
  197. package/dist/web/assets/TestDebt-Cc5ODjR-.js +0 -1
  198. package/dist/web/assets/TestManagement-Cdj_o5D6.js +0 -1
  199. package/dist/web/assets/Tosca-CfgkdgcT.js +0 -3
  200. package/dist/web/assets/WhatsNew-DVzuub1d.js +0 -1
  201. package/dist/web/assets/agentTabs-CmOYLCIU.js +0 -1
  202. package/dist/web/assets/dataParts-Bw4pl6JD.js +0 -3
  203. package/dist/web/assets/diff-CRxu9ARd.js +0 -2
  204. package/dist/web/assets/filters-D2j1h_NS.js +0 -1
  205. package/dist/web/assets/frame-Cr9XkzMf.js +0 -13
  206. package/dist/web/assets/index-C5JQ2Q4O.js +0 -69
  207. package/dist/web/assets/index-CpHco9gF.css +0 -2
  208. package/dist/web/assets/line-icons-Cb4JZG1G.js +0 -1
  209. package/dist/web/assets/logos-d0fFqQS2.js +0 -1
  210. package/dist/web/assets/paletteCommands-COA2_LAh.js +0 -1
  211. package/dist/web/assets/parts-Dsb4bByj.js +0 -1
  212. package/dist/web/assets/qualityParts-DyfqNmRK.js +0 -1
  213. package/dist/web/assets/rows-CpFeqs4P.js +0 -1
  214. package/dist/web/assets/segmented-BbcK9lLg.js +0 -1
package/HOW_TO_USE.md CHANGED
@@ -64,6 +64,7 @@ agent:
64
64
  | a bug, orange | Sleuth | `forgeqe-defect-rca` | Finds the root cause of a defect | No |
65
65
  | a funnel, indigo | Polish | `forgeqe-refine` | Turns a request into a task specification | No |
66
66
  | a stack of layers, cobalt | Sorter | `forgeqe-suite-builder` | Builds a test suite from what a person asks, as groups of rules over the project's test cases | No |
67
+ | a target with its centre, sky | Matchmaker | `forgeqe-test-linker` | Links test cases to the automated tests that check them, from their titles, steps, names and files | No |
67
68
  | building blocks, mauve | Smith | `forgeqe-agent-builder` | Works out a custom agent with the user: questions, plan, name | No |
68
69
  | an envelope, plum | Herald | `forgeqe-bug-report` | Drafts a defect in ForgeQE itself from the person's words, and asks what it lacks | No |
69
70
  | a database drum, aqua | Miner | `forgeqe-data` | Miner: finds or designs the test data other agents ask for before they run | No |
@@ -108,32 +109,32 @@ The icons as the shell draws them, each in its agent's colour:
108
109
  ▚▟▙▞ Sleuth ▜██▛ Polish
109
110
  ▜██▛ ▜▛
110
111
 
111
- ▜██▛ Sorter █ █ Smith
112
- ▜██▛ █ █
112
+ ▜██▛ Sorter ▟▀▀▙ Matchmaker
113
+ ▜██▛ ▜▟▙▛
113
114
 
114
- █▀▀█ Herald ▟██▙ Miner
115
- ▙▟▙▟ ▚▄▄▞
115
+ █ █ Smith █▀▀█ Herald
116
+ █ █ ▙▟▙▟
116
117
 
117
- ▗█▖▄ BASAL ▟▙ Mask
118
- ████ ▟██▙
118
+ ▟██▙ Miner ▗█▖▄ BASAL
119
+ ▚▄▄▞ ████
119
120
 
120
- ▗██▖ Librarian █▖▗█ Skimmer
121
- ▜▛ ████
121
+ ▟▙ Mask ▗██▖ Librarian
122
+ ▟██▙ ▜▛
122
123
 
123
- ▐█▙ Gavel ▄▟▙▄ Scales
124
- ▄▖▝▙ ▙▖ ▙
124
+ █▖▗█ Skimmer ▐█▙ Gavel
125
+ ████ ▄▖▝▙
125
126
 
126
- █ █ Grader ▛▀█▖ Drafter
127
- ▞ ▞ ▙█▄▌
127
+ ▄▟▙▄ Scales █ █ Grader
128
+ ▙▖ ▙ ▞ ▞
128
129
 
129
- ▀▖▗▀ Mapper ▗▜▛▖ Digger
130
- ▄▝▘▄ ▝▄▄▙
130
+ ▛▀█▖ Drafter ▀▖▗▀ Mapper
131
+ ▙█▄▌ ▄▝▘▄
131
132
 
132
- ▞▀▀▚ Clerk ▗▚▞▖ Ripple
133
- ▙██▟ ▝▞▚▘
133
+ ▗▜▛▖ Digger ▞▀▀▚ Clerk
134
+ ▝▄▄▙ ▙██▟
134
135
 
135
- ▛▀▀▜ WebPilot
136
- ▙▄▄▟
136
+ ▗▚▞▖ Ripple ▛▀▀▜ WebPilot
137
+ ▝▞▚▘ ▙▄▄▟
137
138
  ```
138
139
  <!-- subagents:end -->
139
140
 
@@ -170,7 +171,7 @@ Everything ForgeQE can do, by area. ForgeQE's agent answers "can you…?" questi
170
171
  | Automated tests | **Flaky test detection and quarantine**: Finds tests that flip between passing and failing in the repository's run history, with their likely cause, and quarantines them once the user agrees. | `flaky_tests`, `quarantine_tests` | [docs](#flaky-tests) |
171
172
  | Pull requests | **Review pull requests**: Reviews an Azure DevOps or GitHub pull request from the local clone for bugs, security, requirements, and tests, and posts the review once the user agrees. | `review_pull_request`, `post_pr_review` | [docs](#reviewing-pull-requests) |
172
173
  | Pull requests | **Pull request impact and test selection**: Works out which product areas, pages, requirements, and tests a pull request touches, picks the tests it can break, runs them, and posts the impact or results on the pull request once the user agrees. | `analyze_pr_impact`, `select_pr_tests`, `post_pr_test_results`, `comment_on_pr` | [docs](#what-a-pull-request-impacts-in-the-product) |
173
- | API | **API and contract testing**: Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts. | `api_contracts`, `run_api_contracts`, `heal_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
174
+ | API | **API and contract testing**: Builds API contracts (status, schema, key fields) from the calls a browser run saw or from an API description (OpenAPI, Swagger, WSDL, GraphQL, .proto, gRPC reflection), and end-to-end API scenarios from runs, descriptions, test cases, or plain English. Runs them straight against the API without a browser, or writes them as tests in the repository. REST, GraphQL (with subscriptions), SOAP, gRPC (with streaming), WebSocket and Server-Sent Events. Comparing runs of one flow learns which values are parameters; contracts that stop passing after the app changed are learned again from a newer run, kept only when a replay passes and a person agrees. A mock server built from the contracts. | `api_contracts`, `run_api_contracts`, `heal_api_contracts`, `api_scenarios`, `run_api_scenarios`, `write_api_tests`, `api_find_calls`, `api_new_set`, `api_add_calls`, `api_import_collection` | [docs](#api-and-contract-tests) |
174
175
  | API | **API load and security checks**: Load and latency testing of a contract set's read-only calls (virtual users, percentiles, throughput and error rate against limits), and robustness and API-security checks (OWASP API Top 10): malformed input, calls without credentials, leaked errors, mass assignment and missing security headers. | `run_api_load`, `run_api_security` | [docs](#api-and-contract-tests) |
175
176
  | Quality | **Accessibility and page performance**: Checks every page a run visits against WCAG rules (axe-core) and measures its Core Web Vitals, against budgets, with trends over time per page. | `quality_report`, `quality_trends` | [docs](#accessibility-and-performance-budgets) |
176
177
  | Quality | **Accessibility testing with personas**: A browser agent does a goal as a person with a disability would (a blind screen reader user, keyboard only, low vision, colour blind, cognitive, or the project's own personas) and records each barrier with its WCAG criterion and severity. Not functional testing. | `accessibility_test`, `accessibility_personas` | [docs](#accessibility-testing-with-personas) |
package/bin/bundle.js CHANGED
@@ -51,8 +51,8 @@ export function readTar(input) {
51
51
  const name = cStr(block, 0, 100)
52
52
  const prefix = cStr(block, 345, 155)
53
53
  const full = prefix ? `${prefix}/${name}` : name
54
- const mode = parseInt(cStr(block, 100, 8).trim() || "0", 8) || 0
55
- const size = parseInt(cStr(block, 124, 12).trim() || "0", 8) || 0
54
+ const mode = Number.parseInt(cStr(block, 100, 8).trim() || "0", 8) || 0
55
+ const size = Number.parseInt(cStr(block, 124, 12).trim() || "0", 8) || 0
56
56
  const type = String.fromCharCode(block[156] || 0)
57
57
  const start = off + 512
58
58
  const data = buf.subarray(start, start + size)
@@ -99,7 +99,7 @@ export function sha256(buf) {
99
99
  * of. Phase 3 may replace this with a signed object-storage URL from the license service.
100
100
  */
101
101
  export function bundleUrl(repo, tag, version, env = process.env) {
102
- const mirror = (env.FORGEQE_GITHUB_MIRROR || "").trim().replace(/\/+$/, "")
102
+ const mirror = (env.FORGEQE_GITHUB_MIRROR || "").trim().replace(/(?<!\/)\/+$/, "")
103
103
  const base = /^https:\/\//i.test(mirror) ? mirror : "https://github.com"
104
104
  return `${base}/${repo}/releases/download/${tag}/${bundleAsset(version)}`
105
105
  }
package/bin/forgeqe.js CHANGED
@@ -156,7 +156,7 @@ async function download(url) {
156
156
  async function installBun() {
157
157
  const asset = bunAsset();
158
158
  if (!asset) throw new Error(`no Bun build for ${process.platform}/${process.arch}`);
159
- const mirror = (process.env.FORGEQE_GITHUB_MIRROR || "").trim().replace(/\/+$/, "");
159
+ const mirror = (process.env.FORGEQE_GITHUB_MIRROR || "").trim().replace(/(?<!\/)\/+$/, "");
160
160
  const base = `${/^https:\/\//i.test(mirror) ? mirror : "https://github.com"}/oven-sh/bun/releases/download/bun-v${BUN_VERSION}`;
161
161
  process.stderr.write(`forgeqe: downloading Bun ${BUN_VERSION} (${asset}) into ${toolsDir()} (one time)...\n`);
162
162
  const [zip, sums] = await Promise.all([download(`${base}/${asset}`), download(`${base}/SHASUMS256.txt`)]);
@@ -233,7 +233,7 @@ async function runActivate() {
233
233
  cfg = JSON.parse(readFileSync(path.join(root, "package.json"), "utf8")).bundle || {};
234
234
  } catch {}
235
235
  const home = forgeqeHome();
236
- const licenseUrl = (process.env.FORGEQE_LICENSE_URL || cfg.licenseUrl || DEFAULT_LICENSE_URL || "").replace(/\/+$/, "");
236
+ const licenseUrl = (process.env.FORGEQE_LICENSE_URL || cfg.licenseUrl || DEFAULT_LICENSE_URL || "").replace(/(?<!\/)\/+$/, "");
237
237
  if (!licenseUrl) {
238
238
  console.error("forgeqe: no licence service is configured.");
239
239
  return 1;
@@ -262,7 +262,7 @@ async function bundleRoot() {
262
262
  // Gated mode: when a licence service is configured, the bundle is fetched THROUGH it with an activation token
263
263
  // (design/forgeqe-gated-distribution-rfc.md §3–§4). Activation happens lazily, only if a download is actually needed
264
264
  // (resolveBundleRoot returns early when the bundle is already present), so a cached bundle never forces a round-trip.
265
- const licenseUrl = (process.env.FORGEQE_LICENSE_URL || cfg.licenseUrl || DEFAULT_LICENSE_URL || "").replace(/\/+$/, "");
265
+ const licenseUrl = (process.env.FORGEQE_LICENSE_URL || cfg.licenseUrl || DEFAULT_LICENSE_URL || "").replace(/(?<!\/)\/+$/, "");
266
266
  if (licenseUrl) {
267
267
  const command = process.argv[2];
268
268
  let token;
package/bin/license.js CHANGED
@@ -81,7 +81,7 @@ function storeToken(home, token) {
81
81
  }
82
82
 
83
83
  async function postActivate(url, key, mid, fetchImpl) {
84
- const res = await fetchImpl(`${url.replace(/\/+$/, "")}/activate`, {
84
+ const res = await fetchImpl(`${url.replace(/(?<!\/)\/+$/, "")}/activate`, {
85
85
  method: "POST",
86
86
  headers: { "content-type": "application/json" },
87
87
  body: JSON.stringify({ key, machine_id: mid }),
@@ -1,11 +1,18 @@
1
1
  # Credits
2
2
 
3
- The docs pages of ForgeQE, as on https://forgeqe.github.io/docs/. The pixel icons in img/ are ForgeQE's own.
3
+ The docs pages of ForgeQE, as on https://forgeqe.github.io/docs/.
4
4
 
5
- ## Fonts (Ubuntu Font Licence 1.0)
5
+ ## Icons (MIT)
6
6
 
7
- Ubuntu and Ubuntu Mono (https://design.ubuntu.com/font/), from @fontsource/ubuntu 5.1.0 and @fontsource/ubuntu-mono
8
- 5.1.0, inside docs/docs.css. The licence text is in LICENSE.ubuntu.txt.
7
+ The icons of each page and the architecture map are the web app's (web/src/flatIcons.ts): Phosphor Duotone from
8
+ @iconify-json/ph, and a few of ForgeQE's own drawn to match it. Phosphor by Phosphor Icons
9
+ (https://github.com/phosphor-icons/core), under the MIT licence: https://github.com/phosphor-icons/core/blob/main/LICENSE
10
+
11
+ ## Fonts (SIL Open Font License 1.1)
12
+
13
+ DM Sans (https://github.com/googlefonts/dm-fonts) and JetBrains Mono (https://github.com/JetBrains/JetBrainsMono), from
14
+ @fontsource/dm-sans and @fontsource/jetbrains-mono as the web app locks them, inside app-look.css. The licence texts are
15
+ in LICENSE.dm-sans.txt and LICENSE.jetbrains-mono.txt.
9
16
 
10
17
  ## Icons (ISC)
11
18
 
@@ -0,0 +1,93 @@
1
+ Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts) DMSans-Italic[opsz,wght].ttf: Copyright 2014 The DM Sans Project Authors (https://github.com/googlefonts/dm-fonts)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) JetBrainsMono-Italic[wght].ttf: Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.