Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ All notable changes to this project will be documented in this file.

---

## [0.43.1] - Unreleased

### Changed

- **Packaging:** Workflow slash-command prompts (`specfact.*.md`) are no longer duplicated in the core wheel; canonical copies live in **specfact-cli-modules** bundle packages under each bundle’s `resources/prompts/`. Install bundles (or use a dev repo checkout with `resources/prompts/`) for `specfact init ide` prompt export.
- IDE template drift checks on startup resolve source templates via the same installed-module discovery path as `specfact init ide`, not a single core `resources/prompts` directory inside the package.

---

## [0.43.0] - 2026-03-28

### Added
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/ai-ide-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ specfact init ide --ide cursor --install-deps
**What it does**:

1. Detects your IDE (or uses `--ide` flag)
2. Copies prompt templates from `resources/prompts/` to IDE-specific location
2. Copies prompt templates from installed bundle modules (or an optional dev checkout under `resources/prompts/`) to the IDE-specific location
3. Creates/updates IDE settings if needed
4. Makes slash commands available in your IDE
5. Optionally installs required packages (`beartype`, `icontract`, `crosshair-tool`, `pytest`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,33 @@ HATCH_DATA_DIR=/tmp/hatch-data HATCH_CACHE_DIR=/tmp/hatch-cache VIRTUALENV_OVERR

- Result: passed.
- Summary: `specfact code review run` completed with no findings on the shipped production files.

## Task 3.5 — Remove bundle workflow prompts from core wheel (2026-03-28)

- Change: drop `resources/prompts` from `[tool.hatch.build.targets.wheel.force-include]`, delete repo-root `resources/prompts/`, align startup drift checks and init template resolution with `discover_prompt_template_files`, bump **0.43.1**.

### Pre-implementation failing run (Task 3.5)

- Timestamp: 2026-03-28T00:18:00+01:00 (local)
- Command:

```bash
cd /home/dom/git/nold-ai/specfact-cli-worktrees/chore/packaging-02-finish-core-prompt-cleanup
hatch run smart-test-full
```

- Result: failed.
- Failure summary: exit code 1 — tests and/or checks failed after removing `resources/prompts` from the wheel and repo without updating startup checks, init template resolution, and tests (expected until implementation was completed).

### Post-change verification (Task 3.5)

```bash
cd /home/dom/git/nold-ai/specfact-cli-worktrees/chore/packaging-02-finish-core-prompt-cleanup
hatch env create
hatch run format && hatch run type-check && hatch run contract-test
hatch run smart-test-full
```

- Timestamp: 2026-03-28T00:22:00+01:00 (local)
- Command: `hatch run smart-test-full` (from worktree `chore/packaging-02-finish-core-prompt-cleanup`)
- Result: passed (exit 0).
Comment thread
djm81 marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ None.
<!-- source_repo: nold-ai/specfact-cli -->
- **GitHub Issue**: #441
- **Issue URL**: <https://github.com/nold-ai/specfact-cli/issues/441>
- **Last Synced Status**: proposed
- **Last Synced Status**: implementation-complete (task 3.5 core prompt removal; pending archive)
- **Sanitized**: false
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
- [x] 3.2 Replace brittle path-injection behavior with installation-scoped runtime/module resolution and explicit compatibility diagnostics.
- [x] 3.3 Refactor `specfact init ide` to build a prompt catalog from installed module resource locations rather than `specfact_cli/resources/prompts`.
- [x] 3.4 Refactor core init/install resource copying to resolve module-owned templates, starting with backlog field mapping templates, from installed bundle packages.
- [ ] 3.5 Remove or relocate bundle-owned prompt/resources from core packaging so ownership matches installed modules.
- [x] 3.5 Remove or relocate bundle-owned prompt/resources from core packaging so ownership matches installed modules.

## 4. Validation And Documentation

Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "specfact-cli"
version = "0.43.0"
version = "0.43.1"
description = "The swiss knife CLI for agile DevOps teams. Keep backlog, specs, tests, and code in sync with validation and contract enforcement for new projects and long-lived codebases."
readme = "README.md"
requires-python = ">=3.11"
Expand Down Expand Up @@ -391,7 +391,6 @@ only-include = [
sources = ["src"]

[tool.hatch.build.targets.wheel.force-include]
"resources/prompts" = "specfact_cli/resources/prompts"
"resources/templates" = "specfact_cli/resources/templates"
"resources/schemas" = "specfact_cli/resources/schemas"
"resources/mappings" = "specfact_cli/resources/mappings"
Expand Down
119 changes: 0 additions & 119 deletions resources/prompts/shared/cli-enforcement.md

This file was deleted.

Loading
Loading