Skip to content

Commit 527bd5b

Browse files
committed
fix: add missing scripts sections to command templates
- Add scripts section to clarify.md (check-prerequisites.sh --paths-only) - Add scripts section to constitution.md (placeholder echo command) - Add Makefile for build automation (make build, make build-poetry, etc.)
1 parent 56fc678 commit 527bd5b

4 files changed

Lines changed: 55 additions & 1 deletion

File tree

Makefile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
.PHONY: build clean install dev test lint format help
2+
3+
# Default target
4+
help:
5+
@echo "SpecOps CLI - Available targets:"
6+
@echo ""
7+
@echo " build Build the package (using poetry)"
8+
@echo " clean Remove build artifacts"
9+
@echo " install Install the package locally"
10+
@echo " dev Install in development mode"
11+
@echo " test Run tests"
12+
@echo " lint Run linting"
13+
@echo " format Format code"
14+
@echo ""
15+
16+
17+
# Build using poetry
18+
build:
19+
poetry build
20+
21+
# Clean build artifacts
22+
clean:
23+
rm -rf dist/
24+
rm -rf build/
25+
rm -rf *.egg-info
26+
rm -rf src/*.egg-info
27+
find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true
28+
find . -type f -name "*.pyc" -delete 2>/dev/null || true
29+
30+
# Install the package
31+
install: build
32+
pip install dist/*.whl
33+
34+
# Development install
35+
dev:
36+
pip install -e .
37+
38+
# Run tests
39+
test:
40+
pytest
41+
42+
# Lint
43+
lint:
44+
ruff check src/
45+
46+
# Format
47+
format:
48+
ruff format src/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "specops-cli"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "SpecOps CLI, part of DotLabs Spec Ops. A tool to bootstrap your projects for Spec-Driven Infrastructure as Code."
55
requires-python = ">=3.11"
66
dependencies = [

templates/commands/clarify.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ handoffs:
44
- label: Build Technical Plan
55
agent: specops.plan
66
prompt: Create implementation plan for the infrastructure. I am deploying with...
7+
scripts:
8+
sh: scripts/bash/check-prerequisites.sh --json --paths-only
9+
ps: scripts/powershell/check-prerequisites.ps1 -Json -PathsOnly
710
---
811

912
## User Input

templates/commands/constitution.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ handoffs:
44
- label: Build Specification
55
agent: specops.specify
66
prompt: Implement the infrastructure specification based on the updated constitution. I want to deploy...
7+
scripts:
8+
sh: echo 'Constitution command - no setup script required'
9+
ps: Write-Output 'Constitution command - no setup script required'
710
---
811

912
## User Input

0 commit comments

Comments
 (0)