@xera-ai/skills 0.3.0 → 0.4.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/package.json +5 -2
- package/version.json +2 -2
- package/xera-exec.md +10 -0
- package/xera-fetch.md +17 -1
- package/xera-promote.md +8 -0
- package/xera-report.md +8 -0
- package/xera-script.md +10 -0
package/package.json
CHANGED
package/version.json
CHANGED
package/xera-exec.md
CHANGED
|
@@ -16,3 +16,13 @@ The user invoked `/xera-exec <TICKET>`. If no key, ask.
|
|
|
16
16
|
3. Read the latest run directory: `.xera/{{TICKET}}/runs/<latest>/`. Tell the user the runId.
|
|
17
17
|
|
|
18
18
|
4. Suggest: "Diagnose this run with `/xera-report {{TICKET}}`."
|
|
19
|
+
|
|
20
|
+
## Step 5 — Record graph events (v0.6)
|
|
21
|
+
|
|
22
|
+
After Playwright reporter writes `runs/<RUN_ID>/reporter.json`:
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
bun run xera:graph-record exec <TICKET> --run-id <RUN_ID>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Non-fatal.
|
package/xera-fetch.md
CHANGED
|
@@ -32,4 +32,20 @@ If the user did not provide a ticket key, ask: "Which Jira ticket key?" and wait
|
|
|
32
32
|
- First 200 chars of story
|
|
33
33
|
- Whether AC was found in a separate field
|
|
34
34
|
|
|
35
|
-
5.
|
|
35
|
+
5. Extract modified areas (v0.6 graph foundation):
|
|
36
|
+
|
|
37
|
+
After `story.md` is written, follow the `extract-areas.md` prompt template (located at `packages/prompts/extract-areas.md` in the xera install). The prompt instructs you to read the just-fetched ticket's `summary` and `ac` (from `story.md` frontmatter) and output JSON of the form `{ "modifiesAreas": ["slug", ...] }`.
|
|
38
|
+
|
|
39
|
+
Write that JSON to `.xera/<TICKET>/graph-input.json`.
|
|
40
|
+
|
|
41
|
+
6. Record graph events:
|
|
42
|
+
|
|
43
|
+
Run:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
bun run xera:graph-record fetch <TICKET>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
This is non-fatal: if it exits non-zero, log a warning *"Graph event not recorded — run `xera doctor` to rebuild"* but continue. Do not block the fetch flow on this.
|
|
50
|
+
|
|
51
|
+
7. Suggest next step: "Generate Gherkin? Run `/xera-feature {{TICKET}}` or run the full pipeline with `/xera-run {{TICKET}}`."
|
package/xera-promote.md
CHANGED
|
@@ -22,3 +22,11 @@ The user invoked `/xera-promote <TICKET> <PomClassName>`.
|
|
|
22
22
|
git add shared/page-objects/{{POM}}.ts .xera/{{TICKET}}/
|
|
23
23
|
git commit -m "tests: promote {{POM}} from {{TICKET}}"
|
|
24
24
|
```
|
|
25
|
+
|
|
26
|
+
## Step 6 — Record graph events (v0.6)
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bun run xera:graph-record promote --pom-id <ID> --from <OLD> --to <NEW>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
`<ID>` is the sha1 of the POM filename basename (the bin-internal can compute this if `--pom-id` is omitted). Non-fatal.
|
package/xera-report.md
CHANGED
|
@@ -128,3 +128,11 @@ After the heal sub-flow finishes (whether it applied, refused, or errored), cont
|
|
|
128
128
|
- Else run `bun run xera:post {{TICKET}}` (uses REST credentials from `.env`).
|
|
129
129
|
|
|
130
130
|
8. **Summarize** to the user: overall classification, scenario pass/fail counts, the reproduce command (`bunx xera-internal exec {{TICKET}} --replay=<runId>`), and the Jira comment URL if available.
|
|
131
|
+
|
|
132
|
+
## Step 9 — Record graph classification events (v0.6)
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
bun run xera:graph-record classify <TICKET> --run-id <RUN_ID>
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Non-fatal. Note: TEST_OUTDATED detection ships in v0.6.1 — for v0.6.0 this just emits `run.classified` events with existing 4-bucket classifications.
|
package/xera-script.md
CHANGED
|
@@ -44,3 +44,13 @@ The user invoked `/xera-script <TICKET>`. If no key, ask.
|
|
|
44
44
|
|
|
45
45
|
9. Summarize: list of files written, count of new POMs, mention any POM that *looked* reusable but didn't quite fit (suggest the user might want `/xera-promote` later).
|
|
46
46
|
Suggest: "Run the test now with `/xera-exec {{TICKET}}`, or do the whole pipeline with `/xera-run {{TICKET}}`."
|
|
47
|
+
|
|
48
|
+
## Step 10 — Record graph events (v0.6)
|
|
49
|
+
|
|
50
|
+
Run:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
bun run xera:graph-record script <TICKET>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Non-fatal as in `/xera-fetch`.
|