@osfactory/har 1.0.0-rc.1 → 1.0.0-rc.2
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/dist/index.js +587 -523
- package/dist/templates/adaptation-prompt-plugin.md +40 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Adapt the freshly installed `{{PLUGIN_ID}}` plugin so its verification stage(s) run green in this repository.
|
|
2
|
+
|
|
3
|
+
## Your mission
|
|
4
|
+
|
|
5
|
+
`har env add-plugin {{PLUGIN_ID}}` scaffolded files and registered stage(s) {{STAGE_IDS}} in `.har/stages.json` — **scaffolding only**. Nothing was installed or adapted to this app yet, and full verify will fail on the new stage(s) until you finish the steps below.
|
|
6
|
+
|
|
7
|
+
`.har/` is a **configuration surface** — the runtime machinery lives in the HAR
|
|
8
|
+
package behind the `./.har/*.sh` shims. Adapt the plugin through its sanctioned
|
|
9
|
+
homes only: the scaffolded specs/config files, `harness.env` values, and the
|
|
10
|
+
stage entries in `.har/stages.json`. Never edit the shims.
|
|
11
|
+
|
|
12
|
+
{{PACKAGE_MERGE_NOTE}}
|
|
13
|
+
|
|
14
|
+
## Plugin setup steps
|
|
15
|
+
|
|
16
|
+
{{PLUGIN_SETUP_STEPS}}
|
|
17
|
+
|
|
18
|
+
## Adapt to this repository
|
|
19
|
+
|
|
20
|
+
1. Read the plugin docs: `{{DOCS_PATH}}`.
|
|
21
|
+
2. Open every scaffolded file listed below and adapt it to this app — selectors,
|
|
22
|
+
routes, API paths, project-specific commands. Scaffolds describe a generic
|
|
23
|
+
app; they are wrong until proven right here.
|
|
24
|
+
|
|
25
|
+
{{FILES_WRITTEN}}
|
|
26
|
+
|
|
27
|
+
3. Align `harness.env` with the app where the plugin depends on it (for example
|
|
28
|
+
`HARNESS_HEALTH_CHECK_PATH`, ports/preview URL layout). `har env doctor`
|
|
29
|
+
validates the config.
|
|
30
|
+
|
|
31
|
+
## Prove it green
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
har env launch 1 # or ./.har/launch.sh 1
|
|
35
|
+
har env verify 1 --full # must pass INCLUDING {{STAGE_IDS}}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Iterate on the scaffolded files until full verify passes. Artifacts land under
|
|
39
|
+
`.har/artifacts/` if the stage declares them. Do not remove the stage from
|
|
40
|
+
`verificationStages` to get green — adapt it.
|
package/package.json
CHANGED