@sniper.ai/core 1.0.0 → 2.0.0
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.
- package/README.md +122 -32
- package/framework/checklists/debug-review.md +34 -0
- package/framework/checklists/feature-review.md +42 -0
- package/framework/checklists/ingest-review.md +42 -0
- package/framework/checklists/memory-review.md +30 -0
- package/framework/checklists/perf-review.md +33 -0
- package/framework/checklists/refactor-review.md +33 -0
- package/framework/checklists/security-review.md +34 -0
- package/framework/checklists/test-review.md +32 -0
- package/framework/checklists/workspace-review.md +34 -0
- package/framework/commands/sniper-audit.md +1549 -0
- package/framework/commands/sniper-compose.md +88 -2
- package/framework/commands/sniper-debug.md +337 -0
- package/framework/commands/sniper-discover.md +41 -15
- package/framework/commands/sniper-feature.md +515 -0
- package/framework/commands/sniper-ingest.md +506 -0
- package/framework/commands/sniper-init.md +21 -5
- package/framework/commands/sniper-memory.md +219 -0
- package/framework/commands/sniper-plan.md +41 -19
- package/framework/commands/sniper-review.md +106 -42
- package/framework/commands/sniper-solve.md +47 -14
- package/framework/commands/sniper-sprint.md +132 -17
- package/framework/commands/sniper-status.md +240 -35
- package/framework/commands/sniper-workspace-feature.md +267 -0
- package/framework/commands/sniper-workspace-init.md +252 -0
- package/framework/commands/sniper-workspace-status.md +112 -0
- package/framework/commands/sniper-workspace-validate.md +138 -0
- package/framework/config.template.yaml +88 -9
- package/framework/personas/process/architecture-cartographer.md +25 -0
- package/framework/personas/process/code-archaeologist.md +22 -0
- package/framework/personas/process/code-investigator.md +29 -0
- package/framework/personas/process/code-reviewer.md +26 -0
- package/framework/personas/process/contract-designer.md +31 -0
- package/framework/personas/process/convention-miner.md +27 -0
- package/framework/personas/process/coverage-analyst.md +24 -0
- package/framework/personas/process/flake-hunter.md +30 -0
- package/framework/personas/process/impact-analyst.md +23 -0
- package/framework/personas/process/integration-validator.md +29 -0
- package/framework/personas/process/log-analyst.md +22 -0
- package/framework/personas/process/migration-architect.md +24 -0
- package/framework/personas/process/perf-profiler.md +27 -0
- package/framework/personas/process/release-manager.md +23 -0
- package/framework/personas/process/retro-analyst.md +30 -0
- package/framework/personas/process/threat-modeler.md +30 -0
- package/framework/personas/process/triage-lead.md +23 -0
- package/framework/personas/process/vuln-scanner.md +27 -0
- package/framework/personas/process/workspace-orchestrator.md +30 -0
- package/framework/spawn-prompts/_template.md +3 -0
- package/framework/teams/debug.yaml +56 -0
- package/framework/teams/feature-plan.yaml +61 -0
- package/framework/teams/ingest.yaml +85 -0
- package/framework/teams/perf.yaml +33 -0
- package/framework/teams/refactor.yaml +34 -0
- package/framework/teams/retro.yaml +30 -0
- package/framework/teams/review-pr.yaml +73 -0
- package/framework/teams/review-release.yaml +70 -0
- package/framework/teams/security.yaml +59 -0
- package/framework/teams/test.yaml +59 -0
- package/framework/teams/workspace-feature.yaml +69 -0
- package/framework/teams/workspace-validation.yaml +27 -0
- package/framework/templates/arch-delta.md +74 -0
- package/framework/templates/architecture.md +24 -1
- package/framework/templates/brief.md +22 -1
- package/framework/templates/bug-report.md +55 -0
- package/framework/templates/contract-validation-report.md +68 -0
- package/framework/templates/contract.yaml +60 -0
- package/framework/templates/conventions.md +59 -0
- package/framework/templates/coverage-report.md +67 -0
- package/framework/templates/epic.md +14 -0
- package/framework/templates/feature-brief.md +54 -0
- package/framework/templates/feature-spec.md +53 -0
- package/framework/templates/flaky-report.md +64 -0
- package/framework/templates/investigation.md +49 -0
- package/framework/templates/memory-anti-pattern.yaml +16 -0
- package/framework/templates/memory-convention.yaml +17 -0
- package/framework/templates/memory-decision.yaml +16 -0
- package/framework/templates/migration-plan.md +47 -0
- package/framework/templates/optimization-plan.md +59 -0
- package/framework/templates/performance-profile.md +64 -0
- package/framework/templates/postmortem.md +69 -0
- package/framework/templates/pr-review.md +50 -0
- package/framework/templates/prd.md +24 -1
- package/framework/templates/refactor-scope.md +52 -0
- package/framework/templates/release-readiness.md +66 -0
- package/framework/templates/retro.yaml +44 -0
- package/framework/templates/security.md +22 -1
- package/framework/templates/story.md +16 -0
- package/framework/templates/threat-model.md +71 -0
- package/framework/templates/ux-spec.md +18 -1
- package/framework/templates/vulnerability-report.md +56 -0
- package/framework/templates/workspace-brief.md +52 -0
- package/framework/templates/workspace-plan.md +50 -0
- package/framework/workflows/workspace-feature.md +71 -0
- package/package.json +2 -2
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Workspace Feature Workflow
|
|
2
|
+
|
|
3
|
+
Orchestrate a feature across multiple repositories using contract-first coordination and wave-based sprints.
|
|
4
|
+
|
|
5
|
+
## When to Use
|
|
6
|
+
- A feature requires changes in 2 or more repositories
|
|
7
|
+
- Cross-repo interfaces (APIs, shared types, events) need to be created or modified
|
|
8
|
+
- Implementation ordering matters due to repository dependencies
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
- Workspace initialized (`workspace.yaml` exists)
|
|
12
|
+
- All member repositories have SNIPER initialized (`.sniper/` directory)
|
|
13
|
+
- Dependency graph is up to date in `workspace.yaml`
|
|
14
|
+
|
|
15
|
+
## Execution Order
|
|
16
|
+
|
|
17
|
+
### Step 1: Scoping
|
|
18
|
+
```
|
|
19
|
+
/sniper-workspace feature "{feature description}"
|
|
20
|
+
```
|
|
21
|
+
- Workspace orchestrator reads `workspace.yaml` and per-repo architecture docs
|
|
22
|
+
- Produces workspace feature brief identifying affected repos and wave ordering
|
|
23
|
+
- Gate: **strict** (workspace brief must be approved before contract design)
|
|
24
|
+
|
|
25
|
+
### Step 2: Contract Design
|
|
26
|
+
- Contract designer reads the approved brief
|
|
27
|
+
- Produces interface contracts for all cross-repo communication
|
|
28
|
+
- Contracts are versioned and saved to `contracts/` directory
|
|
29
|
+
- Gate: **strict** (contracts must be approved before implementation begins)
|
|
30
|
+
|
|
31
|
+
### Step 3: Per-Repo Story Generation
|
|
32
|
+
- For each affected repo, run `/sniper-feature` with contract context
|
|
33
|
+
- Stories reference specific contract items they implement
|
|
34
|
+
- Story references saved in workspace feature directory
|
|
35
|
+
|
|
36
|
+
### Step 4: Wave-Based Sprints
|
|
37
|
+
- Execute sprints in dependency order (Wave 1 → Wave 2 → Wave 3)
|
|
38
|
+
- Within each wave, repos in the same tier sprint in parallel
|
|
39
|
+
- After each wave completes:
|
|
40
|
+
1. Run per-repo review gates
|
|
41
|
+
2. Run contract validation between waves
|
|
42
|
+
3. If validation fails, generate fix stories and run corrective sprint
|
|
43
|
+
4. If validation passes, proceed to next wave
|
|
44
|
+
|
|
45
|
+
### Step 5: Integration Validation
|
|
46
|
+
- After all waves complete, run final cross-repo integration check
|
|
47
|
+
- Validates all contracts are fully satisfied
|
|
48
|
+
- Gate: **strict** (integration must pass before feature is marked complete)
|
|
49
|
+
|
|
50
|
+
### Step 6: Feature Complete
|
|
51
|
+
- Mark workspace feature as complete
|
|
52
|
+
- Update contract versions
|
|
53
|
+
- Trigger workspace memory update (conventions learned across repos)
|
|
54
|
+
|
|
55
|
+
## Recovery
|
|
56
|
+
|
|
57
|
+
### Contract Validation Failure
|
|
58
|
+
1. Review the validation report for specific mismatches
|
|
59
|
+
2. Fix stories are auto-generated for each mismatch
|
|
60
|
+
3. Run a corrective sprint in the affected repo(s)
|
|
61
|
+
4. Re-run validation before proceeding to the next wave
|
|
62
|
+
|
|
63
|
+
### Circular Dependencies
|
|
64
|
+
1. If the dependency graph has cycles, the orchestrator will flag them
|
|
65
|
+
2. Manual resolution required: break the cycle by identifying which interface to define first
|
|
66
|
+
3. Create a contract for the interface and proceed with wave ordering
|
|
67
|
+
|
|
68
|
+
### Repo Sprint Failure
|
|
69
|
+
1. If a repo's sprint fails review, fix within that repo before proceeding
|
|
70
|
+
2. Other repos in the same wave are not affected (contract-first isolation)
|
|
71
|
+
3. Dependent waves are blocked until the fix passes review
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sniper.ai/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "SNIPER framework core — personas, teams, templates, checklists, and workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"repository": {
|
|
23
23
|
"type": "git",
|
|
24
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/virkt25/sniper.git",
|
|
25
25
|
"directory": "packages/core"
|
|
26
26
|
},
|
|
27
27
|
"publishConfig": {
|