project-guide 2.18.1__tar.gz → 2.19.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.18.1 → project_guide-2.19.0}/CHANGELOG.md +30 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/PKG-INFO +14 -9
- {project_guide-2.18.1 → project_guide-2.19.0}/README.md +12 -7
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/user-guide/commands.md +52 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/user-guide/configuration.md +3 -14
- project_guide-2.19.0/docs/site/user-guide/install-options.md +145 -0
- project_guide-2.19.0/docs/specs/features.md +641 -0
- project_guide-2.19.0/docs/specs/phase-r-subphase-1-shell-completion-plan.md +250 -0
- project_guide-2.19.0/docs/specs/phase-r-subphase-2-pyve-detection-plan.md +158 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/project-essentials.md +1 -1
- project_guide-2.19.0/docs/specs/pyve-detection-render-gate.md +122 -0
- project_guide-2.19.0/docs/specs/shell-completion-ownership.md +109 -0
- project_guide-2.19.0/docs/specs/stories.md +418 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/tech-spec.md +54 -3
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/cli.py +471 -13
- project_guide-2.19.0/project_guide/completion.py +870 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/exceptions.py +5 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/version.py +1 -1
- {project_guide-2.18.1 → project_guide-2.19.0}/pyproject.toml +1 -1
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_cli.py +404 -0
- project_guide-2.19.0/tests/test_completion.py +1881 -0
- project_guide-2.18.1/docs/site/user-guide/install-options.md +0 -120
- project_guide-2.18.1/docs/specs/stories.md +0 -87
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/FUNDING.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/dependabot.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/workflows/ci.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/workflows/deploy-docs.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/workflows/publish.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.github/workflows/test.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.gitignore +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.project-guide.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/.tool-versions +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/CONTRIBUTING.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/LICENSE +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/SECURITY.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/.gitignore +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/about/changelog.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/about/license.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/developer-guide/contributing.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/developer-guide/development.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/developer-guide/testing.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/getting-started.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/images/project-guide-banner-landing.png +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/images/project-guide-header-readme.png +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/index.html +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/user-guide/modes.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/user-guide/overrides.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/site/user-guide/workflow.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-j-modes-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-k-release-lifecycle-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-l-no-input-init-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-m-project-essentials-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-n-mode-naming-cli-memory-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-o-pyve-quiet-embedding-subplan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-o-quiet-non-interactive-embedding-feature.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-p-auto-heal-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-dx-subphases-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-plan-envs-mode-env-dependences-artifact-roughdraft.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-plan-envs-mode-roughdraft.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-pyve-toolchain-hosting.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-subphase-2-plan-envs-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-subphase-3-pyve-hosting-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-subphase-4-local-install-warning-readiness-gate.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-subphase-4-readiness-gate-plan.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-subphase-strategy-for-large-phases.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/phase-q-wizard-env-contract.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/project-guide-no-input-spec.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v1.3.1.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.0.20.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.10.2.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.18.0.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.3.9.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.4.19.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/stories-v2.5.15.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/.archive/ux-problems-v2.0.10.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/brand-descriptions.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/concept.md +0 -0
- /project_guide-2.18.1/docs/specs/features.md → /project_guide-2.19.0/docs/specs/features_old.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/pyve/README.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/pyve/concept.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/pyve/features.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/pyve/sync.sh +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/docs/specs/pyve/tech-spec.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/mkdocs.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project-guide-old-template.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/__init__.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/__main__.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/actions.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/config.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/metadata.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/render.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/runtime.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/stories.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/sync.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/.project-guide.yml.template +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/.metadata.yml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/README.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/best-practices-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/brand-descriptions-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/codecov-setup-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/debug-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/landing-page-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/production-github-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/project-guide.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/developer/python-editable-install.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/brand-descriptions.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/concept.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/env-dependencies.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/features.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/project-essentials.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/pyve-essentials.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/stories.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/artifacts/tech-spec.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/llm_entry_point.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/_header-common.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/_header-cycle.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/_header-sequence.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/_phase-letters.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/archive-stories-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/code-direct-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/code-test-first-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/debug-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/default-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/document-brand-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/document-landing-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-concept-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-envs-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-features-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-phase-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-production-phase-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-stories-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/plan-tech-spec-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/refactor-document-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/refactor-plan-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/project_guide/templates/project-guide/templates/modes/scaffold-project-mode.md +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/pyve.toml +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/requirements-dev.txt +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/__init__.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/conftest.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_actions.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_archive_stories_mode.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_config.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_cross_repo_contract.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_integration.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_metadata.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_purge.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_render.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_runtime.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_stories.py +0 -0
- {project_guide-2.18.1 → project_guide-2.19.0}/tests/test_sync.py +0 -0
|
@@ -7,6 +7,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.19.0] - 2026-08-12
|
|
11
|
+
|
|
12
|
+
**project-guide owns its shell completion (Subphase R-1, Stories R.b–R.h.1).** Completion was self-service — the developer hand-copied an `eval "$(_PROJECT_GUIDE_COMPLETE=…)"` snippet — and it broke silently in two ways reported from the field ([pyve#70](https://github.com/pointmatic/pyve/issues/70)): the zsh snippet needs a `compinit` that may never have run, and every generated callback resolves the bare command name through `PATH` at completion time, which fails when project-guide is hosted behind a shim that is off `PATH`. Both are closed, and completion is now installed, removed, and inspected by project-guide itself.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **`project-guide completion` command group** — `install`, `uninstall`, `show`, `status`, in the new `project_guide/completion.py`.
|
|
16
|
+
- **`install`** (`--shell auto|bash|zsh`, `--bin`, `--rc`, `--dir`, `--quiet`) — idempotent; a no-op when everything is current. **bash** gets the script written inline into a sentinel-bracketed rc block (no subprocess at shell startup); **zsh** gets an `fpath` autoload file `_project-guide` (default `$XDG_DATA_HOME/project-guide/zsh-completions`) plus a small rc block that wires it up.
|
|
17
|
+
- **`uninstall`** — byte-clean: the rc file is restored exactly as `install` found it, and the zsh autoload file is removed with it.
|
|
18
|
+
- **`show`** — prints the post-processed script to stdout and writes nothing, so `eval "$(project-guide completion show)"` is safe. Takes neither `--quiet` nor `--no-input`.
|
|
19
|
+
- **`status`** — reports each shell as `absent` / `installed` / `stale` / `partial` / `damaged`. Exit 0 absent-or-current, 1 needs-attention, 2 I/O error.
|
|
20
|
+
- **`--bin`** — lets a host tool supply a stable handle; pyve passes its `~/.local/bin/project-guide` shim rather than the version-keyed toolchain path behind it.
|
|
21
|
+
- **`heal` warns on stale or partial completion** (stderr, from the pre-invoke auto-hook), naming the dead path and the copyable remedy. **Never auto-repairs** — the same warn-don't-auto-fix constraint that bounds the `git-push` wrapper. Silent when completion is absent or current, and under `--no-input`.
|
|
22
|
+
- **`CompletionError`** in the exception hierarchy; **`tests/test_completion.py`** (135 tests), including checks that source the generated artifacts in a **real bash and zsh**.
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- **Completion no longer depends on `PATH`.** Click's generated script is post-processed before installation: the resolved binary path is baked into the callback, zsh's `(( ! $+commands[…] ))` guard becomes `[[ -x <bin> ]]`, and bash gains an executable guard it does not ship with (without it a stale path prints `env: …: No such file or directory` on every TAB). Applied only when the path is absolute; a bare-name fallback emits Click's script verbatim. Each substitution must match exactly once or generation fails loudly, so a future Click template change cannot silently produce an unmodified script.
|
|
26
|
+
- **macOS system bash 3.2 now registers completion at all.** Click's script ends in `complete -o nosort -F …`; `-o nosort` is bash ≥ 4.4, and on 3.2 the whole line failed, registering *nothing*. The line is emitted as `complete -o nosort … 2>/dev/null || complete …`, preserving Click's ordering on modern bash and falling back on 3.2. (`compopt` still limits **dir/file** completions there — bash ≥ 4.0.)
|
|
27
|
+
- **A legacy pyve completion block is adopted, not duplicated.** pyve wrote its own block before project-guide owned this; `install` replaces it **in place** (pyve inserts above SDKMan's must-be-last marker, so appending would move the wiring past it) and reports the replacement. Bounded to pyve's exact header *and* to a body still carrying pyve's generated content — a hand-edited block is left untouched with a warning, as any foreign block is.
|
|
28
|
+
- **`FR-7` rewritten** in `features.md`, with the fish gap and the residual bash 3.2 limitation stated explicitly; new "Shell Completion Installation" section in `tech-spec.md`; `README.md`, `docs/site/user-guide/commands.md`, and `docs/site/user-guide/install-options.md` updated for the command group.
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
- **`heal` printed its warnings twice** (Story R.h.1). `_warn_if_go_md_tracked` and `_warn_if_local_install_under_pyve` were each registered at both the pre-invoke hook and the `heal` command, so `project-guide heal` emitted the tracked-`go.md` warning and the local-install guidance — including its `pip uninstall` advice — twice. `heal` now relies on the hook for the warning text and calls `_warn_if_local_install_under_pyve` solely for its heal-scoped provisioning offer (new `already_warned` parameter). No gate changed: the Q-4 rule that removal advice appears only on `pyve self provision --status` exit 0 is untouched.
|
|
32
|
+
- **stdout purity for `completion show`** (Story R.c). The auto-heal hook's `Update?` confirm and the legacy-config `Migrated` notice wrote to **stdout** ahead of every subcommand, so `eval "$(project-guide completion show)"` would have evaluated them as shell code. Both now go to stderr, matching the rest of the hook.
|
|
33
|
+
|
|
34
|
+
### Known limitations
|
|
35
|
+
- **fish is not supported.** Click can generate a fish script, but fish uses a completions-directory mechanism with no rc block, so project-guide cannot install, remove, or report on what it would generate; `--shell fish` is refused rather than emitting an unmanageable script.
|
|
36
|
+
- **Staleness is a dead-path test only.** A block generated by an older project-guide whose script template has since changed is not detected as stale; re-run `completion install` after upgrading.
|
|
37
|
+
- **PowerShell / Windows shells** have no Click generator, a documented asymmetry against project-guide's general Windows support.
|
|
38
|
+
- **Windows is unverified even for bash and zsh.** Path handling is `os.path`-based, so on Windows the baked `--bin` is a backslash path that a bash-family shell such as git-bash will not interpret as intended. The command group does not refuse to run there; it has simply only been exercised on macOS and Linux. A Windows decision is deferred to a follow-on story.
|
|
39
|
+
|
|
10
40
|
## [2.18.1] - 2026-08-01
|
|
11
41
|
|
|
12
42
|
**`project-guide git-commit` subcommand (Story R.a).** gitbetter added a `git-commit` subcommand for iterating on commits locally and pushing a batch to GitHub later (saving GitHub Actions CI minutes). project-guide gains the sibling wrapper with an identical interface and behavior to `git-push`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
2
|
Name: project-guide
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.19.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/
|
|
@@ -75,7 +75,7 @@ When you customize a file for your project, mark it as overridden so future pack
|
|
|
75
75
|
- **Gentle Force Updates** - Automatic `.bak` files created if you `--force` update a custom file
|
|
76
76
|
- **CLI Interface** - Intuitive commands for every step of the workflow (init, mode, status, update, heal, override, purge, …)
|
|
77
77
|
- **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
|
|
78
|
-
- **Shell Completion** - Tab completion for commands, flags, and mode names (bash
|
|
78
|
+
- **Shell Completion** - `project-guide completion install` wires up Tab completion for commands, flags, and mode names (bash and zsh), and keeps working even when project-guide lives off your `PATH`
|
|
79
79
|
- **Well Tested** - Comprehensive test coverage across CLI, rendering, and action modules
|
|
80
80
|
- **Zero Configuration** - Works with sensible defaults out of the box
|
|
81
81
|
- **Cross-Platform** - Runs on macOS, Linux, and Windows with Python 3.11+
|
|
@@ -110,17 +110,22 @@ click, jinja2, pyyaml, packaging
|
|
|
110
110
|
|
|
111
111
|
### Shell Completion (Optional)
|
|
112
112
|
|
|
113
|
-
Enable Tab completion for commands, flags, and mode names
|
|
113
|
+
Enable Tab completion for commands, flags, and mode names — project-guide installs it for you:
|
|
114
114
|
|
|
115
115
|
```bash
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
project-guide completion install
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
Then restart your shell. `--shell` defaults to `auto` (detected from `$SHELL`); pass `bash` or `zsh` explicitly if you want the other one too.
|
|
118
120
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
```bash
|
|
122
|
+
project-guide completion status # absent / installed / stale, per shell
|
|
123
|
+
project-guide completion uninstall # restores your rc file byte-for-byte
|
|
121
124
|
```
|
|
122
125
|
|
|
123
|
-
|
|
126
|
+
The installed script does **not** depend on `PATH`, so completion keeps working when project-guide is hosted behind a shim (pyve's toolchain layout). If you later move or upgrade that binary, `project-guide heal` warns that completion has gone stale and re-running `completion install` fixes it.
|
|
127
|
+
|
|
128
|
+
**bash and zsh only** — fish is not yet supported. See [Installation Options](https://pointmatic.github.io/project-guide/user-guide/install-options/#shell-completion-optional) for what gets written where, and the known limitations.
|
|
124
129
|
|
|
125
130
|
## Quick Start
|
|
126
131
|
|
|
@@ -39,7 +39,7 @@ When you customize a file for your project, mark it as overridden so future pack
|
|
|
39
39
|
- **Gentle Force Updates** - Automatic `.bak` files created if you `--force` update a custom file
|
|
40
40
|
- **CLI Interface** - Intuitive commands for every step of the workflow (init, mode, status, update, heal, override, purge, …)
|
|
41
41
|
- **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
|
|
42
|
-
- **Shell Completion** - Tab completion for commands, flags, and mode names (bash
|
|
42
|
+
- **Shell Completion** - `project-guide completion install` wires up Tab completion for commands, flags, and mode names (bash and zsh), and keeps working even when project-guide lives off your `PATH`
|
|
43
43
|
- **Well Tested** - Comprehensive test coverage across CLI, rendering, and action modules
|
|
44
44
|
- **Zero Configuration** - Works with sensible defaults out of the box
|
|
45
45
|
- **Cross-Platform** - Runs on macOS, Linux, and Windows with Python 3.11+
|
|
@@ -74,17 +74,22 @@ click, jinja2, pyyaml, packaging
|
|
|
74
74
|
|
|
75
75
|
### Shell Completion (Optional)
|
|
76
76
|
|
|
77
|
-
Enable Tab completion for commands, flags, and mode names
|
|
77
|
+
Enable Tab completion for commands, flags, and mode names — project-guide installs it for you:
|
|
78
78
|
|
|
79
79
|
```bash
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
project-guide completion install
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Then restart your shell. `--shell` defaults to `auto` (detected from `$SHELL`); pass `bash` or `zsh` explicitly if you want the other one too.
|
|
82
84
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
```bash
|
|
86
|
+
project-guide completion status # absent / installed / stale, per shell
|
|
87
|
+
project-guide completion uninstall # restores your rc file byte-for-byte
|
|
85
88
|
```
|
|
86
89
|
|
|
87
|
-
|
|
90
|
+
The installed script does **not** depend on `PATH`, so completion keeps working when project-guide is hosted behind a shim (pyve's toolchain layout). If you later move or upgrade that binary, `project-guide heal` warns that completion has gone stale and re-running `completion install` fixes it.
|
|
91
|
+
|
|
92
|
+
**bash and zsh only** — fish is not yet supported. See [Installation Options](https://pointmatic.github.io/project-guide/user-guide/install-options/#shell-completion-optional) for what gets written where, and the known limitations.
|
|
88
93
|
|
|
89
94
|
## Quick Start
|
|
90
95
|
|
|
@@ -17,6 +17,7 @@ project-guide provides twelve commands for managing LLM workflow files across yo
|
|
|
17
17
|
| `override` | Mark a file as overridden to prevent updates |
|
|
18
18
|
| `unoverride` | Remove override status from a file |
|
|
19
19
|
| `overrides` | List all overridden files |
|
|
20
|
+
| `completion` | Install, remove, inspect, or print shell completion |
|
|
20
21
|
| `purge` | Remove all files and configuration |
|
|
21
22
|
|
|
22
23
|
## init
|
|
@@ -256,6 +257,7 @@ project-guide heal [OPTIONS]
|
|
|
256
257
|
|
|
257
258
|
- **Tracked `go.md` (v2.8.0+)** - if `docs/project-guide/go.md` is in your git index, `heal` warns (stderr) with a copyable `git rm --cached … && git commit` migration command. The policy is untracked-by-default: `go.md` stays visible to IDE LLMs but out of the index so branch switches don't trip on it. Non-fatal; apply on your own schedule.
|
|
258
259
|
- **Local install under pyve hosting (v2.13.0+)** - when pyve is detected and a project-local `site-packages` install would shadow pyve's global one, `heal` warns with a copyable `pip uninstall project-guide` command. Non-fatal and never auto-removed; an editable source checkout is not flagged.
|
|
260
|
+
- **Stale or partial shell completion (v2.19.0+)** - when [completion](#completion) is installed but its baked binary path no longer resolves (typically after a pyve toolchain bump), or when only half of the zsh pair survives, `heal` warns on stderr naming the dead path and the `project-guide completion install` remedy. Completion degrades *silently* in that state by design, so this warning is the only signal you get. **Never auto-repaired** — writing to your shell startup files unasked is out of bounds. Silent when completion is absent or current, and under `--no-input`.
|
|
259
261
|
|
|
260
262
|
## git-push
|
|
261
263
|
|
|
@@ -393,6 +395,56 @@ project-guide purge --no-input --force
|
|
|
393
395
|
!!! warning
|
|
394
396
|
This operation cannot be undone. Use with caution.
|
|
395
397
|
|
|
398
|
+
## completion
|
|
399
|
+
|
|
400
|
+
Manage shell completion for `project-guide` (bash and zsh).
|
|
401
|
+
|
|
402
|
+
```bash
|
|
403
|
+
project-guide completion install [OPTIONS]
|
|
404
|
+
project-guide completion uninstall [OPTIONS]
|
|
405
|
+
project-guide completion status [OPTIONS]
|
|
406
|
+
project-guide completion show [OPTIONS]
|
|
407
|
+
```
|
|
408
|
+
|
|
409
|
+
This is the only command group that writes **outside** your project directory. See [Shell Completion](install-options.md#shell-completion-optional) for the full walkthrough, what gets written where, and the known limitations.
|
|
410
|
+
|
|
411
|
+
### Options
|
|
412
|
+
|
|
413
|
+
| Option | Applies to | Description |
|
|
414
|
+
|--------|-----------|-------------|
|
|
415
|
+
| `--shell auto\|bash\|zsh` | all | Shell to act on. `auto` (default) detects from `$SHELL`; `status` defaults to `all` |
|
|
416
|
+
| `--bin PATH` | `install`, `show` | Absolute path to bake into the completion callback |
|
|
417
|
+
| `--rc PATH` | `install`, `uninstall`, `status` | Shell rc file. Defaults to `~/.bashrc` or `~/.zshrc` |
|
|
418
|
+
| `--dir PATH` | `install`, `uninstall`, `status` | zsh only: `fpath` directory for the `_project-guide` autoload file |
|
|
419
|
+
| `--quiet` / `-q` | `install`, `uninstall` | No stdout on success; warnings still reach stderr |
|
|
420
|
+
|
|
421
|
+
### Examples
|
|
422
|
+
|
|
423
|
+
```bash
|
|
424
|
+
project-guide completion install # detect the shell, install
|
|
425
|
+
project-guide completion install --shell bash # set up the other shell too
|
|
426
|
+
project-guide completion status # report both shells
|
|
427
|
+
project-guide completion show --shell zsh # print the script, write nothing
|
|
428
|
+
project-guide completion uninstall # byte-clean removal
|
|
429
|
+
```
|
|
430
|
+
|
|
431
|
+
### What It Does
|
|
432
|
+
|
|
433
|
+
- **`install`** — writes the completion wiring and is idempotent; re-running when everything is current writes nothing. Your rc file is backed up (`.bak.<timestamp>`) before any change, and a completion block project-guide did not write is reported rather than edited. A block written by an older pyve is replaced in place, so you never end up with two blocks registering the same completion.
|
|
434
|
+
- **`uninstall`** — restores the rc file byte-for-byte and removes the zsh autoload file. Safe to run when nothing is installed.
|
|
435
|
+
- **`status`** — reports each shell as `absent`, `installed`, `stale`, `partial`, or `damaged`. Exits `0` when everything is absent or current, `1` when something needs attention, `2` on an I/O error.
|
|
436
|
+
- **`show`** — prints the script to stdout and writes nothing, so `eval "$(project-guide completion show)"` is safe.
|
|
437
|
+
|
|
438
|
+
### Why Completion Survives an Off-`PATH` Install
|
|
439
|
+
|
|
440
|
+
The resolved binary path is baked into the completion callback, so completion keeps working when project-guide is hosted behind a shim that is not on your `PATH` (pyve's toolchain layout). Host tools pass their stable handle with `--bin`.
|
|
441
|
+
|
|
442
|
+
The trade-off is that the baked path can go **stale** if that binary later moves — which `completion status` reports and `heal` warns about.
|
|
443
|
+
|
|
444
|
+
### Unattended / CI Use
|
|
445
|
+
|
|
446
|
+
`install` and `uninstall` never prompt, so they need no `--no-input`; pair `--quiet` with them when scripting. `show` and `status` take neither flag — their stdout is the payload.
|
|
447
|
+
|
|
396
448
|
## Global Options
|
|
397
449
|
|
|
398
450
|
All commands support these global options:
|
|
@@ -107,24 +107,13 @@ All commands will respect this setting.
|
|
|
107
107
|
|
|
108
108
|
## Shell Completion
|
|
109
109
|
|
|
110
|
-
project-guide supports Tab completion for commands, flags, and mode names in bash
|
|
110
|
+
project-guide supports Tab completion for commands, flags, and mode names in **bash and zsh** (fish is not yet supported). Completion is opt-in, and project-guide installs it for you:
|
|
111
111
|
|
|
112
|
-
**Bash** (`~/.bashrc`):
|
|
113
112
|
```bash
|
|
114
|
-
|
|
113
|
+
project-guide completion install
|
|
115
114
|
```
|
|
116
115
|
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
eval "$(_PROJECT_GUIDE_COMPLETE=zsh_source project-guide)"
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
**Fish** (`~/.config/fish/completions/project-guide.fish`):
|
|
123
|
-
```bash
|
|
124
|
-
_PROJECT_GUIDE_COMPLETE=fish_source project-guide | source
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
After updating your shell config, restart your shell (or `source` the file). Then:
|
|
116
|
+
Restart your shell (or `source` the rc file it names). Then:
|
|
128
117
|
|
|
129
118
|
- `project-guide <TAB>` completes command names (`init`, `mode`, `status`, etc.)
|
|
130
119
|
- `project-guide mode <TAB>` completes mode names from the active project's `.metadata.yml` (dynamic — works with any custom modes)
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
project-guide can be installed via pyve (recommended), pip, pipx, or from source.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Python 3.11 or higher
|
|
8
|
+
- pyve, pip, or pipx package manager
|
|
9
|
+
|
|
10
|
+
project-guide depends on Jinja2 for its mode-driven templating system. This is installed automatically as a dependency.
|
|
11
|
+
|
|
12
|
+
## Install via pyve (recommended)
|
|
13
|
+
|
|
14
|
+
If you use [pyve](https://pointmatic.github.io/pyve/), let pyve install and manage Project-Guide globally for you:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pyve self install
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
`pyve self install` provisions project-guide in pyve's toolchain venv and creates a `~/.local/bin/project-guide` shim, so a single install on your `PATH` serves every project — no per-project `pip install` needed. project-guide keeps all per-project state in each project's `.project-guide.yml` and `docs/project-guide/` tree, so the shared install is never written to. When pyve is detected at `init` time, project-guide's onboarding, `status`, and `heal` output adapt to pyve-managed hosting.
|
|
21
|
+
|
|
22
|
+
## Install via pip
|
|
23
|
+
|
|
24
|
+
The simplest way to install project-guide is using pip:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
pip install project-guide
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
This installs project-guide and its dependencies (including Jinja2) in your current Python environment.
|
|
31
|
+
|
|
32
|
+
## Install via pipx (recommended for standalone CLI use)
|
|
33
|
+
|
|
34
|
+
If you don't use pyve, pipx is the best way to get system-wide CLI access without affecting your project's dependencies:
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
pipx install project-guide
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
pipx installs the tool in an isolated environment while making the CLI command globally available.
|
|
41
|
+
|
|
42
|
+
If you don't have pipx installed:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# On macOS/Linux
|
|
46
|
+
python3 -m pip install --user pipx
|
|
47
|
+
python3 -m pipx ensurepath
|
|
48
|
+
|
|
49
|
+
# On Windows
|
|
50
|
+
py -m pip install --user pipx
|
|
51
|
+
py -m pipx ensurepath
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Install from Source
|
|
55
|
+
|
|
56
|
+
To install the latest development version from GitHub:
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git clone https://github.com/pointmatic/project-guide.git
|
|
60
|
+
cd project-guide
|
|
61
|
+
pip install -e .
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
For development with all optional dependencies:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
pip install -e ".[dev,docs]"
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
## Verify Installation
|
|
71
|
+
|
|
72
|
+
After installation, verify that project-guide is available:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
project-guide --version
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
You should see the version number displayed.
|
|
79
|
+
|
|
80
|
+
## Shell Completion (Optional)
|
|
81
|
+
|
|
82
|
+
Enable Tab completion for `project-guide` commands, flags, and mode names. project-guide installs it for you — you no longer hand-copy a snippet into your rc file.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
project-guide completion install
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Restart your shell (or `source` the rc file it names). Now you can:
|
|
89
|
+
|
|
90
|
+
- `project-guide <TAB>` — complete command names (`init`, `mode`, `status`, etc.)
|
|
91
|
+
- `project-guide mode <TAB>` — complete mode names (`default`, `plan_concept`, `code_direct`, etc.) — reads `.metadata.yml` from your current project
|
|
92
|
+
- `project-guide --<TAB>` — complete flags
|
|
93
|
+
|
|
94
|
+
Mode name completion is dynamic and reads the active project's `.metadata.yml`, so it works correctly even if you have custom modes.
|
|
95
|
+
|
|
96
|
+
### Supported shells
|
|
97
|
+
|
|
98
|
+
**bash and zsh.** `--shell` defaults to `auto`, detected from `$SHELL`; pass `--shell bash` or `--shell zsh` explicitly to set up the other one as well.
|
|
99
|
+
|
|
100
|
+
**fish is not supported yet.** Click can generate a fish script, but fish uses a different install mechanism (a file in `~/.config/fish/completions/`, no rc block), so project-guide cannot manage what it would generate. Rather than emit a script it cannot install, uninstall, or report on, the command refuses fish outright.
|
|
101
|
+
|
|
102
|
+
### What gets written where
|
|
103
|
+
|
|
104
|
+
| Shell | Artifacts |
|
|
105
|
+
|---|---|
|
|
106
|
+
| bash | one sentinel-bracketed block in `~/.bashrc` containing the completion script inline |
|
|
107
|
+
| zsh | an autoload file `_project-guide` in `$XDG_DATA_HOME/project-guide/zsh-completions`, plus a small block in `~/.zshrc` that adds it to `fpath` and registers it |
|
|
108
|
+
|
|
109
|
+
Override the locations with `--rc <path>` and (zsh) `--dir <path>`.
|
|
110
|
+
|
|
111
|
+
The block is bracketed by `# >>> project-guide completion >>>` / `# <<< project-guide completion <<<`, and:
|
|
112
|
+
|
|
113
|
+
- **Your rc file is backed up** (`.bak.<timestamp>`) before any change.
|
|
114
|
+
- **Re-running is a no-op** when everything is already current.
|
|
115
|
+
- **`project-guide completion uninstall` restores the file byte-for-byte**, and removes the zsh autoload file too.
|
|
116
|
+
- **Nothing else is touched.** A completion block project-guide did not write is reported and left alone. The one exception is a block written by an older pyve, which is replaced in place rather than left to register the same completion twice.
|
|
117
|
+
|
|
118
|
+
### Checking and repairing
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
project-guide completion status
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Reports each shell as `absent`, `installed`, `stale`, `partial`, or `damaged`, and exits non-zero if anything needs attention.
|
|
125
|
+
|
|
126
|
+
**`stale`** means the binary path baked into the script no longer resolves — the usual cause is a host tool (pyve) bumping its toolchain. Completion degrades *silently* in that state by design, so `project-guide heal` warns about it on stderr with the remedy. It never edits your rc file on its own; re-run `project-guide completion install` when you choose.
|
|
127
|
+
|
|
128
|
+
To see the script without installing anything:
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
project-guide completion show --shell zsh
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
### Known limitations
|
|
135
|
+
|
|
136
|
+
- **macOS system bash 3.2** registers completion, but **directory and file** completions fail because Click's generated script calls `compopt`, a bash ≥ 4.0 builtin. Command, subcommand, mode-name, and flag completion all work. Homebrew bash and Linux bash are unaffected.
|
|
137
|
+
- **Staleness detection is a dead-path check.** If a project-guide upgrade changes the completion script itself, `status` will still say `installed`; re-run `completion install` after upgrading to refresh it.
|
|
138
|
+
- **PowerShell and other Windows shells** are not supported — Click ships no generator for them.
|
|
139
|
+
- **Windows is unverified even for bash and zsh.** Completion targets POSIX shells and has only been exercised on macOS and Linux. On Windows the baked binary path follows Windows conventions (`D:\…`), which a bash-family shell such as git-bash will not read the way you expect. The commands do not refuse to run there; they are simply untested.
|
|
140
|
+
|
|
141
|
+
## Next Steps
|
|
142
|
+
|
|
143
|
+
- [Getting Started](../getting-started.md) - Get started with your first project
|
|
144
|
+
- [Configuration](configuration.md) - Learn about configuration options
|
|
145
|
+
- [Commands](commands.md) - Explore all available commands
|