project-guide 2.5.15__tar.gz → 2.7.0__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.
- project_guide-2.7.0/.github/dependabot.yml +49 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.gitignore +2 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.project-guide.yml +3 -3
- {project_guide-2.5.15 → project_guide-2.7.0}/CHANGELOG.md +51 -0
- project_guide-2.7.0/CONTRIBUTING.md +155 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/PKG-INFO +103 -45
- {project_guide-2.5.15 → project_guide-2.7.0}/README.md +102 -44
- project_guide-2.7.0/SECURITY.md +67 -0
- project_guide-2.5.15/docs/specs/stories.md → project_guide-2.7.0/docs/specs/.archive/stories-v2.5.15.md +0 -4
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/features.md +65 -7
- project_guide-2.7.0/docs/specs/phase-p-auto-heal-plan.md +240 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/project-essentials.md +57 -0
- project_guide-2.7.0/docs/specs/stories.md +295 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/tech-spec.md +44 -4
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/cli.py +478 -22
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/stories.py +51 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/version.py +1 -1
- {project_guide-2.5.15 → project_guide-2.7.0}/pyproject.toml +1 -1
- project_guide-2.7.0/tests/conftest.py +28 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_cli.py +754 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_sync.py +60 -0
- project_guide-2.5.15/.github/dependabot.yml +0 -19
- project_guide-2.5.15/.project-guide.yml.bak.20260417182335 +0 -8
- project_guide-2.5.15/docs/project-guide/go.md +0 -258
- project_guide-2.5.15/docs/project-guide/templates/modes/production-mode.md +0 -16
- project_guide-2.5.15/project_guide/templates/project-guide/.metadata.yml +0 -214
- project_guide-2.5.15/project_guide/templates/project-guide/README.md +0 -51
- project_guide-2.5.15/project_guide/templates/project-guide/developer/best-practices-guide.md +0 -365
- project_guide-2.5.15/project_guide/templates/project-guide/developer/brand-descriptions-guide.md +0 -461
- project_guide-2.5.15/project_guide/templates/project-guide/developer/codecov-setup-guide.md +0 -181
- project_guide-2.5.15/project_guide/templates/project-guide/developer/debug-guide.md +0 -469
- project_guide-2.5.15/project_guide/templates/project-guide/developer/landing-page-guide.md +0 -808
- project_guide-2.5.15/project_guide/templates/project-guide/developer/production-github-guide.md +0 -437
- project_guide-2.5.15/project_guide/templates/project-guide/developer/project-guide.md +0 -452
- project_guide-2.5.15/project_guide/templates/project-guide/developer/python-editable-install.md +0 -131
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/brand-descriptions.md +0 -56
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/concept.md +0 -37
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/features.md +0 -77
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/project-essentials.md +0 -108
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/pyve-essentials.md +0 -59
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/stories.md +0 -39
- project_guide-2.5.15/project_guide/templates/project-guide/templates/artifacts/tech-spec.md +0 -98
- project_guide-2.5.15/project_guide/templates/project-guide/templates/llm_entry_point.md +0 -5
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/_header-common.md +0 -58
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/_header-cycle.md +0 -21
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/_header-sequence.md +0 -7
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/_phase-letters.md +0 -27
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/archive-stories-mode.md +0 -80
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/code-direct-mode.md +0 -59
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/code-test-first-mode.md +0 -59
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/debug-mode.md +0 -481
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/default-mode.md +0 -100
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/document-brand-mode.md +0 -484
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/document-landing-mode.md +0 -808
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-concept-mode.md +0 -51
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-features-mode.md +0 -60
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-phase-mode.md +0 -80
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-production-phase-mode.md +0 -80
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-stories-mode.md +0 -80
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/plan-tech-spec-mode.md +0 -77
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/refactor-document-mode.md +0 -104
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/refactor-plan-mode.md +0 -125
- project_guide-2.5.15/project_guide/templates/project-guide/templates/modes/scaffold-project-mode.md +0 -196
- {project_guide-2.5.15 → project_guide-2.7.0}/.github/FUNDING.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.github/workflows/ci.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.github/workflows/deploy-docs.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.github/workflows/publish.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.github/workflows/test.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.pyve/config +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/.tool-versions +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/LICENSE +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/.gitignore +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/about/changelog.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/about/license.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/developer-guide/contributing.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/developer-guide/development.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/developer-guide/testing.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/getting-started.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/images/project-guide-banner-landing.png +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/images/project-guide-header-readme.png +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/index.html +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/commands.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/configuration.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/install-options.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/modes.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/overrides.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/site/user-guide/workflow.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/phase-j-modes-plan.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/phase-k-release-lifecycle-plan.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/phase-l-no-input-init-plan.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/phase-m-project-essentials-plan.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/phase-n-mode-naming-cli-memory-plan.md +0 -0
- {project_guide-2.5.15/docs/specs → project_guide-2.7.0/docs/specs/.archive}/phase-o-pyve-quiet-embedding-subplan.md +0 -0
- /project_guide-2.5.15/docs/specs/quiet-non-interactive-embedding-feature.md → /project_guide-2.7.0/docs/specs/.archive/phase-o-quiet-non-interactive-embedding-feature.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/project-guide-no-input-spec.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/stories-v1.3.1.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/stories-v2.0.20.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/stories-v2.3.9.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/stories-v2.4.19.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/.archive/ux-problems-v2.0.10.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/brand-descriptions.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/docs/specs/concept.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/mkdocs.yml +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project-guide-old-template.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/__init__.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/__main__.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/actions.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/config.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/exceptions.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/metadata.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/render.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/runtime.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/sync.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/project_guide/templates/.project-guide.yml.template +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/.metadata.yml +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/README.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/best-practices-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/brand-descriptions-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/codecov-setup-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/debug-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/landing-page-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/production-github-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/project-guide.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/developer/python-editable-install.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/brand-descriptions.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/concept.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/features.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/project-essentials.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/pyve-essentials.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/stories.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/artifacts/tech-spec.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/llm_entry_point.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/_header-common.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/_header-cycle.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/_header-sequence.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/_phase-letters.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/archive-stories-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/code-direct-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/code-test-first-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/debug-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/default-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/document-brand-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/document-landing-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-concept-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-features-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-phase-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-production-phase-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-stories-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/plan-tech-spec-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/refactor-document-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/refactor-plan-mode.md +0 -0
- {project_guide-2.5.15/docs → project_guide-2.7.0/project_guide/templates}/project-guide/templates/modes/scaffold-project-mode.md +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/requirements-dev.txt +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/__init__.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_actions.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_archive_stories_mode.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_config.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_integration.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_metadata.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_purge.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_render.py +0 -0
- {project_guide-2.5.15 → project_guide-2.7.0}/tests/test_runtime.py +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Copyright (c) 2026 Pointmatic
|
|
2
|
+
#
|
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
# you may not use this file except in compliance with the License.
|
|
5
|
+
# You may obtain a copy of the License at
|
|
6
|
+
#
|
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
#
|
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
# See the License for the specific language governing permissions and
|
|
13
|
+
# limitations under the License.
|
|
14
|
+
|
|
15
|
+
version: 2
|
|
16
|
+
updates:
|
|
17
|
+
# GitHub Actions: workflow files under .github/workflows/.
|
|
18
|
+
# Minor + patch updates are batched into one weekly PR; majors land
|
|
19
|
+
# separately so a breaking action upgrade is easy to revert.
|
|
20
|
+
- package-ecosystem: "github-actions"
|
|
21
|
+
directory: "/"
|
|
22
|
+
schedule:
|
|
23
|
+
interval: "weekly"
|
|
24
|
+
labels:
|
|
25
|
+
- "dependencies"
|
|
26
|
+
- "ci"
|
|
27
|
+
commit-message:
|
|
28
|
+
prefix: "chore(ci)"
|
|
29
|
+
groups:
|
|
30
|
+
github-actions-minor-patch:
|
|
31
|
+
update-types:
|
|
32
|
+
- "minor"
|
|
33
|
+
- "patch"
|
|
34
|
+
|
|
35
|
+
# Python runtime + dev dependencies (pyproject.toml + requirements-dev.txt).
|
|
36
|
+
# Same grouping policy: minor + patch share one weekly PR, majors split out.
|
|
37
|
+
- package-ecosystem: "pip"
|
|
38
|
+
directory: "/"
|
|
39
|
+
schedule:
|
|
40
|
+
interval: "weekly"
|
|
41
|
+
labels:
|
|
42
|
+
- "dependencies"
|
|
43
|
+
commit-message:
|
|
44
|
+
prefix: "chore(deps)"
|
|
45
|
+
groups:
|
|
46
|
+
pip-minor-patch:
|
|
47
|
+
update-types:
|
|
48
|
+
- "minor"
|
|
49
|
+
- "patch"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
version: '2.0'
|
|
2
|
-
installed_version: 2.
|
|
2
|
+
installed_version: 2.6.0
|
|
3
3
|
target_dir: docs/project-guide
|
|
4
4
|
metadata_file: .metadata.yml
|
|
5
|
-
current_mode:
|
|
5
|
+
current_mode: default
|
|
6
6
|
test_first: false
|
|
7
|
-
pyve_version: pyve version
|
|
7
|
+
pyve_version: pyve version 2.6.2
|
|
8
8
|
project_name: project-guide
|
|
@@ -7,6 +7,57 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.7.0] - 2026-05-11
|
|
11
|
+
|
|
12
|
+
New top-level `project-guide git-push` command — a thin wrapper over [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push` that auto-derives the commit subject from the most-recently-completed-and-not-yet-committed story in `docs/specs/stories.md`. Developer-lane convenience only; the LLM still does not initiate commits.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`project-guide git-push [BRANCH_NAME]` command** (`project_guide/cli.py`) — parses `docs/specs/stories.md` for the last `[Done]` story heading, derives a normalized commit subject (strip `### Story ` prefix and ` [Done]` suffix, convert backticks and double quotes to single quotes, preserve the colon after the story ID), and shells out to gitbetter's `git-push` via `shutil.which` discovery + `subprocess.run(check=False)` with no captured output (gitbetter inherits stdin/stdout/stderr and stays fully interactive). Child exit code propagates unchanged.
|
|
16
|
+
- **Hard-error semantics** for ambiguous states: no `[Done]` story → exit 1; last `[Done]` already committed (per `git log --pretty=%s` subject-prefix match) → exit 1 with `Use 'git-push' directly for any follow-up commit.`; multiple uncommitted `[Done]` stories → exit 1 listing the IDs; `git-push` not on PATH → exit 1 with `brew install pointmatic/tap/gitbetter` hint. The wrapper deliberately refuses to second-guess the developer in ambiguous cases — raw `git-push` remains the escape hatch.
|
|
17
|
+
- **`project_guide/stories.py`** — `StoryHeading` dataclass, `_read_done_stories()`, and `derive_commit_message()` as reusable helpers (the message transformer is exposed as a public name because the heading rules are part of the wrapper's documented contract).
|
|
18
|
+
- **External CLI dependency pattern** documented in `docs/specs/tech-spec.md` under Cross-Cutting Concerns — `git-push` is the first project-guide subcommand depending on an external binary; future workflow-integration commands should follow the same shape (`shutil.which` discover, `subprocess.run(check=False)` invoke, propagate exit code).
|
|
19
|
+
|
|
20
|
+
### Docs
|
|
21
|
+
- `docs/specs/features.md` — new FR-15 (Story-Aware `git-push` Wrapper), added Inputs / Command Line entry, added Acceptance Criteria item 17.
|
|
22
|
+
- `docs/specs/tech-spec.md` — added `git-push` to the Commands table, Key Functions documents the new helpers, new Cross-Cutting Concerns section "External CLI Dependencies (Story P.k pattern)".
|
|
23
|
+
- `docs/specs/project-essentials.md` — new sub-section reinforcing the LLM-vs-developer-lane rule for this command and documenting the heading-derivation rules.
|
|
24
|
+
- `README.md` — new `### git-push` section in Command Reference between `heal` and `override`, with the optional-dependency callout for gitbetter.
|
|
25
|
+
|
|
26
|
+
## [2.6.1] - 2026-05-11
|
|
27
|
+
|
|
28
|
+
Post-v2.6.0 follow-up: tighten the canonical `# project-guide` gitignore block from four lines to three. Behavior unchanged; the dropped line was functionally redundant.
|
|
29
|
+
|
|
30
|
+
### Changed
|
|
31
|
+
- **`project_guide/cli.py:_build_project_guide_block()`** — dropped the trailing `<target>/**/*.bak.*` line. The broader `<target>/**` rule introduced in v2.6.0 already ignores backups under that subtree, so the explicit line was a no-op carried over from the pre-P.d block during the policy inversion. New canonical form is three lines: header, `<target>/**`, `!<target>/go.md`.
|
|
32
|
+
- **`project_guide/cli.py:_recognized_block_lines()`** — kept the `<target>/**/*.bak.*` entry in the recognized-lines set so v2.6.0-shipped installs heal cleanly to the v2.6.1 3-line form on the next `init --force`. Foreign hand-customized blocks remain warned-about (no behavior change there).
|
|
33
|
+
- **Tests** — `_EXPECTED_GITIGNORE_BLOCK` updated to the 3-line form; added a test for the v2.6.0-→-v2.6.1 cleanup path on `init --force`.
|
|
34
|
+
- **Docs** — updated the gitignore prose in `docs/specs/features.md`, `docs/specs/tech-spec.md`, `docs/specs/project-essentials.md`, and `README.md` to reflect the 3-line canonical form. Historical references to the 4-line v2.6.0 form retained where they explain the migration path.
|
|
35
|
+
|
|
36
|
+
### Migration
|
|
37
|
+
None required. v2.6.0 installs see no behavioral change — the dropped line was a no-op under the `<target>/**` rule. Running `init --force` on a v2.6.0 install simply produces a tidier 3-line block. Consumers who never run `init --force` keep the 4-line block forever without issue.
|
|
38
|
+
|
|
39
|
+
## [2.6.0] - 2026-05-09
|
|
40
|
+
|
|
41
|
+
Phase P: Auto-heal and production hardening. Collapses the consumer-repo install footprint to a single tracked file (`go.md`) plus the tracked config; everything else is gitignored bundled data, repopulated on demand by a new self-contained `heal` command that runs invisibly before every other invocation. Bundled with a subset of post-1.0 production-readiness items: `SECURITY.md`, `CONTRIBUTING.md`, tightened `dependabot.yml`, and a CI-workflow PR-readiness audit.
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
- **`project-guide heal` command** (`project_guide/cli.py`) — repairs the install in place: detects drift between the bundled package templates and the on-disk template tree, then creates missing files and refreshes stale ones. Silent when there is nothing to do (exit 0, no stdout); prompts `Update? [Y/n]` on drift and exits 1 on decline. Hard error on missing `.project-guide.yml` with the exact message `Missing .project-guide.yml — run 'project-guide init' to bootstrap the project.`. Honors the `--no-input` contract: under `--no-input` / `PROJECT_GUIDE_NO_INPUT` / `CI=1` / non-TTY stdin the prompt is replaced with auto-yes plus a non-suppressible one-line stderr notice (`Auto-healing N templates under --no-input.`). `SchemaVersionError` propagation mirrors `update`'s older/newer guidance. (Stories P.a, P.c)
|
|
45
|
+
- **Group-level auto-heal hook** (`HealGroup(click.Group)` in `project_guide/cli.py`) — every `project-guide` invocation, **including `--help` and `--version`**, runs the heal drift-detection + prompt path before dispatching the requested subcommand. Implemented by overriding `Group.main()` so the hook fires ahead of `make_context` / arg parsing (which is what catches eager flags). Silent in the steady state; declining the prompt does not block the original subcommand. Recursion across nested `project-guide` subprocess invocations is prevented by `PROJECT_GUIDE_HEALING=1` in `os.environ`, set by `_apply_heal()` before any write. The hook also inherits the `--no-input` skip-input contract via env / TTY signals. (Story P.b, extended in P.c)
|
|
46
|
+
- **`SECURITY.md`** — vulnerability reporting policy at repo root. Supported-versions table (latest minor only), GitHub Security Advisories as the private reporting channel, ~7-day acknowledgement expectation, and a "Threat model" section enumerating the narrow attack surface (no secrets, no network calls, local-filesystem only). (Story P.e)
|
|
47
|
+
- **`CONTRIBUTING.md`** — canonical dev guide at repo root: pyve two-environment setup, code-style commands, test conventions (`pyve test`, 85% coverage, mode-render parametrized regression test), PR process (fork → branch → green CI → review), substantive-contributions guidance (scope via stories before opening a PR for non-trivial work), and the `bump-version` end-of-phase release process. (Story P.f)
|
|
48
|
+
- **README.md** — new `### heal` Command Reference section, "Auto-Heal" feature bullet, dedicated `## Security` section pointing at `SECURITY.md` and GitHub Security Advisories. (Stories P.a–P.i)
|
|
49
|
+
|
|
50
|
+
### Changed
|
|
51
|
+
- **`.gitignore` writer (`_ensure_gitignore_entry()` in `project_guide/cli.py`)** — inverted policy: ignore everything under `target_dir` *except* `go.md` and `.bak.*` backups. Eliminates the ~35-file install footprint from consumer-repo `git status` and PR reviews. `go.md` must remain non-gitignored because IDE-integrated LLMs (Cursor, Claude Code, etc.) typically hide gitignored files from the LLM's view. The writer is now idempotent and recognizes prior blocks (canonical form, legacy `.bak.*`-only form, legacy `<target>/go.md` line) for clean rewrite; foreign hand-customized blocks are left untouched with a stderr warning. Migration for pre-Phase-P consumer repos: `project-guide init --force`. (Story P.d)
|
|
52
|
+
- **`.github/dependabot.yml`** — added minor+patch grouping per ecosystem (one weekly PR per ecosystem instead of one per dependency), commit-message prefixes (`chore(ci)` for github-actions, `chore(deps)` for pip), and aligned labels with `dependencies` + `ci`. Majors land as separate PRs so a breaking upgrade is easy to revert. (Story P.g)
|
|
53
|
+
- **`README.md` Development and Contributing sections** — slimmed to brief quick-references that point at `CONTRIBUTING.md` as canonical; replaced stale `pip install -e ".[dev]"` / `pytest tests/` commands with the dogfooded pyve canonical forms (`pyve run pip install -e .`, `pyve test`, `pyve testenv run ruff check ...`). (Story P.f)
|
|
54
|
+
- **`docs/specs/features.md`** — added FR-14 (Auto-Heal & Self-Repair Install) covering the heal command, the auto-hook, the recursion guard, the inverted gitignore policy, and the IDE-LLM-visibility constraint. Updated FR-8 to add `heal` to the list of commands that respect the `--no-input` contract. Updated Inputs / Command Line, Outputs / File Structure, and Acceptance Criteria. (Story P.i)
|
|
55
|
+
- **`docs/specs/tech-spec.md`** — added `heal`, `archive-stories`, and `bump-version` to the CLI Design / Commands table; documented `_apply_heal`, `_run_pre_invoke_hook`, and `HealGroup` under Key Functions; added the Auto-Heal Group Hook section under Cross-Cutting Concerns; updated `.gitignore` Management to the new policy with rationale. (Story P.i)
|
|
56
|
+
- **`docs/specs/project-essentials.md`** — appended five new sub-sections: auto-heal hook contract, inverted gitignore policy, IDE-LLM visibility constraint, `heal` vs. `update` vs. `init` division of labor, and the heal `--no-input` auto-yes notice. (Story P.i)
|
|
57
|
+
|
|
58
|
+
### Verified (no code changes)
|
|
59
|
+
- **`.github/workflows/ci.yml`** and **`test.yml`** are PR-ready — `pull_request` triggers present, no `continue-on-error: true` shortcuts, lint and tests are mandatory, all matrix legs required. The green-CI expectation is documented in `CONTRIBUTING.md` (informal until branch protection is enabled). (Story P.h, audit-only)
|
|
60
|
+
|
|
10
61
|
## [2.5.15] - 2026-05-07
|
|
11
62
|
|
|
12
63
|
### Changed
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) 2026 Pointmatic
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
you may not use this file except in compliance with the License.
|
|
6
|
+
You may obtain a copy of the License at
|
|
7
|
+
|
|
8
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
|
|
10
|
+
Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
See the License for the specific language governing permissions and
|
|
14
|
+
limitations under the License.
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
# Contributing to project-guide
|
|
18
|
+
|
|
19
|
+
Thanks for your interest in contributing! This document covers everything
|
|
20
|
+
you need to set up a working development environment, run the test suite,
|
|
21
|
+
and submit a pull request that lands cleanly.
|
|
22
|
+
|
|
23
|
+
The README's Development and Contributing sections are quick-reference
|
|
24
|
+
summaries; this file is the canonical source for everything below.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Dev environment
|
|
29
|
+
|
|
30
|
+
`project-guide` uses [pyve](https://pointmatic.github.io/pyve/) to manage
|
|
31
|
+
Python environments. The project follows pyve's **two-environment pattern**:
|
|
32
|
+
the runtime venv at `.venv/` holds the package itself, and a separate dev
|
|
33
|
+
testenv at `.pyve/testenv/venv/` holds test/lint tools (pytest, ruff,
|
|
34
|
+
mypy). Mixing the two creates subtle drift, so use the canonical commands
|
|
35
|
+
below — see `docs/project-guide/pyve-essentials.md` for the full rationale.
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
git clone https://github.com/pointmatic/project-guide.git
|
|
39
|
+
cd project-guide
|
|
40
|
+
|
|
41
|
+
# Main environment: editable install of the package itself.
|
|
42
|
+
pyve run pip install -e .
|
|
43
|
+
|
|
44
|
+
# Dev testenv: pytest, ruff, mypy, etc.
|
|
45
|
+
pyve testenv init # one-time
|
|
46
|
+
pyve testenv install -r requirements-dev.txt
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
After this you can run the package as a CLI (`project-guide --version`)
|
|
50
|
+
and run the test suite (`pyve test`).
|
|
51
|
+
|
|
52
|
+
> **Why two environments?** Test tooling pollutes the runtime venv and
|
|
53
|
+
> breaks reproducibility ("works on my machine"). Keeping them separate
|
|
54
|
+
> means `pip install project-guide` produces the same environment every
|
|
55
|
+
> consumer gets, and `pyve test` always exercises the package against a
|
|
56
|
+
> known dev-tool set.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Code style
|
|
61
|
+
|
|
62
|
+
- **Linting**: `ruff check` must pass. Use `ruff check --fix` for auto-fixable issues.
|
|
63
|
+
- **Formatting**: `ruff format` for consistent style.
|
|
64
|
+
- **Type checking**: `mypy` must run clean.
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pyve testenv run ruff check project_guide tests
|
|
68
|
+
pyve testenv run ruff format project_guide tests
|
|
69
|
+
pyve testenv run mypy project_guide
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
---
|
|
73
|
+
|
|
74
|
+
## Tests
|
|
75
|
+
|
|
76
|
+
Run the full suite with `pyve test`:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
pyve test # all tests
|
|
80
|
+
pyve test tests/test_cli.py # one file
|
|
81
|
+
pyve test -k heal # name pattern
|
|
82
|
+
pyve test --cov=project_guide --cov-report=term-missing
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
**Coverage**: maintain at least **85%** line coverage for changed code.
|
|
86
|
+
The CI workflow uploads coverage to codecov on every push; PRs that drop
|
|
87
|
+
coverage substantially will get a comment.
|
|
88
|
+
|
|
89
|
+
**Mode-render regression test**: `tests/test_render.py::test_every_mode_renders_successfully`
|
|
90
|
+
is parametrized over every mode in `.metadata.yml` and renders each one
|
|
91
|
+
end-to-end. If you add a new mode template, add the mode to `.metadata.yml`
|
|
92
|
+
and this test will pick it up automatically — but please verify locally
|
|
93
|
+
before opening a PR.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Pull request process
|
|
98
|
+
|
|
99
|
+
1. **Fork** the repository on GitHub.
|
|
100
|
+
2. **Branch** off `main` (e.g., `feat/heal-command`, `fix/gitignore-block`).
|
|
101
|
+
3. **Implement** the change. Keep PRs focused — one logical change per PR.
|
|
102
|
+
4. **Test** locally: `pyve test` must pass, and `ruff check` must be clean.
|
|
103
|
+
5. **PR**: open against `pointmatic/project-guide:main` with a description
|
|
104
|
+
that explains the *why*, not just the *what*. Reference the issue or
|
|
105
|
+
story it addresses if applicable.
|
|
106
|
+
6. **CI**: the GitHub Actions workflows (`ci.yml` and `test.yml`) run on
|
|
107
|
+
every PR. **All checks must be green** before review.
|
|
108
|
+
7. **Review**: a maintainer will review, request changes if needed, and
|
|
109
|
+
merge once approved.
|
|
110
|
+
|
|
111
|
+
> Branch protection on `main` is **not yet enabled** — the project is still
|
|
112
|
+
> in solo-maintainer mode. The PR workflow is the expected path for outside
|
|
113
|
+
> contributors regardless, and branch protection will flip on as soon as
|
|
114
|
+
> there are multiple regular contributors.
|
|
115
|
+
|
|
116
|
+
---
|
|
117
|
+
|
|
118
|
+
## Substantive contributions
|
|
119
|
+
|
|
120
|
+
For non-trivial changes (new features, refactors, behavioral changes), the
|
|
121
|
+
recommended path is to **scope the work via stories** before opening a PR.
|
|
122
|
+
`project-guide` uses itself to plan its own work — the cycle modes
|
|
123
|
+
`code_direct` and `code_test_first` walk through:
|
|
124
|
+
|
|
125
|
+
1. Read `docs/specs/stories.md` for the next planned story.
|
|
126
|
+
2. If the change isn't covered, draft a story (or a phase plan if it spans
|
|
127
|
+
multiple stories) and discuss in an issue first.
|
|
128
|
+
3. Implement against the story's checklist; submit the PR with the story
|
|
129
|
+
ID in the commit message and PR title.
|
|
130
|
+
|
|
131
|
+
This is not a hard requirement for small fixes (typos, doc tweaks, obvious
|
|
132
|
+
bugs), but it's strongly recommended for anything that touches the CLI
|
|
133
|
+
surface, the mode metadata schema, or the rendering pipeline.
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## Release process
|
|
138
|
+
|
|
139
|
+
Releases are cut by the maintainer at end-of-phase per the **Version
|
|
140
|
+
Cadence** rule documented at the top of `docs/specs/stories.md`:
|
|
141
|
+
|
|
142
|
+
1. Land all stories in the phase via direct commits or merged PRs.
|
|
143
|
+
2. Run `project-guide bump-version <X.Y.Z>` — this updates
|
|
144
|
+
`pyproject.toml`, `project_guide/version.py`, and adds the
|
|
145
|
+
`## [X.Y.Z] - <date>` heading to `CHANGELOG.md`.
|
|
146
|
+
3. Use `project-guide mode plan_production_phase` (post-1.0) to negotiate
|
|
147
|
+
the bump magnitude when applicable.
|
|
148
|
+
4. Tag and push: `git tag vX.Y.Z && git push origin vX.Y.Z`.
|
|
149
|
+
5. Create a GitHub Release from the tag — this triggers
|
|
150
|
+
`.github/workflows/publish.yml`, which builds and uploads the package
|
|
151
|
+
to PyPI.
|
|
152
|
+
|
|
153
|
+
Phase-bundled releases (the current default for Phase P) ship one version
|
|
154
|
+
at end-of-phase. The story that owns the bump is marked in
|
|
155
|
+
`docs/specs/stories.md`; intermediate stories run unversioned.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: project-guide
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.7.0
|
|
4
4
|
Summary: Stay organized and in control with adaptive LLM workflow prompts.
|
|
5
5
|
Project-URL: Homepage, https://github.com/pointmatic/project-guide
|
|
6
6
|
Project-URL: Documentation, https://pointmatic.github.io/project-guide/
|
|
@@ -72,7 +72,8 @@ When you customize a file for your project, mark it as overridden so future pack
|
|
|
72
72
|
- **Content-Hash Sync** - SHA-256 hash comparison detects changes without relying on version numbers
|
|
73
73
|
- **Custom File Lock** - Lock customized files to prevent update overwrites
|
|
74
74
|
- **Gentle Force Updates** - Automatic `.bak` files created if you `--force` update a custom file
|
|
75
|
-
- **CLI Interface** -
|
|
75
|
+
- **CLI Interface** - Intuitive commands for every step of the workflow (init, mode, status, update, heal, override, purge, …)
|
|
76
|
+
- **Auto-Heal** - Every command silently repairs the install if drift is detected; prompts only when there's actual work to do, so a fresh clone is one `project-guide <anything>` away from being usable
|
|
76
77
|
- **Shell Completion** - Tab completion for commands, flags, and mode names (bash, zsh, fish)
|
|
77
78
|
- **Well Tested** - Comprehensive test coverage across CLI, rendering, and action modules
|
|
78
79
|
- **Zero Configuration** - Works with sensible defaults out of the box
|
|
@@ -120,11 +121,11 @@ project-guide init
|
|
|
120
121
|
```
|
|
121
122
|
|
|
122
123
|
This creates:
|
|
123
|
-
- `.project-guide.yml` - Configuration file
|
|
124
|
-
- `docs/project-guide
|
|
125
|
-
- `docs/project-guide
|
|
124
|
+
- `.project-guide.yml` - Configuration file (tracked)
|
|
125
|
+
- `docs/project-guide/go.md` - Rendered LLM instructions (tracked — must be visible to IDE-integrated LLMs)
|
|
126
|
+
- `docs/project-guide/` - Mode templates, artifact templates, and metadata (gitignored bundled data)
|
|
126
127
|
|
|
127
|
-
|
|
128
|
+
Everything under `docs/project-guide/` is gitignored **except** `go.md` (which the LLM reads). The gitignored template tree is bundled static data — `project-guide heal` repopulates it on first invocation in a fresh clone, and the auto-hook makes that healing run silently before any other command.
|
|
128
129
|
|
|
129
130
|
### 2. Tell your LLM to read the guide
|
|
130
131
|
|
|
@@ -346,6 +347,72 @@ project-guide update --force
|
|
|
346
347
|
project-guide update --dry-run
|
|
347
348
|
```
|
|
348
349
|
|
|
350
|
+
### `heal`
|
|
351
|
+
|
|
352
|
+
Repair the install: create missing template files and refresh stale ones to match the bundled package. Silent when there's nothing to do; prompts to apply when drift is detected.
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
project-guide heal [OPTIONS]
|
|
356
|
+
```
|
|
357
|
+
|
|
358
|
+
**Options:**
|
|
359
|
+
- `--no-input` - Auto-yes the `[Y/n]` prompt and emit a one-line stderr notice when writes occur (also auto-enabled by `CI=1`, `PROJECT_GUIDE_NO_INPUT=1`, or non-TTY stdin)
|
|
360
|
+
|
|
361
|
+
**When to use it:**
|
|
362
|
+
- After cloning a repo that has `project-guide init`'d output but the template tree is gitignored — heal repopulates it.
|
|
363
|
+
- After accidentally editing or deleting a bundled template file and wanting to restore the canonical version.
|
|
364
|
+
- Whenever you're not sure whether the install is up-to-date with the package version.
|
|
365
|
+
|
|
366
|
+
**Auto-hook:** every `project-guide` invocation (including `--help` and `--version`) calls heal first via a group-level hook, so the fresh-clone case usually resolves itself silently the first time you run *any* command. The hook is silent in the steady state and prompts only when there's actual drift.
|
|
367
|
+
|
|
368
|
+
**Examples:**
|
|
369
|
+
```bash
|
|
370
|
+
# Interactive: prompts on drift
|
|
371
|
+
project-guide heal
|
|
372
|
+
|
|
373
|
+
# Unattended (CI, scripts, embedding callers)
|
|
374
|
+
project-guide heal --no-input
|
|
375
|
+
```
|
|
376
|
+
|
|
377
|
+
### `git-push`
|
|
378
|
+
|
|
379
|
+
Wrap [gitbetter](https://github.com/pointmatic/gitbetter)'s `git-push` with a commit message auto-derived from the most-recently-completed-and-not-yet-committed story in `docs/specs/stories.md`. Optional: requires gitbetter on PATH.
|
|
380
|
+
|
|
381
|
+
```bash
|
|
382
|
+
project-guide git-push [BRANCH_NAME]
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
**Arguments:**
|
|
386
|
+
- `BRANCH_NAME` (optional) - Passed through to gitbetter for branch-aware push flows (e.g. switching to a feature branch and offering cleanup after merge)
|
|
387
|
+
|
|
388
|
+
**Heading-to-message transformation:**
|
|
389
|
+
```
|
|
390
|
+
### Story G.a: v1.2.3 New command `foo` with "Hello" [Done]
|
|
391
|
+
↓
|
|
392
|
+
G.a: v1.2.3 New command 'foo' with 'Hello'
|
|
393
|
+
```
|
|
394
|
+
Backticks and double quotes become single quotes; single quotes pass through; the colon after the story ID is preserved (it's the anchor for the already-committed check).
|
|
395
|
+
|
|
396
|
+
**Hard errors (exit 1):**
|
|
397
|
+
- No `[Done]` story in `stories.md`
|
|
398
|
+
- The last `[Done]` story is already committed — the wrapper does not second-guess; resolve manually with raw `git-push`
|
|
399
|
+
- Multiple `[Done]` stories are uncommitted — commit them one at a time with explicit messages via raw `git-push`
|
|
400
|
+
- `git-push` not on PATH — install gitbetter: `brew install pointmatic/tap/gitbetter`
|
|
401
|
+
|
|
402
|
+
**Examples:**
|
|
403
|
+
```bash
|
|
404
|
+
# Most common: ready to commit the just-completed story to the current branch
|
|
405
|
+
project-guide git-push
|
|
406
|
+
|
|
407
|
+
# Feature-branch push (gitbetter switches to the branch first, offers cleanup after merge)
|
|
408
|
+
project-guide git-push feature/heal-command
|
|
409
|
+
```
|
|
410
|
+
|
|
411
|
+
**Optional dependency.** gitbetter is not required for any other `project-guide` command. Install it only if you want this wrapper:
|
|
412
|
+
```bash
|
|
413
|
+
brew install pointmatic/tap/gitbetter
|
|
414
|
+
```
|
|
415
|
+
|
|
349
416
|
### `override`
|
|
350
417
|
|
|
351
418
|
Mark a file as customized to prevent automatic updates.
|
|
@@ -561,41 +628,38 @@ project-guide update --force
|
|
|
561
628
|
|
|
562
629
|
## Development
|
|
563
630
|
|
|
631
|
+
Quick reference. See [`CONTRIBUTING.md`](CONTRIBUTING.md) for the full
|
|
632
|
+
guide (PR process, release process, code-style commands, coverage
|
|
633
|
+
expectations).
|
|
634
|
+
|
|
564
635
|
### Setup
|
|
565
636
|
|
|
566
637
|
```bash
|
|
567
|
-
# Clone repository
|
|
568
638
|
git clone https://github.com/pointmatic/project-guide.git
|
|
569
639
|
cd project-guide
|
|
570
640
|
|
|
571
|
-
#
|
|
572
|
-
pip install -e
|
|
641
|
+
# Main environment: editable install.
|
|
642
|
+
pyve run pip install -e .
|
|
643
|
+
|
|
644
|
+
# Dev testenv: pytest, ruff, mypy.
|
|
645
|
+
pyve testenv init
|
|
646
|
+
pyve testenv install -r requirements-dev.txt
|
|
573
647
|
```
|
|
574
648
|
|
|
575
649
|
### Running Tests
|
|
576
650
|
|
|
577
651
|
```bash
|
|
578
|
-
#
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
# Run with coverage
|
|
582
|
-
pytest tests/ --cov=project_guide --cov-report=term-missing
|
|
583
|
-
|
|
584
|
-
# Run specific test file
|
|
585
|
-
pytest tests/test_cli.py -v
|
|
652
|
+
pyve test # all tests
|
|
653
|
+
pyve test tests/test_cli.py # one file
|
|
654
|
+
pyve test --cov=project_guide --cov-report=term-missing
|
|
586
655
|
```
|
|
587
656
|
|
|
588
657
|
### Code Quality
|
|
589
658
|
|
|
590
659
|
```bash
|
|
591
|
-
|
|
592
|
-
ruff
|
|
593
|
-
|
|
594
|
-
# Type checking
|
|
595
|
-
mypy project_guide/
|
|
596
|
-
|
|
597
|
-
# Format code
|
|
598
|
-
ruff format project_guide/ tests/
|
|
660
|
+
pyve testenv run ruff check project_guide tests
|
|
661
|
+
pyve testenv run ruff format project_guide tests
|
|
662
|
+
pyve testenv run mypy project_guide
|
|
599
663
|
```
|
|
600
664
|
|
|
601
665
|
### Documentation Development
|
|
@@ -625,30 +689,24 @@ mkdocs build --strict
|
|
|
625
689
|
|
|
626
690
|
## Contributing
|
|
627
691
|
|
|
628
|
-
Contributions are welcome!
|
|
692
|
+
Contributions are welcome! See [`CONTRIBUTING.md`](CONTRIBUTING.md) for
|
|
693
|
+
the full PR process. Quick summary:
|
|
629
694
|
|
|
630
|
-
1. **Fork
|
|
631
|
-
2. **
|
|
632
|
-
3. **
|
|
633
|
-
4. **
|
|
634
|
-
5. **Write clear commit messages** referencing issues when applicable
|
|
635
|
-
6. **Submit a pull request** with a description of changes
|
|
695
|
+
1. **Fork** and branch off `main`.
|
|
696
|
+
2. **Test** locally: `pyve test` and `pyve testenv run ruff check project_guide tests` must pass.
|
|
697
|
+
3. **PR** against `pointmatic/project-guide:main` with a description that explains the *why*.
|
|
698
|
+
4. **CI** must be green; a maintainer will review.
|
|
636
699
|
|
|
637
|
-
|
|
700
|
+
For non-trivial changes, scope the work via a story in
|
|
701
|
+
`docs/specs/stories.md` before opening the PR — see `CONTRIBUTING.md` for
|
|
702
|
+
the recommended workflow.
|
|
638
703
|
|
|
639
|
-
|
|
640
|
-
# Create feature branch
|
|
641
|
-
git switch -c feature/your-feature-name
|
|
704
|
+
## Security
|
|
642
705
|
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
# Commit and push
|
|
649
|
-
git commit -m "Add feature: description"
|
|
650
|
-
git push origin feature/your-feature-name
|
|
651
|
-
```
|
|
706
|
+
To report a vulnerability, **do not file a public GitHub issue**. Use
|
|
707
|
+
[GitHub Security Advisories](https://github.com/pointmatic/project-guide/security/advisories/new)
|
|
708
|
+
for a private report — see [`SECURITY.md`](SECURITY.md) for the supported-
|
|
709
|
+
versions policy, response expectations, and the threat model.
|
|
652
710
|
|
|
653
711
|
## License
|
|
654
712
|
|