@capagents/forgeqe 2.8.8 → 2.9.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.
- package/HOW_TO_USE.md +10 -2
- package/dist/docs-site/docs/index.html +83 -2
- package/dist/docs-site/docs/search.js +1 -1
- package/dist/forgeqe.js +2036 -2029
- package/dist/template.html +66 -66
- package/dist/web/THIRD_PARTY_NOTICES.md +455 -0
- package/dist/web/assets/Agent-BGwHbXbc.js +4 -0
- package/dist/web/assets/ApiTests-DSnZHRlF.js +10 -0
- package/dist/web/assets/Browse-Dx3pHGuG.js +2 -0
- package/dist/web/assets/Chat-BcFP0BbA.js +3 -0
- package/dist/web/assets/CommandPalette-v6mqHZnU.js +1 -0
- package/dist/web/assets/Cost-C9LZdx1p.js +1 -0
- package/dist/web/assets/Data-DvbaOc9e.js +6 -0
- package/dist/web/assets/Evidence-Y1AeSzh5.js +1 -0
- package/dist/web/assets/Explore-Dw8S6DG1.js +2 -0
- package/dist/web/assets/Features-CjrVraBE.js +1 -0
- package/dist/web/assets/Flags-C_Qm0078.js +2 -0
- package/dist/web/assets/Flaky-DYgN586D.js +1 -0
- package/dist/web/assets/ForceGraph-CEH86-Z0.js +1 -0
- package/dist/web/assets/Impact-dBPp7aM2.js +3 -0
- package/dist/web/assets/Jobs-CSyN6YRx.js +5 -0
- package/dist/web/assets/KindPage-BQl-5bcd.js +6 -0
- package/dist/web/assets/Migration-COly7O-T.js +2 -0
- package/dist/web/assets/Product-7mM8tcxH.js +7 -0
- package/dist/web/assets/Production-De5CCUoP.js +1 -0
- package/dist/web/assets/Quality-Q_iqj3fk.js +1 -0
- package/dist/web/assets/Readiness-kU9kum_I.js +1 -0
- package/dist/web/assets/Record-CIhINuEz.js +2 -0
- package/dist/web/assets/Regression-CMQnH7dN.js +5 -0
- package/dist/web/assets/Reports-dUOe6_vN.js +2 -0
- package/dist/web/assets/Response-DGl2R0A-.js +4 -0
- package/dist/web/assets/RunDiff-BVRRIz3m.js +1 -0
- package/dist/web/assets/Runs-CkNWhAhe.js +2 -0
- package/dist/web/assets/TestCases-exR7hRWd.js +1 -0
- package/dist/web/assets/TestData-yVPMg9kw.js +2 -0
- package/dist/web/assets/TestDebt-C3sM6cH0.js +1 -0
- package/dist/web/assets/Tosca-Bcalg1JU.js +2 -0
- package/dist/web/assets/WhatsNew-EFSt6xx2.js +1 -0
- package/dist/web/assets/dataParts-D33u08WR.js +3 -0
- package/dist/web/assets/{families-7ZW63NF1.js → families-Btjss8bN.js} +1 -1
- package/dist/web/assets/frame-D3IhgCFt.js +4 -0
- package/dist/web/assets/index-D5sya6FK.css +2 -0
- package/dist/web/assets/index-v-k_CVn7.js +45 -0
- package/dist/web/assets/line-icons-CQ-3V8ax.js +1 -0
- package/dist/web/assets/logos-CfpaNwbY.js +1 -0
- package/dist/web/assets/palette-X7hU78Wy.js +1 -0
- package/dist/web/assets/parts-B7YrlR3a.js +1 -0
- package/dist/web/assets/productParts-CAxyMnWJ.js +1 -0
- package/dist/web/assets/qualityParts-CN9JVKZN.js +1 -0
- package/dist/web/assets/rows-IEP4Jvfi.js +1 -0
- package/dist/web/assets/{segmented-CCfjZKVa.js → segmented-DBqHvZW3.js} +1 -1
- package/dist/web/assets/thread-BeaLQ_f4.js +5 -0
- package/dist/web/assets/usePageChat-D_3KsqBU.js +1 -0
- package/dist/web/index.html +4 -3
- package/docs/user-guide.html +87 -2
- package/evals/evidence/build/README.md +20 -0
- package/evals/evidence/build/base/package.json +1 -0
- package/evals/evidence/build/base/src/index.ts +1 -0
- package/evals/evidence/build/base/src/pricing.ts +22 -0
- package/evals/evidence/build/base/tests/discount.test.ts +6 -0
- package/evals/evidence/build/base/tests/legacy.test.ts +7 -0
- package/evals/evidence/build/base/tests/pricing.test.ts +10 -0
- package/evals/evidence/build/cases/build-broken/after/src/pricing.ts +22 -0
- package/evals/evidence/build/cases/build-broken/case.json +13 -0
- package/evals/evidence/build/cases/fixes-legacy/after/src/pricing.ts +22 -0
- package/evals/evidence/build/cases/fixes-legacy/case.json +11 -0
- package/evals/evidence/build/cases/flaky-test/after/tests/flaky.test.ts +11 -0
- package/evals/evidence/build/cases/flaky-test/case.json +11 -0
- package/evals/evidence/build/cases/good-feature/after/src/index.ts +1 -0
- package/evals/evidence/build/cases/good-feature/after/src/pricing.ts +28 -0
- package/evals/evidence/build/cases/good-feature/after/tests/bulk.test.ts +7 -0
- package/evals/evidence/build/cases/good-feature/case.json +17 -0
- package/evals/evidence/build/cases/new-test-fails/after/src/index.ts +1 -0
- package/evals/evidence/build/cases/new-test-fails/after/src/pricing.ts +27 -0
- package/evals/evidence/build/cases/new-test-fails/after/tests/coupon.test.ts +6 -0
- package/evals/evidence/build/cases/new-test-fails/case.json +19 -0
- package/evals/evidence/build/cases/regression/after/src/pricing.ts +23 -0
- package/evals/evidence/build/cases/regression/case.json +13 -0
- package/evals/evidence/build/cases/test-removed/case.json +14 -0
- package/forgeqe.example.yaml +3 -0
- package/package.json +2 -1
- package/py/forgeqe_engine/browser.py +533 -28
- package/py/forgeqe_engine/browserdoctor.py +255 -0
- package/py/forgeqe_engine/browserlaunch.py +271 -0
- package/py/forgeqe_engine/capture.py +20 -4
- package/py/forgeqe_engine/cli.py +26 -0
- package/py/forgeqe_engine/logins.py +1 -1
- package/py/forgeqe_engine/pwlaunch.mjs +61 -0
- package/py/forgeqe_engine/recordsession.py +1 -1
- package/py/forgeqe_engine/service.py +1 -1
- package/dist/web/assets/Agent-Cp8VlBIz.js +0 -4
- package/dist/web/assets/ApiTests-BcZLc09C.js +0 -10
- package/dist/web/assets/Browse-C_YjgIEb.js +0 -1
- package/dist/web/assets/Chat-BoCGL6_O.js +0 -3
- package/dist/web/assets/CommandPalette-BfM5HzzB.js +0 -1
- package/dist/web/assets/Cost-TS6CXmoR.js +0 -1
- package/dist/web/assets/Data-CBPzLyv3.js +0 -6
- package/dist/web/assets/Evidence-BZq0G649.js +0 -1
- package/dist/web/assets/Explore-l6Hdu8Sv.js +0 -2
- package/dist/web/assets/Features-YYJcXLBf.js +0 -1
- package/dist/web/assets/Flags-C60CLbzH.js +0 -2
- package/dist/web/assets/Flaky-BkLguGXu.js +0 -1
- package/dist/web/assets/ForceGraph-D1krkEJe.js +0 -1
- package/dist/web/assets/Impact-640wqe0S.js +0 -3
- package/dist/web/assets/Jobs-C97GqHLF.js +0 -5
- package/dist/web/assets/KindPage-Bux228tV.js +0 -6
- package/dist/web/assets/Migration-VTuXJ3MF.js +0 -2
- package/dist/web/assets/Product-BNDHj6KV.js +0 -7
- package/dist/web/assets/Production-BC-kcNIt.js +0 -1
- package/dist/web/assets/Quality-CuSQTvtJ.js +0 -1
- package/dist/web/assets/Readiness-Bh2cynJx.js +0 -1
- package/dist/web/assets/Record-DJfuaIqW.js +0 -2
- package/dist/web/assets/Regression-oW_4rSE7.js +0 -5
- package/dist/web/assets/Reports-CBkl7Abx.js +0 -2
- package/dist/web/assets/Response-f5217Gw2.js +0 -4
- package/dist/web/assets/RunDiff-B7o9vQBr.js +0 -1
- package/dist/web/assets/Runs-CkdASpHU.js +0 -2
- package/dist/web/assets/TestCases-BPif-KCg.js +0 -1
- package/dist/web/assets/TestData-CQAI8n3o.js +0 -2
- package/dist/web/assets/TestDebt-C94phbAj.js +0 -1
- package/dist/web/assets/Tosca-CX7hZsNJ.js +0 -2
- package/dist/web/assets/WhatsNew-ktL7koKS.js +0 -1
- package/dist/web/assets/dataParts-DD_0rviO.js +0 -3
- package/dist/web/assets/frame-Ct3Ey3bQ.js +0 -4
- package/dist/web/assets/index-DvuGI8X3.css +0 -2
- package/dist/web/assets/index-tdO1bZWq.js +0 -45
- package/dist/web/assets/logos-Czko8FVx.js +0 -1
- package/dist/web/assets/parts-ryIgw8NG.js +0 -1
- package/dist/web/assets/productParts-CSw1V5I9.js +0 -1
- package/dist/web/assets/qualityParts-Czf68wgs.js +0 -1
- package/dist/web/assets/thread-_hyYtCeH.js +0 -5
- package/dist/web/assets/usePageChat-Cm84Zkf4.js +0 -1
package/HOW_TO_USE.md
CHANGED
|
@@ -768,8 +768,16 @@ A custom agent is ForgeQE's agent configured by your team for one job, kept in t
|
|
|
768
768
|
`.forgeqe/agents/<id>.yaml`. It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is
|
|
769
769
|
held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities,
|
|
770
770
|
which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An
|
|
771
|
-
environment named like production is never allowed. It has no shell, web fetch or web search
|
|
772
|
-
|
|
771
|
+
environment named like production is never allowed. It has no shell, web fetch or web search unless its manifest says
|
|
772
|
+
`shell: true` (then a person approves each command), and uses only the other systems `scope.systems` names. Writing and
|
|
773
|
+
healing tests start a coding agent, which a person approves each call of unless `permissions.trust` lists it.
|
|
774
|
+
|
|
775
|
+
The agents it may start are checked on every call, including the ones a tool starts for it: `write_test` starts
|
|
776
|
+
`forgeqe-test` and, from a recording, `forgeqe-test-plan`; `request_test_data` starts the DB agent (`forgeqe-data`);
|
|
777
|
+
`product_knowledge` starts `forgeqe-investigate` to answer a question and `forgeqe-knowledge` to read the product with
|
|
778
|
+
the model. A run that finds a new defect explains it with `forgeqe-defect-rca` only when the agent may use it; otherwise
|
|
779
|
+
the run goes ahead with the analysis that uses no model. `forgeqe agent check` and the editor say what each capability
|
|
780
|
+
needs.
|
|
773
781
|
|
|
774
782
|
```yaml
|
|
775
783
|
id: checkout-guard
|
|
@@ -3017,6 +3017,80 @@ mobile:
|
|
|
3017
3017
|
<code>run.json</code>, <code>report.html</code>, step screenshots, and for Maestro runs the flow, <code>maestro.log</code> and Maestro's JUnit report.</p>
|
|
3018
3018
|
</div>
|
|
3019
3019
|
</section>
|
|
3020
|
+
<section class="doc" id="doc-docs-mobile-devices">
|
|
3021
|
+
<h4>Devices</h4>
|
|
3022
|
+
<div class="prose"><p>Say what each device is and where it runs; Settings → Mobile edits all of it. ForgeQE builds what Appium, Maestro and
|
|
3023
|
+
the cloud need from that and the app: the W3C capabilities (<code>platformName</code>, <code>appium:udid</code>, <code>bstack:options</code>,
|
|
3024
|
+
<code>LT:Options</code>, …), the cloud's hub address, Maestro's <code>--device</code>, and TestMu's HyperExecute YAML. Nobody types
|
|
3025
|
+
capabilities.</p>
|
|
3026
|
+
<p>Devices on this computer are in forgeqe.yaml:</p>
|
|
3027
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>mobile:
|
|
3028
|
+
parallel: 3 # devices at once, here and on the clouds; default: all of them
|
|
3029
|
+
devices:
|
|
3030
|
+
pixel8: # an emulator
|
|
3031
|
+
type: virtual
|
|
3032
|
+
platform: android
|
|
3033
|
+
udid: emulator-5554
|
|
3034
|
+
iphone-sim: # an iOS simulator (XCUITest boots it)
|
|
3035
|
+
type: virtual
|
|
3036
|
+
platform: ios
|
|
3037
|
+
model: iPhone 15
|
|
3038
|
+
os_version: "17.2"
|
|
3039
|
+
</code></pre></div>
|
|
3040
|
+
<p>Devices on TestMu AI or BrowserStack are in that cloud's own file, the one <code>browser.providers</code> links
|
|
3041
|
+
(<code>.forgeqe/testmu.yaml</code>, <code>.forgeqe/browserstack.yaml</code>), beside its browsers and with the same sign-in. Settings →
|
|
3042
|
+
Mobile shows each file's devices and edits them; Integrations edits the file's browsers and its browser devices.
|
|
3043
|
+
A file with only mobile devices sets up no browser on that cloud.</p>
|
|
3044
|
+
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code># .forgeqe/testmu.yaml
|
|
3045
|
+
provider: testmu
|
|
3046
|
+
remote:
|
|
3047
|
+
username_env: LT_USERNAME # the sign-in, as variable names; values in the credential store
|
|
3048
|
+
access_key_env: LT_ACCESS_KEY
|
|
3049
|
+
mobile:
|
|
3050
|
+
region: us
|
|
3051
|
+
devices:
|
|
3052
|
+
galaxy-s23:
|
|
3053
|
+
type: real # real | virtual (TestMu's emulators and simulators)
|
|
3054
|
+
platform: android
|
|
3055
|
+
model: Galaxy S23
|
|
3056
|
+
os_version: "13"
|
|
3057
|
+
</code></pre></div>
|
|
3058
|
+
<ul>
|
|
3059
|
+
<li><strong>Which devices run.</strong> Every device with <code>enabled</code> on (the default), of the app's platform: an Android workflow
|
|
3060
|
+
skips the iOS devices. <code>--devices pixel8,galaxy</code> (or the agent's <code>devices</code>) names some for one run.</li>
|
|
3061
|
+
<li><strong>At once.</strong> <code>mobile.parallel</code> of them at a time. Devices on this computer running at once get their own driver
|
|
3062
|
+
ports (<code>appium:systemPort</code> 8200+, <code>appium:wdaLocalPort</code> 8100+, <code>appium:mjpegServerPort</code> 9100+) on the one Appium
|
|
3063
|
+
server. On TestMu, <code>mobile.parallel</code> also caps HyperExecute's concurrency.</li>
|
|
3064
|
+
<li><strong>Maestro</strong> runs on each device on this computer, and as one HyperExecute job for TestMu's real devices (and one
|
|
3065
|
+
for its emulators). It does not run on BrowserStack here: replay those with Appium.</li>
|
|
3066
|
+
<li><strong>Results.</strong> Each device's run is in a folder of its own inside the run's folder, with <code>devices.json</code> listing each
|
|
3067
|
+
one's result and report, and a failed device's first failed step. The run passes only when every device passes;
|
|
3068
|
+
<code>--junit</code> has one case per device. Each step line and log line names its device (<code>[pixel8] ✓ 3 tap Sign in</code>).</li>
|
|
3069
|
+
<li><strong>The cloud check.</strong> Before a run, ForgeQE asks each cloud whether it has the real devices the run goes on (those of
|
|
3070
|
+
the app's platform; for explore, the first); for one it does not, it offers the most similar (in a terminal) and
|
|
3071
|
+
swaps only that device, this run only. TestMu's list changes through the day (a model's OS versions come and go),
|
|
3072
|
+
so a pipeline that must not stop can list a pattern (<code>os_version: "1[345]"</code>) or a second device.</li>
|
|
3073
|
+
<li><code>explore</code> works through a goal once, on the first device in use.</li>
|
|
3074
|
+
<li><strong>TestMu's emulators and simulators</strong> are a list of their own, which no API gives: <code>type: virtual</code> devices are not
|
|
3075
|
+
checked, and one TestMu does not have is refused at once with where to look (its capabilities generator). An iOS
|
|
3076
|
+
simulator's <code>os_version: "17"</code> is sent as <code>17.0</code>, which TestMu needs. Every TestMu session says <code>w3c: true</code>.</li>
|
|
3077
|
+
<li><strong>iOS alerts</strong> stay until a step closes them: TestMu accepts every iOS alert by default, which closes a success or
|
|
3078
|
+
error alert before a check can read it. A config that sets <code>appium:autoAcceptAlerts</code> or <code>autoDismissAlerts</code> keeps it.
|
|
3079
|
+
iOS's own permission prompts (notifications, location, tracking) are saved under <code>dismiss</code>, like Android's system
|
|
3080
|
+
dialogs, and a replay closes a <code>dismiss</code> dialog that shows as the app starts; where it never shows, nothing fails.</li>
|
|
3081
|
+
<li><strong>iOS real devices</strong> need a device build (<code>.ipa</code> built for iphoneos); a simulator build (<code>.app</code> in a <code>.zip</code>) runs
|
|
3082
|
+
on TestMu's simulators only. TestMu signs an uploaded <code>.ipa</code> for its devices. iOS lists only the controls on screen
|
|
3083
|
+
to the model and to steps (XCUITest also lists ones scrolled out of view).</li>
|
|
3084
|
+
<li><strong>Secrets</strong> a workflow types are checked before a device is taken: one that is not set, or not listed, stops the
|
|
3085
|
+
replay at once.</li>
|
|
3086
|
+
<li><strong>A control re-drawn under a step</strong> (an alert animating in: Appium's "stale element reference") is looked up again,
|
|
3087
|
+
twice at most, besides the step's own <code>retries</code>.</li>
|
|
3088
|
+
<li><code>mobile.appium.capabilities</code> is still added to every session, for the rare setting ForgeQE does not make.</li>
|
|
3089
|
+
</ul>
|
|
3090
|
+
<p>Without <code>mobile.devices</code>, the device is the one <code>mobile.appium</code> (its URL and capabilities) and <code>mobile.maestro</code>
|
|
3091
|
+
(<code>device</code>, <code>testmu</code>) name, as before.</p>
|
|
3092
|
+
</div>
|
|
3093
|
+
</section>
|
|
3020
3094
|
<section class="doc" id="doc-docs-mobile-workflow-yaml-forgeqe-mobile-v1">
|
|
3021
3095
|
<h4>Workflow YAML (<code>forgeqe-mobile-v1</code>)</h4>
|
|
3022
3096
|
<div class="prose"><div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>format: forgeqe-mobile-v1
|
|
@@ -3796,8 +3870,15 @@ forgeqe jobs shutdown # stop the service; scheduled jobs wait until
|
|
|
3796
3870
|
<code>.forgeqe/agents/<id>.yaml</code>. It uses ForgeQE's own agents, capabilities, skills, knowledge and environments, and is
|
|
3797
3871
|
held in code, on every tool call, to what its manifest allows: which environments and addresses, which capabilities,
|
|
3798
3872
|
which agents it may start, which kinds of action (read, run, change, external) and which a person approves first. An
|
|
3799
|
-
environment named like production is never allowed. It has no shell, web fetch or web search
|
|
3800
|
-
|
|
3873
|
+
environment named like production is never allowed. It has no shell, web fetch or web search unless its manifest says
|
|
3874
|
+
<code>shell: true</code> (then a person approves each command), and uses only the other systems <code>scope.systems</code> names. Writing and
|
|
3875
|
+
healing tests start a coding agent, which a person approves each call of unless <code>permissions.trust</code> lists it.</p>
|
|
3876
|
+
<p>The agents it may start are checked on every call, including the ones a tool starts for it: <code>write_test</code> starts
|
|
3877
|
+
<code>forgeqe-test</code> and, from a recording, <code>forgeqe-test-plan</code>; <code>request_test_data</code> starts the DB agent (<code>forgeqe-data</code>);
|
|
3878
|
+
<code>product_knowledge</code> starts <code>forgeqe-investigate</code> to answer a question and <code>forgeqe-knowledge</code> to read the product with
|
|
3879
|
+
the model. A run that finds a new defect explains it with <code>forgeqe-defect-rca</code> only when the agent may use it; otherwise
|
|
3880
|
+
the run goes ahead with the analysis that uses no model. <code>forgeqe agent check</code> and the editor say what each capability
|
|
3881
|
+
needs.</p>
|
|
3801
3882
|
<div class="code"><div class="code-bar"><i></i><i></i><i></i><span>yaml</span><button class="copy-code" type="button">Copy</button></div><pre><code>id: checkout-guard
|
|
3802
3883
|
name: Checkout guard agent
|
|
3803
3884
|
version: 1.0.0
|