heinzel-github 0.9.3__tar.gz → 0.9.5__tar.gz
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.
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/CHANGELOG.md +9 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/PKG-INFO +1 -1
- heinzel_github-0.9.5/docs/SCREENSHOT_STORY.md +34 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/capture.json +17 -17
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/index.html +1 -1
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/issue-changes.txt +1 -1
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/merged-work.txt +1 -1
- heinzel_github-0.9.5/docs/assets/screenshots/source-story.md +34 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/workflow-collection.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/workflow-collection.txt +1 -2
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/workflow-context.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/workflow-context.txt +1 -1
- heinzel_github-0.9.5/docs/screenshot-definition.json +7 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/pyproject.toml +1 -1
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/requirements.lock +3 -3
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_gh.py +39 -6
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_service.py +4 -2
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/conftest.py +9 -1
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/integration/capability_test.py +8 -1
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/integration/gh_test.py +32 -4
- heinzel_github-0.9.3/docs/SCREENSHOT_STORY.md +0 -44
- heinzel_github-0.9.3/docs/assets/screenshots/source-story.md +0 -44
- heinzel_github-0.9.3/docs/screenshot-definition.json +0 -7
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/.gitignore +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/LICENSE +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/README.md +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/SCREENSHOTS.md +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/cli.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/issue-changes.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/issues-json.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/issues-json.txt +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/merged-cli.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/merged-cli.txt +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/merged-work.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/ui.png +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/screenshot_fixture.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/screenshots.toml +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/plugin-lock.json +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/__init__.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_adapter.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_client.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_models.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_module.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/_release_feed.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/py.typed +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/skills/review-pull-request/SKILL.md +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/skills/review-pull-request/references/checklist.md +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/acceptance/release_feed_installed_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/fake_gh.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/fixtures/issues.json +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/fixtures/pulls.json +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/integration/cli_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/integration/connector_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/adapter_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/client_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/contract_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/gh_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/models_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/release_feed_test.py +0 -0
- {heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/unit/service_test.py +0 -0
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.5
|
|
4
|
+
|
|
5
|
+
Find gh when Heinzel runs as a background service: a service that launchd starts has a short PATH without Homebrew's folders, so Heinzel did not find gh and every GitHub read failed. Heinzel now looks in Homebrew's folders (`/opt/homebrew/bin`, `/usr/local/bin`) after PATH, and gh runs with its own folder and Homebrew's on PATH.
|
|
6
|
+
Say where Heinzel looked when gh can't be found.
|
|
7
|
+
|
|
8
|
+
## 0.9.4
|
|
9
|
+
|
|
10
|
+
Relock opentelemetry-api to 1.45.2 (CVE-2026-126360).
|
|
11
|
+
|
|
3
12
|
## 0.9.3
|
|
4
13
|
|
|
5
14
|
Relock for Heinzel Core 0.9.40 (its AI extra adds pyjwt) and refresh the gallery.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: heinzel-github
|
|
3
|
-
Version: 0.9.
|
|
3
|
+
Version: 0.9.5
|
|
4
4
|
Summary: Read pull requests and issues from GitHub: the code-host and tracker capabilities.
|
|
5
5
|
Project-URL: Source, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/tree/main/plugins/heinzel-github
|
|
6
6
|
Project-URL: Changelog, https://github.com/helmut-hoffer-von-ankershoffen/heinzel-plugins/blob/main/plugins/heinzel-github/CHANGELOG.md
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## Audience and outcome
|
|
2
|
+
|
|
3
|
+
A developer or team lead considering the GitHub connector can see how a fictional weekly review brings merged pull requests and changed issues into a Core workflow, then inspect the underlying results. The gallery demonstrates read capability through an offline fixture; it does not claim to show a generated review or a live GitHub connection.
|
|
4
|
+
|
|
5
|
+
## Scenes
|
|
6
|
+
|
|
7
|
+
1. **Workflow collection — light:** The Core contracts list and graph introduce the fictional Weekly code review and its place in a workflow.
|
|
8
|
+
2. **Workflow context — dark:** The same fictional workflow’s detail shows its merged-work and issue inputs. It declares a workflow; no report was generated. These two scenes show different useful states of a Core feature, not two captions on the same capture.
|
|
9
|
+
3. **Merged work:** The native app terminal shows fictional merged pull requests, dates and authors through the real adapter and the fixture-only requester.
|
|
10
|
+
4. **Issue changes:** The native app terminal shows fictional issue titles, states and owners through the same adapter. These terminal captures are labeled as terminal results, not feature UI.
|
|
11
|
+
5. **Merged CLI:** A shell result shows the fictional merged-work table.
|
|
12
|
+
6. **Issues JSON:** A shell result shows fictional issue data in JSON for a script or agent.
|
|
13
|
+
|
|
14
|
+
The existing plan already covers these useful behaviors and is preserved. The two terminal cases are different fixture operations, rather than two parameters of one operation. `docs/screenshot_fixture.py` supplies the existing bootstrap, the fictional `acme/widgets` records, the October window, the local contract, and the `showcase.merged` and `showcase.issues` operations. Its `DemoGh` returns fictional responses while the real adapter converts them. These showcase commands are documentation fixtures, not commands supplied by the installed plugin.
|
|
15
|
+
|
|
16
|
+
## Source-bound UI surface inventory
|
|
17
|
+
|
|
18
|
+
- **Core feature UI:** `docs/screenshot_fixture.py` writes the Weekly code review contract with `code-host:read` and `tracker:read` inputs. The existing `docs/screenshots.toml` declares `/contracts` and `/contracts/weekly-code-review` captures. The collection route is a known Core route; the detail route and its heading are evidenced by the existing plan, but their actual rendering remains unverified from the provided source. Capture must confirm both scenes are genuinely useful and distinct.
|
|
19
|
+
- **Core connector/setup UI:** `README.md`, “Is it connected?”, explicitly identifies Settings → Connectors as a surface for login status. `src/heinzel_github/__init__.py` declares settings, offline `@module.health`, and on-demand `@module.health(live=True)`; `src/heinzel_github/_service.py` defines their checks. This is real Core-rendered setup UI, but the supplied fixture and plan do not establish a safe, useful capture of it. The live test asks GitHub and is outside this offline story.
|
|
20
|
+
- **Core operation and information surfaces:** `src/heinzel_github/__init__.py` declares `@module.operation` `info`, `@module.info` `system_info`, and read-only `module.provides` registrations for `code-host` and `tracker`. `src/heinzel_github/_models.py` defines the information and settings fields. The supplied files do not establish a dedicated feature view or route for those contributions; they must not be assumed terminal-only merely because a Page or View is absent. The fixture’s rendered operations do support the explicitly labeled app-terminal results.
|
|
21
|
+
- **External provider UI:** GitHub and `gh auth login` belong to the external provider, not a plugin screen (`README.md`, “Set up”). No external-provider screen is proposed.
|
|
22
|
+
- **Other entry point and conditional service:** `pyproject.toml` declares both `heinzel.modules` and `heinzel.connected_sources` as `github = "heinzel_github"`. The actual module declarations are in `src/heinzel_github/__init__.py`; conditional `GithubReleaseFeeds` registration depends on Core support and captured-source activation. `src/heinzel_github/_release_feed.py` declares `supported_operations = {"release-feed"}` and its lease behavior. The README describes a draft-workflow release feed, but the supplied sources do not establish its rendered route or an offline fixture for it. Do not invent a screen or claim the gallery demonstrates that feed.
|
|
23
|
+
- **Remaining contributions:** The inspected module declarations include a skill (`src/heinzel_github/skills/review-pull-request/SKILL.md`) and services, but no declared navigation, channel, approval, footer, Page or View contribution. This does not rule out generic Core rendering; the Core implementation is not among the provided files.
|
|
24
|
+
|
|
25
|
+
## Fictional fixtures and privacy
|
|
26
|
+
|
|
27
|
+
The repository, people, pull requests, issues and contract are demonstration data from `docs/screenshot_fixture.py`. Fixture login and version values simulate `gh`; they do not establish a real connection. Normal presentation fictionalization maps verified owning-interpreter paths to `/demo-profile/.venv`, and only the verified whole hostname detail in the genuine Doctor row to `demo-host`. These mappings change no SDK health status or remaining detail and establish no privacy acceptance. Unknown identities still fail, and an independent reviewer must inspect every image and transcript. Check paths, hostnames, accounts, tokens, URLs and incidental UI content; do not assume the fixture makes the entire capture private.
|
|
28
|
+
|
|
29
|
+
## Acceptance criteria
|
|
30
|
+
|
|
31
|
+
- Capture the existing isolated bootstrap only during explicit capture; make no network requests. Confirm the two contracts scenes render the stated, distinct feature states in applied light and dark appearances. If the detail route or heading fails, report the unresolved evidence instead of fabricating a replacement.
|
|
32
|
+
- Confirm both app-terminal results and both CLI results contain the expected fictional records, with pull requests excluded from the issue result. Clearly identify the requester and data as fictional; do not imply a generated report, live GitHub response, or production `showcase` command.
|
|
33
|
+
- Reject duplicate captures, caption-only differences, terminal output presented as feature UI, and forged HTML. Review the contact sheet and each image and transcript independently for truthfulness and privacy before publication.
|
|
34
|
+
- The TOML below has been checked against the requested structure by inspection; capture behavior and actual UI rendering have not been executed or verified.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"format": 1,
|
|
3
3
|
"plugin": "heinzel-github",
|
|
4
|
-
"core_version": "0.9.
|
|
5
|
-
"inputs_sha256": "
|
|
4
|
+
"core_version": "0.9.41",
|
|
5
|
+
"inputs_sha256": "ad1f33b581c37600de41ee3ff63d6075069803a4ec26d8b6abcf983125b82755",
|
|
6
6
|
"images": {
|
|
7
|
-
"docs/assets/screenshots/workflow-collection.png": "
|
|
8
|
-
"docs/assets/screenshots/workflow-context.png": "
|
|
7
|
+
"docs/assets/screenshots/workflow-collection.png": "20d8bc0a129f6c3eb4d205b9172065d3e3c4f86b1d311e45c70e0879fd070de8",
|
|
8
|
+
"docs/assets/screenshots/workflow-context.png": "e0fd2cfc84147c4dfd13b095f8a86d4ee451273d9e373596b2085224c9bf732b",
|
|
9
9
|
"docs/assets/screenshots/merged-work.png": "0baf90373abc10ed8a8a1f31909a78f6d4e9875d81b3157c4a0a79733c2218d8",
|
|
10
10
|
"docs/assets/screenshots/issue-changes.png": "bc3311ff71e68815e7488de603f36a4246ef92b55ec598ad0d2f13b988fecdc5",
|
|
11
11
|
"docs/assets/screenshots/merged-cli.png": "787d4a4a73a860dbf4b33fd849f9737e0a58e5495e3e94ea1104a0e60bdf7233",
|
|
@@ -15,18 +15,18 @@
|
|
|
15
15
|
"format": 2,
|
|
16
16
|
"source_story": {
|
|
17
17
|
"path": "source-story.md",
|
|
18
|
-
"sha256": "
|
|
18
|
+
"sha256": "64652889140ce55c6653af1e7f459a842670a3f149f6ff2e1e38eb863476dc96"
|
|
19
19
|
},
|
|
20
20
|
"definition": {
|
|
21
21
|
"format": 1,
|
|
22
22
|
"reviewer": "Codex feature-story agent",
|
|
23
|
-
"source_sha256": "
|
|
23
|
+
"source_sha256": "251108376ff584fc52a7c4877e27f63ab8399a5f1a74a6d48d6d78aa42e4b01e",
|
|
24
24
|
"plan_sha256": "4b2f2733e91a815803ccfec3f3159a7b58900ad41be8c262d4b514b685420e07",
|
|
25
|
-
"story_sha256": "
|
|
25
|
+
"story_sha256": "64652889140ce55c6653af1e7f459a842670a3f149f6ff2e1e38eb863476dc96"
|
|
26
26
|
},
|
|
27
27
|
"plugin": "heinzel-github",
|
|
28
|
-
"core_version": "0.9.
|
|
29
|
-
"inputs_sha256": "
|
|
28
|
+
"core_version": "0.9.41",
|
|
29
|
+
"inputs_sha256": "ad1f33b581c37600de41ee3ff63d6075069803a4ec26d8b6abcf983125b82755",
|
|
30
30
|
"screenshots": [
|
|
31
31
|
{
|
|
32
32
|
"path": "docs/assets/screenshots/workflow-collection.png",
|
|
@@ -60,26 +60,26 @@
|
|
|
60
60
|
}
|
|
61
61
|
],
|
|
62
62
|
"images": {
|
|
63
|
-
"workflow-collection.png": "
|
|
64
|
-
"workflow-context.png": "
|
|
63
|
+
"workflow-collection.png": "20d8bc0a129f6c3eb4d205b9172065d3e3c4f86b1d311e45c70e0879fd070de8",
|
|
64
|
+
"workflow-context.png": "e0fd2cfc84147c4dfd13b095f8a86d4ee451273d9e373596b2085224c9bf732b",
|
|
65
65
|
"merged-work.png": "0baf90373abc10ed8a8a1f31909a78f6d4e9875d81b3157c4a0a79733c2218d8",
|
|
66
66
|
"issue-changes.png": "bc3311ff71e68815e7488de603f36a4246ef92b55ec598ad0d2f13b988fecdc5",
|
|
67
67
|
"merged-cli.png": "787d4a4a73a860dbf4b33fd849f9737e0a58e5495e3e94ea1104a0e60bdf7233",
|
|
68
68
|
"issues-json.png": "e3754138bf5a295204a0f986463e9a54dda6168697fa870ab9c3d41b3d7ff6bd"
|
|
69
69
|
},
|
|
70
70
|
"transcripts": {
|
|
71
|
-
"workflow-collection.txt": "
|
|
72
|
-
"workflow-context.txt": "
|
|
73
|
-
"merged-work.txt": "
|
|
74
|
-
"issue-changes.txt": "
|
|
71
|
+
"workflow-collection.txt": "7bf07efa8b0f774d9007a406516f67bf1bcaa9fcef38dd36f9547cf27f9dba7f",
|
|
72
|
+
"workflow-context.txt": "0b9e9a86afc4e88f06b53a70f0b68795450012744df2a9372a4df1d9f2a320fb",
|
|
73
|
+
"merged-work.txt": "0d862279437ae6aa785304a26a62ae804cd0d575519e8882c5d3436f01d198d1",
|
|
74
|
+
"issue-changes.txt": "4c876e06433160cff86fa6a9e8ed9ffd25c9b728afd1940edb51ef7952949846",
|
|
75
75
|
"merged-cli.txt": "e4df52085e704c49ba37bd75f62656de48cd879405856220a53bcebb7efdebb4",
|
|
76
76
|
"issues-json.txt": "a866c9bd0fe09d6dc1355428d53f5ce30511912b71452e84e925b65b89f104b0"
|
|
77
77
|
},
|
|
78
|
-
"bundle_sha256": "
|
|
78
|
+
"bundle_sha256": "8c95ccfe1d659ee412f5b9e38adc24dd2ec77216ad8bf4bdc05a918a420cb731"
|
|
79
79
|
},
|
|
80
80
|
"privacy_review": {
|
|
81
81
|
"format": 1,
|
|
82
|
-
"bundle_sha256": "
|
|
82
|
+
"bundle_sha256": "8c95ccfe1d659ee412f5b9e38adc24dd2ec77216ad8bf4bdc05a918a420cb731",
|
|
83
83
|
"reviewer": "Codex privacy agent",
|
|
84
84
|
"decision": "approve",
|
|
85
85
|
"checked_images": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>heinzel-github screenshots</title><style>body{font:16px/1.6 system-ui;margin:2rem;background:#faf8f3;color:#263b32}main{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:1rem}figure{margin:0;padding:1rem;background:white;border:1px solid #d8ddd3;border-radius:12px}img{width:100%;height:auto}figcaption{margin-top:.75rem}a:focus-visible{outline:3px solid #a64028}</style><h1>heinzel-github</h1><p>Isolated demonstration profile · Core 0.9.
|
|
1
|
+
<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width"><title>heinzel-github screenshots</title><style>body{font:16px/1.6 system-ui;margin:2rem;background:#faf8f3;color:#263b32}main{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:1rem}figure{margin:0;padding:1rem;background:white;border:1px solid #d8ddd3;border-radius:12px}img{width:100%;height:auto}figcaption{margin-top:.75rem}a:focus-visible{outline:3px solid #a64028}</style><h1>heinzel-github</h1><p>Isolated demonstration profile · Core 0.9.41 · Review these captures before committing. Click an image to inspect it at full size.</p><main><figure><a href="workflow-collection.png"><img src="workflow-collection.png" alt="The fictional weekly code review in the Core workflow graph and contracts list"></a><figcaption>UI · The fictional weekly code review in the Core workflow graph and contracts list</figcaption></figure><figure><a href="workflow-context.png"><img src="workflow-context.png" alt="Fictional weekly review declares merged-work and issue inputs; no report was generated"></a><figcaption>UI · Fictional weekly review declares merged-work and issue inputs; no report was generated</figcaption></figure><figure><a href="merged-work.png"><img src="merged-work.png" alt="Fictional merged pull requests in the app terminal, using a fixture-only requester and the real adapter"></a><figcaption>UI · Fictional merged pull requests in the app terminal, using a fixture-only requester and the real adapter</figcaption></figure><figure><a href="issue-changes.png"><img src="issue-changes.png" alt="Fictional issue changes, owners and states in the app terminal, using a fixture-only requester"></a><figcaption>UI · Fictional issue changes, owners and states in the app terminal, using a fixture-only requester</figcaption></figure><figure><a href="merged-cli.png"><img src="merged-cli.png" alt="Read fictional merged work in the shell with a fixture-only requester and the real adapter"></a><figcaption>CLI · Read fictional merged work in the shell with a fixture-only requester and the real adapter</figcaption></figure><figure><a href="issues-json.png"><img src="issues-json.png" alt="Fictional issue results as JSON for scripts and agents, using a fixture-only requester"></a><figcaption>CLI · Fictional issue results as JSON for scripts and agents, using a fixture-only requester</figcaption></figure></main></html>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## Audience and outcome
|
|
2
|
+
|
|
3
|
+
A developer or team lead considering the GitHub connector can see how a fictional weekly review brings merged pull requests and changed issues into a Core workflow, then inspect the underlying results. The gallery demonstrates read capability through an offline fixture; it does not claim to show a generated review or a live GitHub connection.
|
|
4
|
+
|
|
5
|
+
## Scenes
|
|
6
|
+
|
|
7
|
+
1. **Workflow collection — light:** The Core contracts list and graph introduce the fictional Weekly code review and its place in a workflow.
|
|
8
|
+
2. **Workflow context — dark:** The same fictional workflow’s detail shows its merged-work and issue inputs. It declares a workflow; no report was generated. These two scenes show different useful states of a Core feature, not two captions on the same capture.
|
|
9
|
+
3. **Merged work:** The native app terminal shows fictional merged pull requests, dates and authors through the real adapter and the fixture-only requester.
|
|
10
|
+
4. **Issue changes:** The native app terminal shows fictional issue titles, states and owners through the same adapter. These terminal captures are labeled as terminal results, not feature UI.
|
|
11
|
+
5. **Merged CLI:** A shell result shows the fictional merged-work table.
|
|
12
|
+
6. **Issues JSON:** A shell result shows fictional issue data in JSON for a script or agent.
|
|
13
|
+
|
|
14
|
+
The existing plan already covers these useful behaviors and is preserved. The two terminal cases are different fixture operations, rather than two parameters of one operation. `docs/screenshot_fixture.py` supplies the existing bootstrap, the fictional `acme/widgets` records, the October window, the local contract, and the `showcase.merged` and `showcase.issues` operations. Its `DemoGh` returns fictional responses while the real adapter converts them. These showcase commands are documentation fixtures, not commands supplied by the installed plugin.
|
|
15
|
+
|
|
16
|
+
## Source-bound UI surface inventory
|
|
17
|
+
|
|
18
|
+
- **Core feature UI:** `docs/screenshot_fixture.py` writes the Weekly code review contract with `code-host:read` and `tracker:read` inputs. The existing `docs/screenshots.toml` declares `/contracts` and `/contracts/weekly-code-review` captures. The collection route is a known Core route; the detail route and its heading are evidenced by the existing plan, but their actual rendering remains unverified from the provided source. Capture must confirm both scenes are genuinely useful and distinct.
|
|
19
|
+
- **Core connector/setup UI:** `README.md`, “Is it connected?”, explicitly identifies Settings → Connectors as a surface for login status. `src/heinzel_github/__init__.py` declares settings, offline `@module.health`, and on-demand `@module.health(live=True)`; `src/heinzel_github/_service.py` defines their checks. This is real Core-rendered setup UI, but the supplied fixture and plan do not establish a safe, useful capture of it. The live test asks GitHub and is outside this offline story.
|
|
20
|
+
- **Core operation and information surfaces:** `src/heinzel_github/__init__.py` declares `@module.operation` `info`, `@module.info` `system_info`, and read-only `module.provides` registrations for `code-host` and `tracker`. `src/heinzel_github/_models.py` defines the information and settings fields. The supplied files do not establish a dedicated feature view or route for those contributions; they must not be assumed terminal-only merely because a Page or View is absent. The fixture’s rendered operations do support the explicitly labeled app-terminal results.
|
|
21
|
+
- **External provider UI:** GitHub and `gh auth login` belong to the external provider, not a plugin screen (`README.md`, “Set up”). No external-provider screen is proposed.
|
|
22
|
+
- **Other entry point and conditional service:** `pyproject.toml` declares both `heinzel.modules` and `heinzel.connected_sources` as `github = "heinzel_github"`. The actual module declarations are in `src/heinzel_github/__init__.py`; conditional `GithubReleaseFeeds` registration depends on Core support and captured-source activation. `src/heinzel_github/_release_feed.py` declares `supported_operations = {"release-feed"}` and its lease behavior. The README describes a draft-workflow release feed, but the supplied sources do not establish its rendered route or an offline fixture for it. Do not invent a screen or claim the gallery demonstrates that feed.
|
|
23
|
+
- **Remaining contributions:** The inspected module declarations include a skill (`src/heinzel_github/skills/review-pull-request/SKILL.md`) and services, but no declared navigation, channel, approval, footer, Page or View contribution. This does not rule out generic Core rendering; the Core implementation is not among the provided files.
|
|
24
|
+
|
|
25
|
+
## Fictional fixtures and privacy
|
|
26
|
+
|
|
27
|
+
The repository, people, pull requests, issues and contract are demonstration data from `docs/screenshot_fixture.py`. Fixture login and version values simulate `gh`; they do not establish a real connection. Normal presentation fictionalization maps verified owning-interpreter paths to `/demo-profile/.venv`, and only the verified whole hostname detail in the genuine Doctor row to `demo-host`. These mappings change no SDK health status or remaining detail and establish no privacy acceptance. Unknown identities still fail, and an independent reviewer must inspect every image and transcript. Check paths, hostnames, accounts, tokens, URLs and incidental UI content; do not assume the fixture makes the entire capture private.
|
|
28
|
+
|
|
29
|
+
## Acceptance criteria
|
|
30
|
+
|
|
31
|
+
- Capture the existing isolated bootstrap only during explicit capture; make no network requests. Confirm the two contracts scenes render the stated, distinct feature states in applied light and dark appearances. If the detail route or heading fails, report the unresolved evidence instead of fabricating a replacement.
|
|
32
|
+
- Confirm both app-terminal results and both CLI results contain the expected fictional records, with pull requests excluded from the issue result. Clearly identify the requester and data as fictional; do not imply a generated report, live GitHub response, or production `showcase` command.
|
|
33
|
+
- Reject duplicate captures, caption-only differences, terminal output presented as feature UI, and forged HTML. Review the contact sheet and each image and transcript independently for truthfulness and privacy before publication.
|
|
34
|
+
- The TOML below has been checked against the requested structure by inspection; capture behavior and actual UI rendering have not been executed or verified.
|
{heinzel_github-0.9.3 → heinzel_github-0.9.5}/docs/assets/screenshots/workflow-collection.png
RENAMED
|
Binary file
|
|
Binary file
|
|
@@ -37,7 +37,7 @@ the packet the agent gets; nothing is spent
|
|
|
37
37
|
hz heinzel wake me:weekly-code-review
|
|
38
38
|
Run in terminal
|
|
39
39
|
draft it now, at most 0.5 USD; the draft is saved under /demo-profile/data_dir/workflow/drafts/me-weekly-code-review
|
|
40
|
-
v0.9.
|
|
40
|
+
v0.9.41
|
|
41
41
|
Plugins changed, warning
|
|
42
42
|
Updates, off
|
|
43
43
|
0
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"format": 1,
|
|
3
|
+
"reviewer": "Codex feature-story agent",
|
|
4
|
+
"source_sha256": "251108376ff584fc52a7c4877e27f63ab8399a5f1a74a6d48d6d78aa42e4b01e",
|
|
5
|
+
"plan_sha256": "4b2f2733e91a815803ccfec3f3159a7b58900ad41be8c262d4b514b685420e07",
|
|
6
|
+
"story_sha256": "64652889140ce55c6653af1e7f459a842670a3f149f6ff2e1e38eb863476dc96"
|
|
7
|
+
}
|
|
@@ -640,9 +640,9 @@ nodejs-wheel-binaries==24.19.0 \
|
|
|
640
640
|
--hash=sha256:d9074c665ea68b04e183d82482c86dc907d3a9bd15eb6cf85542cb785266bb36 \
|
|
641
641
|
--hash=sha256:db217eef8cab8551667863379b08db4d9067403f6cbbe87481eb40edceb8aa9b \
|
|
642
642
|
--hash=sha256:e12cbfd69089504e42fb14194ce734a9dcf3eb38c820ca63dd511d36fb964e9c
|
|
643
|
-
opentelemetry-api==1.45.
|
|
644
|
-
--hash=sha256:
|
|
645
|
-
--hash=sha256:
|
|
643
|
+
opentelemetry-api==1.45.2 \
|
|
644
|
+
--hash=sha256:2cbd737377e710ee740d261c94e93fa0f08e6d037c18f17513cc0a2d94479a34 \
|
|
645
|
+
--hash=sha256:d7b0008e21e5fd61cbe7a7f34ca3b6905a78ab677d9bc395e299359c75cda6b4
|
|
646
646
|
packaging==26.3 \
|
|
647
647
|
--hash=sha256:94edc256424af38762eb31306eed28beb9f0efc50a8837492c9d6fd6004aed79 \
|
|
648
648
|
--hash=sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c
|
|
@@ -70,6 +70,9 @@ FIXED = {
|
|
|
70
70
|
}
|
|
71
71
|
"""Set for every call: never interactive, no pager, no colours, no update notices."""
|
|
72
72
|
_PROXIES = frozenset({"HTTPS_PROXY", "HTTP_PROXY", "NO_PROXY", "ALL_PROXY"})
|
|
73
|
+
HOMEBREW_BINS = ("/opt/homebrew/bin", "/usr/local/bin")
|
|
74
|
+
"""Where Homebrew installs `gh` on Apple silicon and on Intel. Searched after `PATH`: a service that launchd or the
|
|
75
|
+
desktop app starts runs with a short `PATH` (`/usr/bin:/bin:/usr/sbin:/sbin`) that lacks them."""
|
|
73
76
|
_VERSION = re.compile(r"\bgh version v?(\d{1,4})\.(\d{1,4})\.(\d{1,6})")
|
|
74
77
|
_HOST_KEY = re.compile(r"^([A-Za-z0-9.-]+):\s*$")
|
|
75
78
|
_USER = re.compile(r"^[ \t]+user:[ \t]*['\"]?([A-Za-z0-9](?:[A-Za-z0-9-]{0,38}))['\"]?[ \t]*$")
|
|
@@ -104,6 +107,26 @@ def absolute_path(search: str) -> str:
|
|
|
104
107
|
return os.pathsep.join(entry for entry in search.split(os.pathsep) if entry and Path(entry).is_absolute())
|
|
105
108
|
|
|
106
109
|
|
|
110
|
+
def search_path(search: str, *extra: str) -> str:
|
|
111
|
+
"""The absolute entries of `search`, then `extra` and `HOMEBREW_BINS`, each once."""
|
|
112
|
+
entries = [entry for entry in absolute_path(search).split(os.pathsep) if entry]
|
|
113
|
+
return os.pathsep.join(dict.fromkeys([*entries, *extra, *HOMEBREW_BINS]))
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
def where_looked() -> str:
|
|
117
|
+
"""Where `Gh.executable` looks for a program name, for a person."""
|
|
118
|
+
return f"on PATH and in {' and '.join(HOMEBREW_BINS)}"
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
def own_directories(path: str) -> tuple[str, str]:
|
|
122
|
+
"""The directory `path` is in and, for a link such as Homebrew's, the directory it links to."""
|
|
123
|
+
own = Path(path)
|
|
124
|
+
try:
|
|
125
|
+
return str(own.parent), str(own.resolve(strict=True).parent)
|
|
126
|
+
except (OSError, RuntimeError):
|
|
127
|
+
return str(own.parent), str(own.parent)
|
|
128
|
+
|
|
129
|
+
|
|
107
130
|
def environment(host: str, source: Mapping[str, str] | None = None) -> dict[str, str]:
|
|
108
131
|
"""Gh's environment: the allowlisted variables of `source` (the process's), pinned to `host`, never interactive."""
|
|
109
132
|
variables = os.environ if source is None else source
|
|
@@ -202,17 +225,19 @@ class Gh:
|
|
|
202
225
|
self._versions: dict[str, tuple[int, int, int] | None] = {}
|
|
203
226
|
|
|
204
227
|
def executable(self) -> str | None:
|
|
205
|
-
"""The absolute path of `github.gh`, looked up on `PATH`
|
|
228
|
+
"""The absolute path of `github.gh`, looked up on `PATH` and in `HOMEBREW_BINS`; None if there is none.
|
|
206
229
|
|
|
207
|
-
Relative `PATH` entries (`.`) are skipped, so a
|
|
230
|
+
A name is looked up, an absolute path taken as it is. Relative `PATH` entries (`.`) are skipped, so a
|
|
231
|
+
repository can't put its own `gh` first.
|
|
208
232
|
"""
|
|
209
|
-
found = shutil.which(self._settings.gh, path=
|
|
233
|
+
found = shutil.which(self._settings.gh, path=search_path(os.environ.get("PATH", os.defpath)))
|
|
210
234
|
return found if found is not None and Path(found).is_absolute() else None
|
|
211
235
|
|
|
212
236
|
def _require(self) -> str:
|
|
213
237
|
if (path := self.executable()) is None:
|
|
214
238
|
msg = (
|
|
215
|
-
f"
|
|
239
|
+
f"Heinzel can't find the GitHub CLI `{self._settings.gh}`: it looked {where_looked()}; install it "
|
|
240
|
+
f"from {INSTALL}, then run "
|
|
216
241
|
f"`{login_fix(self._settings.host)}`."
|
|
217
242
|
)
|
|
218
243
|
raise HeinzelError(msg)
|
|
@@ -304,8 +329,16 @@ class Gh:
|
|
|
304
329
|
return self._execute(path, args, timeout, host)
|
|
305
330
|
|
|
306
331
|
def execution_environment(self, host: str) -> dict[str, str]:
|
|
307
|
-
"""Return the allowlisted CLI environment; captured leases override it with their pinned credentials.
|
|
308
|
-
|
|
332
|
+
"""Return the allowlisted CLI environment; captured leases override it with their pinned credentials.
|
|
333
|
+
|
|
334
|
+
Its `PATH` also holds gh's own directories and `HOMEBREW_BINS`, after `PATH`, so what gh starts (git, a
|
|
335
|
+
credential helper) is found under a launchd `PATH` too.
|
|
336
|
+
"""
|
|
337
|
+
env = environment(host)
|
|
338
|
+
path = self.executable()
|
|
339
|
+
extra = own_directories(path) if path is not None else ()
|
|
340
|
+
env["PATH"] = search_path(env.get("PATH", ""), *extra)
|
|
341
|
+
return env
|
|
309
342
|
|
|
310
343
|
def _execute(self, path: str, args: Sequence[str], timeout: float, host: str | None = None) -> GhResult:
|
|
311
344
|
deadline = time.monotonic() + timeout
|
|
@@ -6,7 +6,7 @@ from typing import Protocol
|
|
|
6
6
|
from heinzel import Check, HeinzelError, Kernel, Login, Status, __version__
|
|
7
7
|
|
|
8
8
|
from heinzel_github._client import GhClient, GhLoginError, said
|
|
9
|
-
from heinzel_github._gh import INSTALL, MINIMUM_VERSION, Gh, login_fix, version_text
|
|
9
|
+
from heinzel_github._gh import INSTALL, MINIMUM_VERSION, Gh, login_fix, version_text, where_looked
|
|
10
10
|
from heinzel_github._models import GithubAbout, GithubSettings
|
|
11
11
|
|
|
12
12
|
DISTRIBUTION = "heinzel-github"
|
|
@@ -64,7 +64,9 @@ class GithubService:
|
|
|
64
64
|
return Check(
|
|
65
65
|
name="gh",
|
|
66
66
|
status=Status.DEGRADED,
|
|
67
|
-
detail=
|
|
67
|
+
detail=(
|
|
68
|
+
f"Heinzel can't find {name}, the GitHub CLI: it looked {where_looked()}; every read goes through it"
|
|
69
|
+
),
|
|
68
70
|
fix=f"install gh ({INSTALL}), then {login_fix(host)}",
|
|
69
71
|
login=unknown,
|
|
70
72
|
)
|
|
@@ -22,7 +22,7 @@ import pytest
|
|
|
22
22
|
from heinzel import Config, HeinzelError, Kernel, Module, ModuleRecord, Settings
|
|
23
23
|
from heinzel.kernel import Origin, discover
|
|
24
24
|
|
|
25
|
-
from heinzel_github import Gh, GhResult
|
|
25
|
+
from heinzel_github import Gh, GhResult, _gh
|
|
26
26
|
|
|
27
27
|
TESTS = Path(__file__).parent
|
|
28
28
|
FIXTURES = TESTS / "fixtures"
|
|
@@ -202,6 +202,14 @@ class FakeGhCli:
|
|
|
202
202
|
return [call for call in self.calls() if call["argv"][:1] == ["api"]]
|
|
203
203
|
|
|
204
204
|
|
|
205
|
+
@pytest.fixture(autouse=True)
|
|
206
|
+
def no_homebrew(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> tuple[str, str]:
|
|
207
|
+
"""Empty stand-ins for Homebrew's directories, so the host's own gh never answers a test."""
|
|
208
|
+
bins = (str(tmp_path / "homebrew-arm" / "bin"), str(tmp_path / "homebrew-intel" / "bin"))
|
|
209
|
+
monkeypatch.setattr(_gh, "HOMEBREW_BINS", bins)
|
|
210
|
+
return bins
|
|
211
|
+
|
|
212
|
+
|
|
205
213
|
def install_gh(directory: Path, shebang: str = sys.executable) -> Path:
|
|
206
214
|
"""Write `tests/fake_gh.py` as an executable `gh` in `directory`/bin, started by `shebang`.
|
|
207
215
|
|
|
@@ -9,12 +9,18 @@ from heinzel import CodeHost, Config, Issue, Kernel, Module, PullRequest, Tracke
|
|
|
9
9
|
from heinzel.heads.cli import build
|
|
10
10
|
from typer.testing import CliRunner
|
|
11
11
|
|
|
12
|
+
from heinzel_github import _gh
|
|
13
|
+
|
|
12
14
|
pytestmark = pytest.mark.integration
|
|
13
15
|
|
|
14
16
|
BOUND = Config(files=(), data={"capabilities": {"code-host": "github", "tracker": "github"}})
|
|
15
17
|
SINCE, UNTIL = "2026-10-01T00:00:00+00:00", "2026-11-01T00:00:00+00:00"
|
|
16
18
|
PULLS, ISSUES = "repos/acme/widgets/pulls", "repos/acme/widgets/issues"
|
|
17
|
-
|
|
19
|
+
UNUSED_BINS = ("/nonexistent-homebrew/bin", "/nonexistent-local/bin")
|
|
20
|
+
INSTALL_GH = (
|
|
21
|
+
"Heinzel can't find the GitHub CLI `gh`: it looked on PATH and in /nonexistent-homebrew/bin and "
|
|
22
|
+
"/nonexistent-local/bin; install it from https://cli.github.com,"
|
|
23
|
+
)
|
|
18
24
|
LEAKED = "ghp_" + "Q7w8E9r0" * 5 # made up, shaped like a classic token
|
|
19
25
|
|
|
20
26
|
|
|
@@ -105,6 +111,7 @@ def test_an_error_from_github_is_shown_redacted_and_clean(github_kernel, fake_gh
|
|
|
105
111
|
|
|
106
112
|
def test_without_gh_the_command_and_doctor_say_how_to_install_it(github_kernel, tmp_path, monkeypatch):
|
|
107
113
|
monkeypatch.setenv("PATH", str(tmp_path))
|
|
114
|
+
monkeypatch.setattr(_gh, "HOMEBREW_BINS", UNUSED_BINS) # short, so the message fits a line
|
|
108
115
|
kernel = github_kernel(BOUND, digest=digest())
|
|
109
116
|
code, output = hz(kernel, "digest", "merged", "acme/widgets", SINCE, UNTIL)
|
|
110
117
|
assert code != 0
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
|
+
import re
|
|
5
6
|
import signal
|
|
6
7
|
import subprocess
|
|
7
8
|
import time
|
|
@@ -36,7 +37,7 @@ def test_gh_gets_exactly_the_arguments_and_its_answer_comes_back(fake_gh_cli):
|
|
|
36
37
|
assert not list(Path.home().glob("pwned"))
|
|
37
38
|
|
|
38
39
|
|
|
39
|
-
def test_gh_sees_an_allowlisted_environment_pinned_to_the_host(fake_gh_cli, monkeypatch):
|
|
40
|
+
def test_gh_sees_an_allowlisted_environment_pinned_to_the_host(fake_gh_cli, no_homebrew, monkeypatch):
|
|
40
41
|
monkeypatch.setenv("HZ_CREDENTIAL_GITHUB_GITHUB_TOKEN", "made-up-secret")
|
|
41
42
|
monkeypatch.setenv("GH_DEBUG", "api")
|
|
42
43
|
monkeypatch.setenv("GODEBUG", "http2debug=2")
|
|
@@ -51,7 +52,8 @@ def test_gh_sees_an_allowlisted_environment_pinned_to_the_host(fake_gh_cli, monk
|
|
|
51
52
|
assert env["GH_PROMPT_DISABLED"] == "1"
|
|
52
53
|
assert env["GH_TOKEN"] == "made-up-gh-token" # gh's own login, for gh
|
|
53
54
|
assert env["LC_ALL"] == "C"
|
|
54
|
-
|
|
55
|
+
bins = [str(fake_gh_cli.bin), str(fake_gh_cli.bin.resolve()), *no_homebrew]
|
|
56
|
+
assert env["PATH"] == os.pathsep.join(dict.fromkeys(bins))
|
|
55
57
|
for name in ("HZ_CREDENTIAL_GITHUB_GITHUB_TOKEN", "GH_DEBUG", "GODEBUG", "AWS_SECRET_ACCESS_KEY"):
|
|
56
58
|
assert name not in env
|
|
57
59
|
|
|
@@ -230,10 +232,11 @@ def test_a_huge_hosts_file_is_not_read_to_the_end(fake_gh_cli, monkeypatch):
|
|
|
230
232
|
assert not gh().logged_in()
|
|
231
233
|
|
|
232
234
|
|
|
233
|
-
def test_without_gh_on_the_path_it_is_missing_and_says_where_to_get_it(tmp_path, monkeypatch):
|
|
235
|
+
def test_without_gh_on_the_path_it_is_missing_and_says_where_to_get_it(tmp_path, no_homebrew, monkeypatch):
|
|
234
236
|
monkeypatch.setenv("PATH", str(tmp_path))
|
|
235
237
|
assert gh().executable() is None
|
|
236
|
-
|
|
238
|
+
looked = f"it looked on PATH and in {no_homebrew[0]} and {no_homebrew[1]}; install it from https://cli.github.com"
|
|
239
|
+
with pytest.raises(HeinzelError, match=re.escape(looked)):
|
|
237
240
|
gh().run(call(), host="github.com", timeout=10)
|
|
238
241
|
|
|
239
242
|
|
|
@@ -242,3 +245,28 @@ def test_a_gh_that_cannot_start_is_a_clear_error(tmp_path, monkeypatch, install_
|
|
|
242
245
|
monkeypatch.setenv("PATH", str(tmp_path / "bin"))
|
|
243
246
|
with pytest.raises(HeinzelError, match="Could not start the GitHub CLI"):
|
|
244
247
|
gh().version()
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
LAUNCHD_DIRS = ("usr/bin", "bin", "usr/sbin", "sbin")
|
|
251
|
+
"""The PATH a launchd service gets when its plist sets none (`/usr/bin:/bin:/usr/sbin:/sbin`), no Homebrew directory in
|
|
252
|
+
it. The test uses empty stand-ins under its own directory: a CI runner may have a gh of its own in `/usr/bin`."""
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
@pytest.mark.parametrize("which", [0, 1], ids=["Apple silicon", "Intel"])
|
|
256
|
+
def test_gh_where_homebrew_installs_it_is_found_and_run_under_a_launchd_path(
|
|
257
|
+
fake_gh_cli, no_homebrew, monkeypatch, tmp_path, which
|
|
258
|
+
):
|
|
259
|
+
"""Homebrew links `bin/gh` to its Cellar; a service started by launchd has none of Homebrew's bins on PATH."""
|
|
260
|
+
link = Path(no_homebrew[which]) / "gh"
|
|
261
|
+
link.parent.mkdir(parents=True)
|
|
262
|
+
link.symlink_to(fake_gh_cli.bin / "gh")
|
|
263
|
+
launchd = [str(tmp_path / "launchd" / directory) for directory in LAUNCHD_DIRS]
|
|
264
|
+
for directory in launchd:
|
|
265
|
+
Path(directory).mkdir(parents=True)
|
|
266
|
+
monkeypatch.setenv("PATH", os.pathsep.join(launchd))
|
|
267
|
+
fake_gh_cli.answer(PATH, stdout="[]")
|
|
268
|
+
assert gh().executable() == str(link)
|
|
269
|
+
assert gh().run(call(), host="github.com", timeout=10).returncode == 0
|
|
270
|
+
child = fake_gh_cli.api_calls()[-1]["env"]["PATH"].split(os.pathsep)
|
|
271
|
+
assert child[:4] == launchd
|
|
272
|
+
assert {str(link.parent), str(fake_gh_cli.bin.resolve())} <= set(child)
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
## Audience
|
|
2
|
-
|
|
3
|
-
A developer or team lead deciding whether GitHub pull requests and issue changes can feed a Heinzelmännchen workflow without building a GitHub integration themselves.
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Show a fictional weekly review taking shape: first its place in the workflow collection, then the inputs it declares, then the merged work and issue changes those inputs can return. The workflow is a declaration, not a completed report. The example requester is documentation-only; the installed GitHub adapter performs the conversions over fictional responses (`docs/screenshot_fixture.py`: `CONTRACT`, `DemoGh`, `showcase`, `merged`, and `issues`).
|
|
8
|
-
|
|
9
|
-
## Scenes
|
|
10
|
-
|
|
11
|
-
1. **Workflow collection — light.** Find “Weekly code review” among Core's contracts and graph. This establishes where a team can discover the fictional workflow.
|
|
12
|
-
2. **Workflow context — dark.** Inspect the same workflow's declared merged-work and issue inputs, its goal and its expected notes. This is a distinct, useful state of the Core workflow UI; it does not claim a report was generated.
|
|
13
|
-
3. **Merged work — light app terminal.** Run the fixture-only `showcase merged acme/widgets` requester and inspect fictional merged pull requests and authors. This is terminal output inside the app, not a feature UI.
|
|
14
|
-
4. **Issue changes — dark app terminal.** Run `showcase issues acme/widgets` and inspect fictional issue titles, states and owners. This is a different result, not a second view of the same table.
|
|
15
|
-
5. **Merged work — shell.** Show the same useful capability through a native CLI result, identifying the requester and data as fictional.
|
|
16
|
-
6. **Issue changes as JSON — shell.** Show the other fixture operation in machine-readable form for scripts and agents.
|
|
17
|
-
|
|
18
|
-
The two workflow scenes are genuine Core feature UI scenes; the two app-terminal scenes supplement them. The existing plan already demonstrates useful behavior and is preserved. Its `/contracts/weekly-code-review` detail route and its exact rendered contents are evidenced by the existing plan, not by Core implementation supplied here; capture must verify that route and the intended contents before acceptance (`docs/screenshots.toml`, `docs/screenshot_fixture.py`).
|
|
19
|
-
|
|
20
|
-
## Fictional fixtures
|
|
21
|
-
|
|
22
|
-
The existing `docs/screenshot_fixture.py` creates an isolated local demonstration contract, binds both capabilities to GitHub, injects `DemoGh`, and supplies fictional `acme/widgets` pull requests and issues for October 2026. The fake requester operations are not shipped GitHub plugin commands. The fixture's asserted login and executable are demonstration values, not evidence of a real connection. Its contract declares inputs and output but explicitly says no report has been generated. No new fixture file is assumed.
|
|
23
|
-
|
|
24
|
-
## Source-bound UI surface inventory
|
|
25
|
-
|
|
26
|
-
- **Plugin entrypoints:** `pyproject.toml` declares `heinzel.modules` and `heinzel.connected_sources`, both targeting `heinzel_github`. `src/heinzel_github/_module.py` declares the `github` module; `src/heinzel_github/__init__.py` registers settings, services, a read-only skill, the `code-host` and `tracker` read adapters, `info`, system info, offline health and live health. No plugin Page, View, navigation, channel, approval, setup or footer contribution is declared in the supplied plugin source. That absence alone does not establish that there is no feature UI.
|
|
27
|
-
- **Core feature UI:** The supplied fixture declares a responsibility with two capability inputs and a notes output; the existing plan identifies the Core contracts collection and detail views (`docs/screenshot_fixture.py`: `CONTRACT`; `docs/screenshots.toml`: `workflow-collection`, `workflow-context`). These are Core-rendered workflow surfaces, not GitHub-owned screens. The exact detail route and rendering remain capture-time evidence to verify.
|
|
28
|
-
- **Core connection and diagnostics surfaces:** `README.md` identifies Settings → Connectors as a Core UI for connection status; `src/heinzel_github/__init__.py` and `_service.py` contribute offline and live health checks, including binding details. The supplied sources do not establish the precise route or controls for capturing these surfaces, so the plan does not invent them. Live testing asks GitHub and is not part of this offline story.
|
|
29
|
-
- **Operations and info:** `@module.operation info` and `@module.info system_info` expose plugin and host details (`src/heinzel_github/__init__.py`, `_service.py`: `about`). Core may render contributions beyond a terminal; the supplied source does not establish a specific operation or info UI route. The fixture's `showcase` operations and their Rich table renderers are separately declared in `docs/screenshot_fixture.py`.
|
|
30
|
-
- **Release feed:** Conditional registration of `GithubReleaseFeeds` depends on Core support and an active captured source (`src/heinzel_github/__init__.py`; `src/heinzel_github/_release_feed.py`: `GithubReleaseFeeds`). `README.md` describes its use in a draft workflow, but the supplied evidence does not establish a capturable UI or an offline release-feed fixture. Do not imply this gallery demonstrates it.
|
|
31
|
-
- **External provider UI:** GitHub and `gh` own authentication (`README.md`, `src/heinzel_github/_gh.py`); no GitHub website or login screen is proposed. `README.md` describes capability use from CLI, MCP and REST, but does not establish separate plugin screens for them.
|
|
32
|
-
- **Terminal output:** The fixture declares two requester operations and table renderers; the plan also requests JSON for issues. These are useful terminal results, not proof that the adapter is CLI-only (`docs/screenshot_fixture.py`; `docs/screenshots.toml`).
|
|
33
|
-
|
|
34
|
-
## Privacy pitfalls
|
|
35
|
-
|
|
36
|
-
Use only the isolated fictional profile and fixture data during capture. Check every image and transcript for real account names, hostnames, paths, tokens, repository names, links, browser chrome and other identifying material; unknown identities fail review. Normal presentation fictionalization is explicitly limited as follows: verified owning-interpreter paths become `/demo-profile/.venv`, and only the verified whole hostname detail in the genuine Doctor row becomes `demo-host`. These mappings change no SDK health status or remaining detail and establish no privacy acceptance. Independent review must inspect every image and transcript. Do not replace other values on the assumption that they are safe.
|
|
37
|
-
|
|
38
|
-
## Acceptance criteria
|
|
39
|
-
|
|
40
|
-
- Capture the existing six distinct scenes with the actual Core UI and terminal output; no forged HTML, duplicate captures or caption-only differences. Both workflow views must be useful and readable, and the collection and detail must actually show the fictional workflow and its declared inputs.
|
|
41
|
-
- Apply light and dark appearances as specified and verify their rendered appearance. Confirm that the CLI and app-terminal results show the fixture's relevant pull requests and issues, and that JSON is valid and useful. Terminal actions already wait for completion; do not add waits for individual table cells.
|
|
42
|
-
- Captions identify demo data and the fixture-only requester where relevant. Do not describe the declared workflow as an executed report, the mock login as a real account, or terminal output as a plugin feature screen.
|
|
43
|
-
- Verify the detail route and accessible heading during capture. If Core does not render the claimed detail or the route fails, do not substitute an invented screen; resolve the evidence and revise the plan.
|
|
44
|
-
- Review all images and transcripts independently for privacy and truthful representation before publication. The plan has been checked against the requested TOML structure by inspection only; no parser, capture, project code or network call was run.
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
## Audience
|
|
2
|
-
|
|
3
|
-
A developer or team lead deciding whether GitHub pull requests and issue changes can feed a Heinzelmännchen workflow without building a GitHub integration themselves.
|
|
4
|
-
|
|
5
|
-
## Outcome
|
|
6
|
-
|
|
7
|
-
Show a fictional weekly review taking shape: first its place in the workflow collection, then the inputs it declares, then the merged work and issue changes those inputs can return. The workflow is a declaration, not a completed report. The example requester is documentation-only; the installed GitHub adapter performs the conversions over fictional responses (`docs/screenshot_fixture.py`: `CONTRACT`, `DemoGh`, `showcase`, `merged`, and `issues`).
|
|
8
|
-
|
|
9
|
-
## Scenes
|
|
10
|
-
|
|
11
|
-
1. **Workflow collection — light.** Find “Weekly code review” among Core's contracts and graph. This establishes where a team can discover the fictional workflow.
|
|
12
|
-
2. **Workflow context — dark.** Inspect the same workflow's declared merged-work and issue inputs, its goal and its expected notes. This is a distinct, useful state of the Core workflow UI; it does not claim a report was generated.
|
|
13
|
-
3. **Merged work — light app terminal.** Run the fixture-only `showcase merged acme/widgets` requester and inspect fictional merged pull requests and authors. This is terminal output inside the app, not a feature UI.
|
|
14
|
-
4. **Issue changes — dark app terminal.** Run `showcase issues acme/widgets` and inspect fictional issue titles, states and owners. This is a different result, not a second view of the same table.
|
|
15
|
-
5. **Merged work — shell.** Show the same useful capability through a native CLI result, identifying the requester and data as fictional.
|
|
16
|
-
6. **Issue changes as JSON — shell.** Show the other fixture operation in machine-readable form for scripts and agents.
|
|
17
|
-
|
|
18
|
-
The two workflow scenes are genuine Core feature UI scenes; the two app-terminal scenes supplement them. The existing plan already demonstrates useful behavior and is preserved. Its `/contracts/weekly-code-review` detail route and its exact rendered contents are evidenced by the existing plan, not by Core implementation supplied here; capture must verify that route and the intended contents before acceptance (`docs/screenshots.toml`, `docs/screenshot_fixture.py`).
|
|
19
|
-
|
|
20
|
-
## Fictional fixtures
|
|
21
|
-
|
|
22
|
-
The existing `docs/screenshot_fixture.py` creates an isolated local demonstration contract, binds both capabilities to GitHub, injects `DemoGh`, and supplies fictional `acme/widgets` pull requests and issues for October 2026. The fake requester operations are not shipped GitHub plugin commands. The fixture's asserted login and executable are demonstration values, not evidence of a real connection. Its contract declares inputs and output but explicitly says no report has been generated. No new fixture file is assumed.
|
|
23
|
-
|
|
24
|
-
## Source-bound UI surface inventory
|
|
25
|
-
|
|
26
|
-
- **Plugin entrypoints:** `pyproject.toml` declares `heinzel.modules` and `heinzel.connected_sources`, both targeting `heinzel_github`. `src/heinzel_github/_module.py` declares the `github` module; `src/heinzel_github/__init__.py` registers settings, services, a read-only skill, the `code-host` and `tracker` read adapters, `info`, system info, offline health and live health. No plugin Page, View, navigation, channel, approval, setup or footer contribution is declared in the supplied plugin source. That absence alone does not establish that there is no feature UI.
|
|
27
|
-
- **Core feature UI:** The supplied fixture declares a responsibility with two capability inputs and a notes output; the existing plan identifies the Core contracts collection and detail views (`docs/screenshot_fixture.py`: `CONTRACT`; `docs/screenshots.toml`: `workflow-collection`, `workflow-context`). These are Core-rendered workflow surfaces, not GitHub-owned screens. The exact detail route and rendering remain capture-time evidence to verify.
|
|
28
|
-
- **Core connection and diagnostics surfaces:** `README.md` identifies Settings → Connectors as a Core UI for connection status; `src/heinzel_github/__init__.py` and `_service.py` contribute offline and live health checks, including binding details. The supplied sources do not establish the precise route or controls for capturing these surfaces, so the plan does not invent them. Live testing asks GitHub and is not part of this offline story.
|
|
29
|
-
- **Operations and info:** `@module.operation info` and `@module.info system_info` expose plugin and host details (`src/heinzel_github/__init__.py`, `_service.py`: `about`). Core may render contributions beyond a terminal; the supplied source does not establish a specific operation or info UI route. The fixture's `showcase` operations and their Rich table renderers are separately declared in `docs/screenshot_fixture.py`.
|
|
30
|
-
- **Release feed:** Conditional registration of `GithubReleaseFeeds` depends on Core support and an active captured source (`src/heinzel_github/__init__.py`; `src/heinzel_github/_release_feed.py`: `GithubReleaseFeeds`). `README.md` describes its use in a draft workflow, but the supplied evidence does not establish a capturable UI or an offline release-feed fixture. Do not imply this gallery demonstrates it.
|
|
31
|
-
- **External provider UI:** GitHub and `gh` own authentication (`README.md`, `src/heinzel_github/_gh.py`); no GitHub website or login screen is proposed. `README.md` describes capability use from CLI, MCP and REST, but does not establish separate plugin screens for them.
|
|
32
|
-
- **Terminal output:** The fixture declares two requester operations and table renderers; the plan also requests JSON for issues. These are useful terminal results, not proof that the adapter is CLI-only (`docs/screenshot_fixture.py`; `docs/screenshots.toml`).
|
|
33
|
-
|
|
34
|
-
## Privacy pitfalls
|
|
35
|
-
|
|
36
|
-
Use only the isolated fictional profile and fixture data during capture. Check every image and transcript for real account names, hostnames, paths, tokens, repository names, links, browser chrome and other identifying material; unknown identities fail review. Normal presentation fictionalization is explicitly limited as follows: verified owning-interpreter paths become `/demo-profile/.venv`, and only the verified whole hostname detail in the genuine Doctor row becomes `demo-host`. These mappings change no SDK health status or remaining detail and establish no privacy acceptance. Independent review must inspect every image and transcript. Do not replace other values on the assumption that they are safe.
|
|
37
|
-
|
|
38
|
-
## Acceptance criteria
|
|
39
|
-
|
|
40
|
-
- Capture the existing six distinct scenes with the actual Core UI and terminal output; no forged HTML, duplicate captures or caption-only differences. Both workflow views must be useful and readable, and the collection and detail must actually show the fictional workflow and its declared inputs.
|
|
41
|
-
- Apply light and dark appearances as specified and verify their rendered appearance. Confirm that the CLI and app-terminal results show the fixture's relevant pull requests and issues, and that JSON is valid and useful. Terminal actions already wait for completion; do not add waits for individual table cells.
|
|
42
|
-
- Captions identify demo data and the fixture-only requester where relevant. Do not describe the declared workflow as an executed report, the mock login as a real account, or terminal output as a plugin feature screen.
|
|
43
|
-
- Verify the detail route and accessible heading during capture. If Core does not render the claimed detail or the route fails, do not substitute an invented screen; resolve the evidence and revise the plan.
|
|
44
|
-
- Review all images and transcripts independently for privacy and truthful representation before publication. The plan has been checked against the requested TOML structure by inspection only; no parser, capture, project code or network call was run.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"format": 1,
|
|
3
|
-
"reviewer": "Codex feature-story agent",
|
|
4
|
-
"source_sha256": "4ddb2b8de08af254e44ca8241b15e67287339b3d950aa1b3b58382ce06d578c9",
|
|
5
|
-
"plan_sha256": "4b2f2733e91a815803ccfec3f3159a7b58900ad41be8c262d4b514b685420e07",
|
|
6
|
-
"story_sha256": "5fdf1c672595365870693e7ae56992c2f682d9c4c222e6cb220e28c57da8733d"
|
|
7
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{heinzel_github-0.9.3 → heinzel_github-0.9.5}/src/heinzel_github/skills/review-pull-request/SKILL.md
RENAMED
|
File without changes
|
|
File without changes
|
{heinzel_github-0.9.3 → heinzel_github-0.9.5}/tests/acceptance/release_feed_installed_test.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|