quantix-mcp 0.4.9 → 0.5.3
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 +12 -1
- package/dist/index.js +20 -5
- package/dist/index.js.map +1 -1
- package/dist/tools/subscriptions.d.ts.map +1 -1
- package/dist/tools/subscriptions.js +46 -1
- package/dist/tools/subscriptions.js.map +1 -1
- package/dist/tools/transactions.d.ts.map +1 -1
- package/dist/tools/transactions.js +5 -5
- package/dist/tools/transactions.js.map +1 -1
- package/dist/types/schemas.d.ts +17 -0
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +21 -4
- package/dist/types/schemas.js.map +1 -1
- package/package.json +9 -4
- package/.claude/commands/opsx/apply.md +0 -152
- package/.claude/commands/opsx/archive.md +0 -157
- package/.claude/commands/opsx/bulk-archive.md +0 -242
- package/.claude/commands/opsx/continue.md +0 -114
- package/.claude/commands/opsx/explore.md +0 -174
- package/.claude/commands/opsx/ff.md +0 -94
- package/.claude/commands/opsx/new.md +0 -69
- package/.claude/commands/opsx/onboard.md +0 -525
- package/.claude/commands/opsx/sync.md +0 -134
- package/.claude/commands/opsx/verify.md +0 -164
- package/.claude/settings.local.json +0 -9
- package/.claude/skills/openspec-apply-change/SKILL.md +0 -156
- package/.claude/skills/openspec-archive-change/SKILL.md +0 -114
- package/.claude/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.claude/skills/openspec-continue-change/SKILL.md +0 -118
- package/.claude/skills/openspec-explore/SKILL.md +0 -290
- package/.claude/skills/openspec-ff-change/SKILL.md +0 -101
- package/.claude/skills/openspec-new-change/SKILL.md +0 -74
- package/.claude/skills/openspec-onboard/SKILL.md +0 -529
- package/.claude/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.claude/skills/openspec-verify-change/SKILL.md +0 -168
- package/.dockerignore +0 -8
- package/.gemini/commands/opsx/apply.toml +0 -149
- package/.gemini/commands/opsx/archive.toml +0 -154
- package/.gemini/commands/opsx/bulk-archive.toml +0 -239
- package/.gemini/commands/opsx/continue.toml +0 -111
- package/.gemini/commands/opsx/explore.toml +0 -171
- package/.gemini/commands/opsx/ff.toml +0 -91
- package/.gemini/commands/opsx/new.toml +0 -66
- package/.gemini/commands/opsx/onboard.toml +0 -522
- package/.gemini/commands/opsx/sync.toml +0 -131
- package/.gemini/commands/opsx/verify.toml +0 -161
- package/.gemini/skills/openspec-apply-change/SKILL.md +0 -156
- package/.gemini/skills/openspec-archive-change/SKILL.md +0 -114
- package/.gemini/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.gemini/skills/openspec-continue-change/SKILL.md +0 -118
- package/.gemini/skills/openspec-explore/SKILL.md +0 -290
- package/.gemini/skills/openspec-ff-change/SKILL.md +0 -101
- package/.gemini/skills/openspec-new-change/SKILL.md +0 -74
- package/.gemini/skills/openspec-onboard/SKILL.md +0 -529
- package/.gemini/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.gemini/skills/openspec-verify-change/SKILL.md +0 -168
- package/.github/agents/copilot-instructions.md +0 -32
- package/.github/agents/speckit.analyze.agent.md +0 -184
- package/.github/agents/speckit.checklist.agent.md +0 -294
- package/.github/agents/speckit.clarify.agent.md +0 -181
- package/.github/agents/speckit.constitution.agent.md +0 -82
- package/.github/agents/speckit.implement.agent.md +0 -135
- package/.github/agents/speckit.plan.agent.md +0 -89
- package/.github/agents/speckit.specify.agent.md +0 -258
- package/.github/agents/speckit.tasks.agent.md +0 -137
- package/.github/agents/speckit.taskstoissues.agent.md +0 -30
- package/.github/copilot-instructions.md +0 -17
- package/.github/prompts/speckit.analyze.prompt.md +0 -3
- package/.github/prompts/speckit.checklist.prompt.md +0 -3
- package/.github/prompts/speckit.clarify.prompt.md +0 -3
- package/.github/prompts/speckit.constitution.prompt.md +0 -3
- package/.github/prompts/speckit.implement.prompt.md +0 -3
- package/.github/prompts/speckit.plan.prompt.md +0 -3
- package/.github/prompts/speckit.specify.prompt.md +0 -3
- package/.github/prompts/speckit.tasks.prompt.md +0 -3
- package/.github/prompts/speckit.taskstoissues.prompt.md +0 -3
- package/.github/workflows/publish.yaml +0 -29
- package/.opencode/command/speckit.analyze.md +0 -184
- package/.opencode/command/speckit.checklist.md +0 -294
- package/.opencode/command/speckit.clarify.md +0 -181
- package/.opencode/command/speckit.constitution.md +0 -84
- package/.opencode/command/speckit.implement.md +0 -135
- package/.opencode/command/speckit.plan.md +0 -89
- package/.opencode/command/speckit.specify.md +0 -258
- package/.opencode/command/speckit.tasks.md +0 -137
- package/.opencode/command/speckit.taskstoissues.md +0 -30
- package/.qwen/commands/opsx-apply.toml +0 -149
- package/.qwen/commands/opsx-archive.toml +0 -154
- package/.qwen/commands/opsx-bulk-archive.toml +0 -239
- package/.qwen/commands/opsx-continue.toml +0 -111
- package/.qwen/commands/opsx-explore.toml +0 -171
- package/.qwen/commands/opsx-ff.toml +0 -91
- package/.qwen/commands/opsx-new.toml +0 -66
- package/.qwen/commands/opsx-onboard.toml +0 -522
- package/.qwen/commands/opsx-sync.toml +0 -131
- package/.qwen/commands/opsx-verify.toml +0 -161
- package/.qwen/skills/openspec-apply-change/SKILL.md +0 -156
- package/.qwen/skills/openspec-archive-change/SKILL.md +0 -114
- package/.qwen/skills/openspec-bulk-archive-change/SKILL.md +0 -246
- package/.qwen/skills/openspec-continue-change/SKILL.md +0 -118
- package/.qwen/skills/openspec-explore/SKILL.md +0 -290
- package/.qwen/skills/openspec-ff-change/SKILL.md +0 -101
- package/.qwen/skills/openspec-new-change/SKILL.md +0 -74
- package/.qwen/skills/openspec-onboard/SKILL.md +0 -529
- package/.qwen/skills/openspec-sync-specs/SKILL.md +0 -138
- package/.qwen/skills/openspec-verify-change/SKILL.md +0 -168
- package/.specify/memory/constitution.md +0 -58
- package/.specify/scripts/powershell/check-prerequisites.ps1 +0 -148
- package/.specify/scripts/powershell/common.ps1 +0 -137
- package/.specify/scripts/powershell/create-new-feature.ps1 +0 -283
- package/.specify/scripts/powershell/setup-plan.ps1 +0 -61
- package/.specify/scripts/powershell/update-agent-context.ps1 +0 -448
- package/.specify/templates/agent-file-template.md +0 -28
- package/.specify/templates/checklist-template.md +0 -40
- package/.specify/templates/constitution-template.md +0 -50
- package/.specify/templates/plan-template.md +0 -104
- package/.specify/templates/spec-template.md +0 -115
- package/.specify/templates/tasks-template.md +0 -251
- package/.vscode/launch.json +0 -14
- package/.vscode/settings.json +0 -14
- package/.vscode/tasks.json +0 -15
- package/AGENTS.md +0 -117
- package/CLAUDE.md +0 -70
- package/Dockerfile +0 -30
- package/GEMINI.md +0 -117
- package/QWEN.md +0 -117
- package/docker-compose.yml +0 -15
- package/openapi.yaml +0 -3127
- package/openspec/README.md +0 -33
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/.openspec.yaml +0 -2
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/design.md +0 -60
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/proposal.md +0 -25
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/credit-card-transactions/spec.md +0 -46
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/specs/transactions/spec.md +0 -42
- package/openspec/changes/archive/2026-04-03-separate-credit-card-transaction-tools/tasks.md +0 -22
- package/openspec/config.yaml +0 -20
- package/openspec/specs/accounts/spec.md +0 -86
- package/openspec/specs/categories/spec.md +0 -78
- package/openspec/specs/credit-card-transactions/spec.md +0 -64
- package/openspec/specs/credit-cards/spec.md +0 -109
- package/openspec/specs/data/spec.md +0 -49
- package/openspec/specs/settings/spec.md +0 -48
- package/openspec/specs/subscriptions/spec.md +0 -85
- package/openspec/specs/summary/spec.md +0 -49
- package/openspec/specs/transactions/spec.md +0 -113
- package/openspec/specs/transfers/spec.md +0 -74
- package/specs/001-mcp-api-integration/checklists/requirements.md +0 -34
- package/specs/001-mcp-api-integration/contracts/openapi.yaml +0 -636
- package/specs/001-mcp-api-integration/data-model.md +0 -106
- package/specs/001-mcp-api-integration/plan.md +0 -73
- package/specs/001-mcp-api-integration/quickstart.md +0 -74
- package/specs/001-mcp-api-integration/research.md +0 -58
- package/specs/001-mcp-api-integration/spec.md +0 -119
- package/specs/001-mcp-api-integration/tasks.md +0 -64
- package/src/config.ts +0 -39
- package/src/index.ts +0 -99
- package/src/services/apiClient.ts +0 -55
- package/src/services/requestContext.ts +0 -11
- package/src/tools/accounts.ts +0 -122
- package/src/tools/categories.ts +0 -102
- package/src/tools/credit-cards.ts +0 -203
- package/src/tools/data.ts +0 -45
- package/src/tools/settings.ts +0 -64
- package/src/tools/subscriptions.ts +0 -159
- package/src/tools/summary.ts +0 -29
- package/src/tools/transactions.ts +0 -200
- package/src/tools/transfers.ts +0 -122
- package/src/types/schemas.ts +0 -333
- package/src/utils/toolHelpers.ts +0 -11
- package/tests/benchmark.test.d.ts +0 -2
- package/tests/benchmark.test.d.ts.map +0 -1
- package/tests/benchmark.test.js +0 -33
- package/tests/benchmark.test.js.map +0 -1
- package/tests/benchmark.test.ts +0 -38
- package/tests/server.test.d.ts +0 -2
- package/tests/server.test.d.ts.map +0 -1
- package/tests/server.test.js +0 -13
- package/tests/server.test.js.map +0 -1
- package/tests/server.test.ts +0 -14
- package/tests/setup.d.ts +0 -4
- package/tests/setup.d.ts.map +0 -1
- package/tests/setup.js +0 -17
- package/tests/setup.js.map +0 -1
- package/tests/setup.ts +0 -20
- package/tests/tools/accounts.test.ts +0 -159
- package/tests/tools/categories.test.d.ts +0 -2
- package/tests/tools/categories.test.d.ts.map +0 -1
- package/tests/tools/categories.test.js +0 -63
- package/tests/tools/categories.test.js.map +0 -1
- package/tests/tools/categories.test.ts +0 -120
- package/tests/tools/credit-cards.test.d.ts +0 -2
- package/tests/tools/credit-cards.test.d.ts.map +0 -1
- package/tests/tools/credit-cards.test.js +0 -71
- package/tests/tools/credit-cards.test.js.map +0 -1
- package/tests/tools/credit-cards.test.ts +0 -131
- package/tests/tools/data.test.ts +0 -100
- package/tests/tools/settings.test.ts +0 -116
- package/tests/tools/subscriptions.test.ts +0 -173
- package/tests/tools/summary.test.d.ts +0 -2
- package/tests/tools/summary.test.d.ts.map +0 -1
- package/tests/tools/summary.test.js +0 -36
- package/tests/tools/summary.test.js.map +0 -1
- package/tests/tools/summary.test.ts +0 -63
- package/tests/tools/transactions.test.d.ts +0 -2
- package/tests/tools/transactions.test.d.ts.map +0 -1
- package/tests/tools/transactions.test.js +0 -67
- package/tests/tools/transactions.test.js.map +0 -1
- package/tests/tools/transactions.test.ts +0 -133
- package/tests/tools/transfers.test.ts +0 -141
- package/tsconfig.json +0 -52
- package/vitest.config.d.ts +0 -3
- package/vitest.config.d.ts.map +0 -1
- package/vitest.config.js +0 -14
- package/vitest.config.js.map +0 -1
- package/vitest.config.ts +0 -14
|
@@ -1,448 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env pwsh
|
|
2
|
-
<#!
|
|
3
|
-
.SYNOPSIS
|
|
4
|
-
Update agent context files with information from plan.md (PowerShell version)
|
|
5
|
-
|
|
6
|
-
.DESCRIPTION
|
|
7
|
-
Mirrors the behavior of scripts/bash/update-agent-context.sh:
|
|
8
|
-
1. Environment Validation
|
|
9
|
-
2. Plan Data Extraction
|
|
10
|
-
3. Agent File Management (create from template or update existing)
|
|
11
|
-
4. Content Generation (technology stack, recent changes, timestamp)
|
|
12
|
-
5. Multi-Agent Support (claude, gemini, copilot, cursor-agent, qwen, opencode, codex, windsurf, kilocode, auggie, roo, codebuddy, amp, shai, q, bob, qoder)
|
|
13
|
-
|
|
14
|
-
.PARAMETER AgentType
|
|
15
|
-
Optional agent key to update a single agent. If omitted, updates all existing agent files (creating a default Claude file if none exist).
|
|
16
|
-
|
|
17
|
-
.EXAMPLE
|
|
18
|
-
./update-agent-context.ps1 -AgentType claude
|
|
19
|
-
|
|
20
|
-
.EXAMPLE
|
|
21
|
-
./update-agent-context.ps1 # Updates all existing agent files
|
|
22
|
-
|
|
23
|
-
.NOTES
|
|
24
|
-
Relies on common helper functions in common.ps1
|
|
25
|
-
#>
|
|
26
|
-
param(
|
|
27
|
-
[Parameter(Position=0)]
|
|
28
|
-
[ValidateSet('claude','gemini','copilot','cursor-agent','qwen','opencode','codex','windsurf','kilocode','auggie','roo','codebuddy','amp','shai','q','bob','qoder')]
|
|
29
|
-
[string]$AgentType
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
$ErrorActionPreference = 'Stop'
|
|
33
|
-
|
|
34
|
-
# Import common helpers
|
|
35
|
-
$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
|
36
|
-
. (Join-Path $ScriptDir 'common.ps1')
|
|
37
|
-
|
|
38
|
-
# Acquire environment paths
|
|
39
|
-
$envData = Get-FeaturePathsEnv
|
|
40
|
-
$REPO_ROOT = $envData.REPO_ROOT
|
|
41
|
-
$CURRENT_BRANCH = $envData.CURRENT_BRANCH
|
|
42
|
-
$HAS_GIT = $envData.HAS_GIT
|
|
43
|
-
$IMPL_PLAN = $envData.IMPL_PLAN
|
|
44
|
-
$NEW_PLAN = $IMPL_PLAN
|
|
45
|
-
|
|
46
|
-
# Agent file paths
|
|
47
|
-
$CLAUDE_FILE = Join-Path $REPO_ROOT 'CLAUDE.md'
|
|
48
|
-
$GEMINI_FILE = Join-Path $REPO_ROOT 'GEMINI.md'
|
|
49
|
-
$COPILOT_FILE = Join-Path $REPO_ROOT '.github/agents/copilot-instructions.md'
|
|
50
|
-
$CURSOR_FILE = Join-Path $REPO_ROOT '.cursor/rules/specify-rules.mdc'
|
|
51
|
-
$QWEN_FILE = Join-Path $REPO_ROOT 'QWEN.md'
|
|
52
|
-
$AGENTS_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
|
|
53
|
-
$WINDSURF_FILE = Join-Path $REPO_ROOT '.windsurf/rules/specify-rules.md'
|
|
54
|
-
$KILOCODE_FILE = Join-Path $REPO_ROOT '.kilocode/rules/specify-rules.md'
|
|
55
|
-
$AUGGIE_FILE = Join-Path $REPO_ROOT '.augment/rules/specify-rules.md'
|
|
56
|
-
$ROO_FILE = Join-Path $REPO_ROOT '.roo/rules/specify-rules.md'
|
|
57
|
-
$CODEBUDDY_FILE = Join-Path $REPO_ROOT 'CODEBUDDY.md'
|
|
58
|
-
$QODER_FILE = Join-Path $REPO_ROOT 'QODER.md'
|
|
59
|
-
$AMP_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
|
|
60
|
-
$SHAI_FILE = Join-Path $REPO_ROOT 'SHAI.md'
|
|
61
|
-
$Q_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
|
|
62
|
-
$BOB_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
|
|
63
|
-
|
|
64
|
-
$TEMPLATE_FILE = Join-Path $REPO_ROOT '.specify/templates/agent-file-template.md'
|
|
65
|
-
|
|
66
|
-
# Parsed plan data placeholders
|
|
67
|
-
$script:NEW_LANG = ''
|
|
68
|
-
$script:NEW_FRAMEWORK = ''
|
|
69
|
-
$script:NEW_DB = ''
|
|
70
|
-
$script:NEW_PROJECT_TYPE = ''
|
|
71
|
-
|
|
72
|
-
function Write-Info {
|
|
73
|
-
param(
|
|
74
|
-
[Parameter(Mandatory=$true)]
|
|
75
|
-
[string]$Message
|
|
76
|
-
)
|
|
77
|
-
Write-Host "INFO: $Message"
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
function Write-Success {
|
|
81
|
-
param(
|
|
82
|
-
[Parameter(Mandatory=$true)]
|
|
83
|
-
[string]$Message
|
|
84
|
-
)
|
|
85
|
-
Write-Host "$([char]0x2713) $Message"
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
function Write-WarningMsg {
|
|
89
|
-
param(
|
|
90
|
-
[Parameter(Mandatory=$true)]
|
|
91
|
-
[string]$Message
|
|
92
|
-
)
|
|
93
|
-
Write-Warning $Message
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function Write-Err {
|
|
97
|
-
param(
|
|
98
|
-
[Parameter(Mandatory=$true)]
|
|
99
|
-
[string]$Message
|
|
100
|
-
)
|
|
101
|
-
Write-Host "ERROR: $Message" -ForegroundColor Red
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function Validate-Environment {
|
|
105
|
-
if (-not $CURRENT_BRANCH) {
|
|
106
|
-
Write-Err 'Unable to determine current feature'
|
|
107
|
-
if ($HAS_GIT) { Write-Info "Make sure you're on a feature branch" } else { Write-Info 'Set SPECIFY_FEATURE environment variable or create a feature first' }
|
|
108
|
-
exit 1
|
|
109
|
-
}
|
|
110
|
-
if (-not (Test-Path $NEW_PLAN)) {
|
|
111
|
-
Write-Err "No plan.md found at $NEW_PLAN"
|
|
112
|
-
Write-Info 'Ensure you are working on a feature with a corresponding spec directory'
|
|
113
|
-
if (-not $HAS_GIT) { Write-Info 'Use: $env:SPECIFY_FEATURE=your-feature-name or create a new feature first' }
|
|
114
|
-
exit 1
|
|
115
|
-
}
|
|
116
|
-
if (-not (Test-Path $TEMPLATE_FILE)) {
|
|
117
|
-
Write-Err "Template file not found at $TEMPLATE_FILE"
|
|
118
|
-
Write-Info 'Run specify init to scaffold .specify/templates, or add agent-file-template.md there.'
|
|
119
|
-
exit 1
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
function Extract-PlanField {
|
|
124
|
-
param(
|
|
125
|
-
[Parameter(Mandatory=$true)]
|
|
126
|
-
[string]$FieldPattern,
|
|
127
|
-
[Parameter(Mandatory=$true)]
|
|
128
|
-
[string]$PlanFile
|
|
129
|
-
)
|
|
130
|
-
if (-not (Test-Path $PlanFile)) { return '' }
|
|
131
|
-
# Lines like **Language/Version**: Python 3.12
|
|
132
|
-
$regex = "^\*\*$([Regex]::Escape($FieldPattern))\*\*: (.+)$"
|
|
133
|
-
Get-Content -LiteralPath $PlanFile -Encoding utf8 | ForEach-Object {
|
|
134
|
-
if ($_ -match $regex) {
|
|
135
|
-
$val = $Matches[1].Trim()
|
|
136
|
-
if ($val -notin @('NEEDS CLARIFICATION','N/A')) { return $val }
|
|
137
|
-
}
|
|
138
|
-
} | Select-Object -First 1
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
function Parse-PlanData {
|
|
142
|
-
param(
|
|
143
|
-
[Parameter(Mandatory=$true)]
|
|
144
|
-
[string]$PlanFile
|
|
145
|
-
)
|
|
146
|
-
if (-not (Test-Path $PlanFile)) { Write-Err "Plan file not found: $PlanFile"; return $false }
|
|
147
|
-
Write-Info "Parsing plan data from $PlanFile"
|
|
148
|
-
$script:NEW_LANG = Extract-PlanField -FieldPattern 'Language/Version' -PlanFile $PlanFile
|
|
149
|
-
$script:NEW_FRAMEWORK = Extract-PlanField -FieldPattern 'Primary Dependencies' -PlanFile $PlanFile
|
|
150
|
-
$script:NEW_DB = Extract-PlanField -FieldPattern 'Storage' -PlanFile $PlanFile
|
|
151
|
-
$script:NEW_PROJECT_TYPE = Extract-PlanField -FieldPattern 'Project Type' -PlanFile $PlanFile
|
|
152
|
-
|
|
153
|
-
if ($NEW_LANG) { Write-Info "Found language: $NEW_LANG" } else { Write-WarningMsg 'No language information found in plan' }
|
|
154
|
-
if ($NEW_FRAMEWORK) { Write-Info "Found framework: $NEW_FRAMEWORK" }
|
|
155
|
-
if ($NEW_DB -and $NEW_DB -ne 'N/A') { Write-Info "Found database: $NEW_DB" }
|
|
156
|
-
if ($NEW_PROJECT_TYPE) { Write-Info "Found project type: $NEW_PROJECT_TYPE" }
|
|
157
|
-
return $true
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function Format-TechnologyStack {
|
|
161
|
-
param(
|
|
162
|
-
[Parameter(Mandatory=$false)]
|
|
163
|
-
[string]$Lang,
|
|
164
|
-
[Parameter(Mandatory=$false)]
|
|
165
|
-
[string]$Framework
|
|
166
|
-
)
|
|
167
|
-
$parts = @()
|
|
168
|
-
if ($Lang -and $Lang -ne 'NEEDS CLARIFICATION') { $parts += $Lang }
|
|
169
|
-
if ($Framework -and $Framework -notin @('NEEDS CLARIFICATION','N/A')) { $parts += $Framework }
|
|
170
|
-
if (-not $parts) { return '' }
|
|
171
|
-
return ($parts -join ' + ')
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
function Get-ProjectStructure {
|
|
175
|
-
param(
|
|
176
|
-
[Parameter(Mandatory=$false)]
|
|
177
|
-
[string]$ProjectType
|
|
178
|
-
)
|
|
179
|
-
if ($ProjectType -match 'web') { return "backend/`nfrontend/`ntests/" } else { return "src/`ntests/" }
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
function Get-CommandsForLanguage {
|
|
183
|
-
param(
|
|
184
|
-
[Parameter(Mandatory=$false)]
|
|
185
|
-
[string]$Lang
|
|
186
|
-
)
|
|
187
|
-
switch -Regex ($Lang) {
|
|
188
|
-
'Python' { return "cd src; pytest; ruff check ." }
|
|
189
|
-
'Rust' { return "cargo test; cargo clippy" }
|
|
190
|
-
'JavaScript|TypeScript' { return "npm test; npm run lint" }
|
|
191
|
-
default { return "# Add commands for $Lang" }
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
function Get-LanguageConventions {
|
|
196
|
-
param(
|
|
197
|
-
[Parameter(Mandatory=$false)]
|
|
198
|
-
[string]$Lang
|
|
199
|
-
)
|
|
200
|
-
if ($Lang) { "${Lang}: Follow standard conventions" } else { 'General: Follow standard conventions' }
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
function New-AgentFile {
|
|
204
|
-
param(
|
|
205
|
-
[Parameter(Mandatory=$true)]
|
|
206
|
-
[string]$TargetFile,
|
|
207
|
-
[Parameter(Mandatory=$true)]
|
|
208
|
-
[string]$ProjectName,
|
|
209
|
-
[Parameter(Mandatory=$true)]
|
|
210
|
-
[datetime]$Date
|
|
211
|
-
)
|
|
212
|
-
if (-not (Test-Path $TEMPLATE_FILE)) { Write-Err "Template not found at $TEMPLATE_FILE"; return $false }
|
|
213
|
-
$temp = New-TemporaryFile
|
|
214
|
-
Copy-Item -LiteralPath $TEMPLATE_FILE -Destination $temp -Force
|
|
215
|
-
|
|
216
|
-
$projectStructure = Get-ProjectStructure -ProjectType $NEW_PROJECT_TYPE
|
|
217
|
-
$commands = Get-CommandsForLanguage -Lang $NEW_LANG
|
|
218
|
-
$languageConventions = Get-LanguageConventions -Lang $NEW_LANG
|
|
219
|
-
|
|
220
|
-
$escaped_lang = $NEW_LANG
|
|
221
|
-
$escaped_framework = $NEW_FRAMEWORK
|
|
222
|
-
$escaped_branch = $CURRENT_BRANCH
|
|
223
|
-
|
|
224
|
-
$content = Get-Content -LiteralPath $temp -Raw -Encoding utf8
|
|
225
|
-
$content = $content -replace '\[PROJECT NAME\]',$ProjectName
|
|
226
|
-
$content = $content -replace '\[DATE\]',$Date.ToString('yyyy-MM-dd')
|
|
227
|
-
|
|
228
|
-
# Build the technology stack string safely
|
|
229
|
-
$techStackForTemplate = ""
|
|
230
|
-
if ($escaped_lang -and $escaped_framework) {
|
|
231
|
-
$techStackForTemplate = "- $escaped_lang + $escaped_framework ($escaped_branch)"
|
|
232
|
-
} elseif ($escaped_lang) {
|
|
233
|
-
$techStackForTemplate = "- $escaped_lang ($escaped_branch)"
|
|
234
|
-
} elseif ($escaped_framework) {
|
|
235
|
-
$techStackForTemplate = "- $escaped_framework ($escaped_branch)"
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
$content = $content -replace '\[EXTRACTED FROM ALL PLAN.MD FILES\]',$techStackForTemplate
|
|
239
|
-
# For project structure we manually embed (keep newlines)
|
|
240
|
-
$escapedStructure = [Regex]::Escape($projectStructure)
|
|
241
|
-
$content = $content -replace '\[ACTUAL STRUCTURE FROM PLANS\]',$escapedStructure
|
|
242
|
-
# Replace escaped newlines placeholder after all replacements
|
|
243
|
-
$content = $content -replace '\[ONLY COMMANDS FOR ACTIVE TECHNOLOGIES\]',$commands
|
|
244
|
-
$content = $content -replace '\[LANGUAGE-SPECIFIC, ONLY FOR LANGUAGES IN USE\]',$languageConventions
|
|
245
|
-
|
|
246
|
-
# Build the recent changes string safely
|
|
247
|
-
$recentChangesForTemplate = ""
|
|
248
|
-
if ($escaped_lang -and $escaped_framework) {
|
|
249
|
-
$recentChangesForTemplate = "- ${escaped_branch}: Added ${escaped_lang} + ${escaped_framework}"
|
|
250
|
-
} elseif ($escaped_lang) {
|
|
251
|
-
$recentChangesForTemplate = "- ${escaped_branch}: Added ${escaped_lang}"
|
|
252
|
-
} elseif ($escaped_framework) {
|
|
253
|
-
$recentChangesForTemplate = "- ${escaped_branch}: Added ${escaped_framework}"
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
$content = $content -replace '\[LAST 3 FEATURES AND WHAT THEY ADDED\]',$recentChangesForTemplate
|
|
257
|
-
# Convert literal \n sequences introduced by Escape to real newlines
|
|
258
|
-
$content = $content -replace '\\n',[Environment]::NewLine
|
|
259
|
-
|
|
260
|
-
$parent = Split-Path -Parent $TargetFile
|
|
261
|
-
if (-not (Test-Path $parent)) { New-Item -ItemType Directory -Path $parent | Out-Null }
|
|
262
|
-
Set-Content -LiteralPath $TargetFile -Value $content -NoNewline -Encoding utf8
|
|
263
|
-
Remove-Item $temp -Force
|
|
264
|
-
return $true
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
function Update-ExistingAgentFile {
|
|
268
|
-
param(
|
|
269
|
-
[Parameter(Mandatory=$true)]
|
|
270
|
-
[string]$TargetFile,
|
|
271
|
-
[Parameter(Mandatory=$true)]
|
|
272
|
-
[datetime]$Date
|
|
273
|
-
)
|
|
274
|
-
if (-not (Test-Path $TargetFile)) { return (New-AgentFile -TargetFile $TargetFile -ProjectName (Split-Path $REPO_ROOT -Leaf) -Date $Date) }
|
|
275
|
-
|
|
276
|
-
$techStack = Format-TechnologyStack -Lang $NEW_LANG -Framework $NEW_FRAMEWORK
|
|
277
|
-
$newTechEntries = @()
|
|
278
|
-
if ($techStack) {
|
|
279
|
-
$escapedTechStack = [Regex]::Escape($techStack)
|
|
280
|
-
if (-not (Select-String -Pattern $escapedTechStack -Path $TargetFile -Quiet)) {
|
|
281
|
-
$newTechEntries += "- $techStack ($CURRENT_BRANCH)"
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
if ($NEW_DB -and $NEW_DB -notin @('N/A','NEEDS CLARIFICATION')) {
|
|
285
|
-
$escapedDB = [Regex]::Escape($NEW_DB)
|
|
286
|
-
if (-not (Select-String -Pattern $escapedDB -Path $TargetFile -Quiet)) {
|
|
287
|
-
$newTechEntries += "- $NEW_DB ($CURRENT_BRANCH)"
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
$newChangeEntry = ''
|
|
291
|
-
if ($techStack) { $newChangeEntry = "- ${CURRENT_BRANCH}: Added ${techStack}" }
|
|
292
|
-
elseif ($NEW_DB -and $NEW_DB -notin @('N/A','NEEDS CLARIFICATION')) { $newChangeEntry = "- ${CURRENT_BRANCH}: Added ${NEW_DB}" }
|
|
293
|
-
|
|
294
|
-
$lines = Get-Content -LiteralPath $TargetFile -Encoding utf8
|
|
295
|
-
$output = New-Object System.Collections.Generic.List[string]
|
|
296
|
-
$inTech = $false; $inChanges = $false; $techAdded = $false; $changeAdded = $false; $existingChanges = 0
|
|
297
|
-
|
|
298
|
-
for ($i=0; $i -lt $lines.Count; $i++) {
|
|
299
|
-
$line = $lines[$i]
|
|
300
|
-
if ($line -eq '## Active Technologies') {
|
|
301
|
-
$output.Add($line)
|
|
302
|
-
$inTech = $true
|
|
303
|
-
continue
|
|
304
|
-
}
|
|
305
|
-
if ($inTech -and $line -match '^##\s') {
|
|
306
|
-
if (-not $techAdded -and $newTechEntries.Count -gt 0) { $newTechEntries | ForEach-Object { $output.Add($_) }; $techAdded = $true }
|
|
307
|
-
$output.Add($line); $inTech = $false; continue
|
|
308
|
-
}
|
|
309
|
-
if ($inTech -and [string]::IsNullOrWhiteSpace($line)) {
|
|
310
|
-
if (-not $techAdded -and $newTechEntries.Count -gt 0) { $newTechEntries | ForEach-Object { $output.Add($_) }; $techAdded = $true }
|
|
311
|
-
$output.Add($line); continue
|
|
312
|
-
}
|
|
313
|
-
if ($line -eq '## Recent Changes') {
|
|
314
|
-
$output.Add($line)
|
|
315
|
-
if ($newChangeEntry) { $output.Add($newChangeEntry); $changeAdded = $true }
|
|
316
|
-
$inChanges = $true
|
|
317
|
-
continue
|
|
318
|
-
}
|
|
319
|
-
if ($inChanges -and $line -match '^##\s') { $output.Add($line); $inChanges = $false; continue }
|
|
320
|
-
if ($inChanges -and $line -match '^- ') {
|
|
321
|
-
if ($existingChanges -lt 2) { $output.Add($line); $existingChanges++ }
|
|
322
|
-
continue
|
|
323
|
-
}
|
|
324
|
-
if ($line -match '\*\*Last updated\*\*: .*\d{4}-\d{2}-\d{2}') {
|
|
325
|
-
$output.Add(($line -replace '\d{4}-\d{2}-\d{2}',$Date.ToString('yyyy-MM-dd')))
|
|
326
|
-
continue
|
|
327
|
-
}
|
|
328
|
-
$output.Add($line)
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
# Post-loop check: if we're still in the Active Technologies section and haven't added new entries
|
|
332
|
-
if ($inTech -and -not $techAdded -and $newTechEntries.Count -gt 0) {
|
|
333
|
-
$newTechEntries | ForEach-Object { $output.Add($_) }
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
Set-Content -LiteralPath $TargetFile -Value ($output -join [Environment]::NewLine) -Encoding utf8
|
|
337
|
-
return $true
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
function Update-AgentFile {
|
|
341
|
-
param(
|
|
342
|
-
[Parameter(Mandatory=$true)]
|
|
343
|
-
[string]$TargetFile,
|
|
344
|
-
[Parameter(Mandatory=$true)]
|
|
345
|
-
[string]$AgentName
|
|
346
|
-
)
|
|
347
|
-
if (-not $TargetFile -or -not $AgentName) { Write-Err 'Update-AgentFile requires TargetFile and AgentName'; return $false }
|
|
348
|
-
Write-Info "Updating $AgentName context file: $TargetFile"
|
|
349
|
-
$projectName = Split-Path $REPO_ROOT -Leaf
|
|
350
|
-
$date = Get-Date
|
|
351
|
-
|
|
352
|
-
$dir = Split-Path -Parent $TargetFile
|
|
353
|
-
if (-not (Test-Path $dir)) { New-Item -ItemType Directory -Path $dir | Out-Null }
|
|
354
|
-
|
|
355
|
-
if (-not (Test-Path $TargetFile)) {
|
|
356
|
-
if (New-AgentFile -TargetFile $TargetFile -ProjectName $projectName -Date $date) { Write-Success "Created new $AgentName context file" } else { Write-Err 'Failed to create new agent file'; return $false }
|
|
357
|
-
} else {
|
|
358
|
-
try {
|
|
359
|
-
if (Update-ExistingAgentFile -TargetFile $TargetFile -Date $date) { Write-Success "Updated existing $AgentName context file" } else { Write-Err 'Failed to update agent file'; return $false }
|
|
360
|
-
} catch {
|
|
361
|
-
Write-Err "Cannot access or update existing file: $TargetFile. $_"
|
|
362
|
-
return $false
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
return $true
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
function Update-SpecificAgent {
|
|
369
|
-
param(
|
|
370
|
-
[Parameter(Mandatory=$true)]
|
|
371
|
-
[string]$Type
|
|
372
|
-
)
|
|
373
|
-
switch ($Type) {
|
|
374
|
-
'claude' { Update-AgentFile -TargetFile $CLAUDE_FILE -AgentName 'Claude Code' }
|
|
375
|
-
'gemini' { Update-AgentFile -TargetFile $GEMINI_FILE -AgentName 'Gemini CLI' }
|
|
376
|
-
'copilot' { Update-AgentFile -TargetFile $COPILOT_FILE -AgentName 'GitHub Copilot' }
|
|
377
|
-
'cursor-agent' { Update-AgentFile -TargetFile $CURSOR_FILE -AgentName 'Cursor IDE' }
|
|
378
|
-
'qwen' { Update-AgentFile -TargetFile $QWEN_FILE -AgentName 'Qwen Code' }
|
|
379
|
-
'opencode' { Update-AgentFile -TargetFile $AGENTS_FILE -AgentName 'opencode' }
|
|
380
|
-
'codex' { Update-AgentFile -TargetFile $AGENTS_FILE -AgentName 'Codex CLI' }
|
|
381
|
-
'windsurf' { Update-AgentFile -TargetFile $WINDSURF_FILE -AgentName 'Windsurf' }
|
|
382
|
-
'kilocode' { Update-AgentFile -TargetFile $KILOCODE_FILE -AgentName 'Kilo Code' }
|
|
383
|
-
'auggie' { Update-AgentFile -TargetFile $AUGGIE_FILE -AgentName 'Auggie CLI' }
|
|
384
|
-
'roo' { Update-AgentFile -TargetFile $ROO_FILE -AgentName 'Roo Code' }
|
|
385
|
-
'codebuddy' { Update-AgentFile -TargetFile $CODEBUDDY_FILE -AgentName 'CodeBuddy CLI' }
|
|
386
|
-
'qoder' { Update-AgentFile -TargetFile $QODER_FILE -AgentName 'Qoder CLI' }
|
|
387
|
-
'amp' { Update-AgentFile -TargetFile $AMP_FILE -AgentName 'Amp' }
|
|
388
|
-
'shai' { Update-AgentFile -TargetFile $SHAI_FILE -AgentName 'SHAI' }
|
|
389
|
-
'q' { Update-AgentFile -TargetFile $Q_FILE -AgentName 'Amazon Q Developer CLI' }
|
|
390
|
-
'bob' { Update-AgentFile -TargetFile $BOB_FILE -AgentName 'IBM Bob' }
|
|
391
|
-
default { Write-Err "Unknown agent type '$Type'"; Write-Err 'Expected: claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|q|bob|qoder'; return $false }
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
|
|
395
|
-
function Update-AllExistingAgents {
|
|
396
|
-
$found = $false
|
|
397
|
-
$ok = $true
|
|
398
|
-
if (Test-Path $CLAUDE_FILE) { if (-not (Update-AgentFile -TargetFile $CLAUDE_FILE -AgentName 'Claude Code')) { $ok = $false }; $found = $true }
|
|
399
|
-
if (Test-Path $GEMINI_FILE) { if (-not (Update-AgentFile -TargetFile $GEMINI_FILE -AgentName 'Gemini CLI')) { $ok = $false }; $found = $true }
|
|
400
|
-
if (Test-Path $COPILOT_FILE) { if (-not (Update-AgentFile -TargetFile $COPILOT_FILE -AgentName 'GitHub Copilot')) { $ok = $false }; $found = $true }
|
|
401
|
-
if (Test-Path $CURSOR_FILE) { if (-not (Update-AgentFile -TargetFile $CURSOR_FILE -AgentName 'Cursor IDE')) { $ok = $false }; $found = $true }
|
|
402
|
-
if (Test-Path $QWEN_FILE) { if (-not (Update-AgentFile -TargetFile $QWEN_FILE -AgentName 'Qwen Code')) { $ok = $false }; $found = $true }
|
|
403
|
-
if (Test-Path $AGENTS_FILE) { if (-not (Update-AgentFile -TargetFile $AGENTS_FILE -AgentName 'Codex/opencode')) { $ok = $false }; $found = $true }
|
|
404
|
-
if (Test-Path $WINDSURF_FILE) { if (-not (Update-AgentFile -TargetFile $WINDSURF_FILE -AgentName 'Windsurf')) { $ok = $false }; $found = $true }
|
|
405
|
-
if (Test-Path $KILOCODE_FILE) { if (-not (Update-AgentFile -TargetFile $KILOCODE_FILE -AgentName 'Kilo Code')) { $ok = $false }; $found = $true }
|
|
406
|
-
if (Test-Path $AUGGIE_FILE) { if (-not (Update-AgentFile -TargetFile $AUGGIE_FILE -AgentName 'Auggie CLI')) { $ok = $false }; $found = $true }
|
|
407
|
-
if (Test-Path $ROO_FILE) { if (-not (Update-AgentFile -TargetFile $ROO_FILE -AgentName 'Roo Code')) { $ok = $false }; $found = $true }
|
|
408
|
-
if (Test-Path $CODEBUDDY_FILE) { if (-not (Update-AgentFile -TargetFile $CODEBUDDY_FILE -AgentName 'CodeBuddy CLI')) { $ok = $false }; $found = $true }
|
|
409
|
-
if (Test-Path $QODER_FILE) { if (-not (Update-AgentFile -TargetFile $QODER_FILE -AgentName 'Qoder CLI')) { $ok = $false }; $found = $true }
|
|
410
|
-
if (Test-Path $SHAI_FILE) { if (-not (Update-AgentFile -TargetFile $SHAI_FILE -AgentName 'SHAI')) { $ok = $false }; $found = $true }
|
|
411
|
-
if (Test-Path $Q_FILE) { if (-not (Update-AgentFile -TargetFile $Q_FILE -AgentName 'Amazon Q Developer CLI')) { $ok = $false }; $found = $true }
|
|
412
|
-
if (Test-Path $BOB_FILE) { if (-not (Update-AgentFile -TargetFile $BOB_FILE -AgentName 'IBM Bob')) { $ok = $false }; $found = $true }
|
|
413
|
-
if (-not $found) {
|
|
414
|
-
Write-Info 'No existing agent files found, creating default Claude file...'
|
|
415
|
-
if (-not (Update-AgentFile -TargetFile $CLAUDE_FILE -AgentName 'Claude Code')) { $ok = $false }
|
|
416
|
-
}
|
|
417
|
-
return $ok
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
function Print-Summary {
|
|
421
|
-
Write-Host ''
|
|
422
|
-
Write-Info 'Summary of changes:'
|
|
423
|
-
if ($NEW_LANG) { Write-Host " - Added language: $NEW_LANG" }
|
|
424
|
-
if ($NEW_FRAMEWORK) { Write-Host " - Added framework: $NEW_FRAMEWORK" }
|
|
425
|
-
if ($NEW_DB -and $NEW_DB -ne 'N/A') { Write-Host " - Added database: $NEW_DB" }
|
|
426
|
-
Write-Host ''
|
|
427
|
-
Write-Info 'Usage: ./update-agent-context.ps1 [-AgentType claude|gemini|copilot|cursor-agent|qwen|opencode|codex|windsurf|kilocode|auggie|roo|codebuddy|amp|shai|q|bob|qoder]'
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
function Main {
|
|
431
|
-
Validate-Environment
|
|
432
|
-
Write-Info "=== Updating agent context files for feature $CURRENT_BRANCH ==="
|
|
433
|
-
if (-not (Parse-PlanData -PlanFile $NEW_PLAN)) { Write-Err 'Failed to parse plan data'; exit 1 }
|
|
434
|
-
$success = $true
|
|
435
|
-
if ($AgentType) {
|
|
436
|
-
Write-Info "Updating specific agent: $AgentType"
|
|
437
|
-
if (-not (Update-SpecificAgent -Type $AgentType)) { $success = $false }
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
Write-Info 'No agent specified, updating all existing agent files...'
|
|
441
|
-
if (-not (Update-AllExistingAgents)) { $success = $false }
|
|
442
|
-
}
|
|
443
|
-
Print-Summary
|
|
444
|
-
if ($success) { Write-Success 'Agent context update completed successfully'; exit 0 } else { Write-Err 'Agent context update completed with errors'; exit 1 }
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
Main
|
|
448
|
-
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# [PROJECT NAME] Development Guidelines
|
|
2
|
-
|
|
3
|
-
Auto-generated from all feature plans. Last updated: [DATE]
|
|
4
|
-
|
|
5
|
-
## Active Technologies
|
|
6
|
-
|
|
7
|
-
[EXTRACTED FROM ALL PLAN.MD FILES]
|
|
8
|
-
|
|
9
|
-
## Project Structure
|
|
10
|
-
|
|
11
|
-
```text
|
|
12
|
-
[ACTUAL STRUCTURE FROM PLANS]
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Commands
|
|
16
|
-
|
|
17
|
-
[ONLY COMMANDS FOR ACTIVE TECHNOLOGIES]
|
|
18
|
-
|
|
19
|
-
## Code Style
|
|
20
|
-
|
|
21
|
-
[LANGUAGE-SPECIFIC, ONLY FOR LANGUAGES IN USE]
|
|
22
|
-
|
|
23
|
-
## Recent Changes
|
|
24
|
-
|
|
25
|
-
[LAST 3 FEATURES AND WHAT THEY ADDED]
|
|
26
|
-
|
|
27
|
-
<!-- MANUAL ADDITIONS START -->
|
|
28
|
-
<!-- MANUAL ADDITIONS END -->
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# [CHECKLIST TYPE] Checklist: [FEATURE NAME]
|
|
2
|
-
|
|
3
|
-
**Purpose**: [Brief description of what this checklist covers]
|
|
4
|
-
**Created**: [DATE]
|
|
5
|
-
**Feature**: [Link to spec.md or relevant documentation]
|
|
6
|
-
|
|
7
|
-
**Note**: This checklist is generated by the `/speckit.checklist` command based on feature context and requirements.
|
|
8
|
-
|
|
9
|
-
<!--
|
|
10
|
-
============================================================================
|
|
11
|
-
IMPORTANT: The checklist items below are SAMPLE ITEMS for illustration only.
|
|
12
|
-
|
|
13
|
-
The /speckit.checklist command MUST replace these with actual items based on:
|
|
14
|
-
- User's specific checklist request
|
|
15
|
-
- Feature requirements from spec.md
|
|
16
|
-
- Technical context from plan.md
|
|
17
|
-
- Implementation details from tasks.md
|
|
18
|
-
|
|
19
|
-
DO NOT keep these sample items in the generated checklist file.
|
|
20
|
-
============================================================================
|
|
21
|
-
-->
|
|
22
|
-
|
|
23
|
-
## [Category 1]
|
|
24
|
-
|
|
25
|
-
- [ ] CHK001 First checklist item with clear action
|
|
26
|
-
- [ ] CHK002 Second checklist item
|
|
27
|
-
- [ ] CHK003 Third checklist item
|
|
28
|
-
|
|
29
|
-
## [Category 2]
|
|
30
|
-
|
|
31
|
-
- [ ] CHK004 Another category item
|
|
32
|
-
- [ ] CHK005 Item with specific criteria
|
|
33
|
-
- [ ] CHK006 Final item in this category
|
|
34
|
-
|
|
35
|
-
## Notes
|
|
36
|
-
|
|
37
|
-
- Check items off as completed: `[x]`
|
|
38
|
-
- Add comments or findings inline
|
|
39
|
-
- Link to relevant resources or documentation
|
|
40
|
-
- Items are numbered sequentially for easy reference
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# [PROJECT_NAME] Constitution
|
|
2
|
-
<!-- Example: Spec Constitution, TaskFlow Constitution, etc. -->
|
|
3
|
-
|
|
4
|
-
## Core Principles
|
|
5
|
-
|
|
6
|
-
### [PRINCIPLE_1_NAME]
|
|
7
|
-
<!-- Example: I. Library-First -->
|
|
8
|
-
[PRINCIPLE_1_DESCRIPTION]
|
|
9
|
-
<!-- Example: Every feature starts as a standalone library; Libraries must be self-contained, independently testable, documented; Clear purpose required - no organizational-only libraries -->
|
|
10
|
-
|
|
11
|
-
### [PRINCIPLE_2_NAME]
|
|
12
|
-
<!-- Example: II. CLI Interface -->
|
|
13
|
-
[PRINCIPLE_2_DESCRIPTION]
|
|
14
|
-
<!-- Example: Every library exposes functionality via CLI; Text in/out protocol: stdin/args → stdout, errors → stderr; Support JSON + human-readable formats -->
|
|
15
|
-
|
|
16
|
-
### [PRINCIPLE_3_NAME]
|
|
17
|
-
<!-- Example: III. Test-First (NON-NEGOTIABLE) -->
|
|
18
|
-
[PRINCIPLE_3_DESCRIPTION]
|
|
19
|
-
<!-- Example: TDD mandatory: Tests written → User approved → Tests fail → Then implement; Red-Green-Refactor cycle strictly enforced -->
|
|
20
|
-
|
|
21
|
-
### [PRINCIPLE_4_NAME]
|
|
22
|
-
<!-- Example: IV. Integration Testing -->
|
|
23
|
-
[PRINCIPLE_4_DESCRIPTION]
|
|
24
|
-
<!-- Example: Focus areas requiring integration tests: New library contract tests, Contract changes, Inter-service communication, Shared schemas -->
|
|
25
|
-
|
|
26
|
-
### [PRINCIPLE_5_NAME]
|
|
27
|
-
<!-- Example: V. Observability, VI. Versioning & Breaking Changes, VII. Simplicity -->
|
|
28
|
-
[PRINCIPLE_5_DESCRIPTION]
|
|
29
|
-
<!-- Example: Text I/O ensures debuggability; Structured logging required; Or: MAJOR.MINOR.BUILD format; Or: Start simple, YAGNI principles -->
|
|
30
|
-
|
|
31
|
-
## [SECTION_2_NAME]
|
|
32
|
-
<!-- Example: Additional Constraints, Security Requirements, Performance Standards, etc. -->
|
|
33
|
-
|
|
34
|
-
[SECTION_2_CONTENT]
|
|
35
|
-
<!-- Example: Technology stack requirements, compliance standards, deployment policies, etc. -->
|
|
36
|
-
|
|
37
|
-
## [SECTION_3_NAME]
|
|
38
|
-
<!-- Example: Development Workflow, Review Process, Quality Gates, etc. -->
|
|
39
|
-
|
|
40
|
-
[SECTION_3_CONTENT]
|
|
41
|
-
<!-- Example: Code review requirements, testing gates, deployment approval process, etc. -->
|
|
42
|
-
|
|
43
|
-
## Governance
|
|
44
|
-
<!-- Example: Constitution supersedes all other practices; Amendments require documentation, approval, migration plan -->
|
|
45
|
-
|
|
46
|
-
[GOVERNANCE_RULES]
|
|
47
|
-
<!-- Example: All PRs/reviews must verify compliance; Complexity must be justified; Use [GUIDANCE_FILE] for runtime development guidance -->
|
|
48
|
-
|
|
49
|
-
**Version**: [CONSTITUTION_VERSION] | **Ratified**: [RATIFICATION_DATE] | **Last Amended**: [LAST_AMENDED_DATE]
|
|
50
|
-
<!-- Example: Version: 2.1.1 | Ratified: 2025-06-13 | Last Amended: 2025-07-16 -->
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Implementation Plan: [FEATURE]
|
|
2
|
-
|
|
3
|
-
**Branch**: `[###-feature-name]` | **Date**: [DATE] | **Spec**: [link]
|
|
4
|
-
**Input**: Feature specification from `/specs/[###-feature-name]/spec.md`
|
|
5
|
-
|
|
6
|
-
**Note**: This template is filled in by the `/speckit.plan` command. See `.specify/templates/commands/plan.md` for the execution workflow.
|
|
7
|
-
|
|
8
|
-
## Summary
|
|
9
|
-
|
|
10
|
-
[Extract from feature spec: primary requirement + technical approach from research]
|
|
11
|
-
|
|
12
|
-
## Technical Context
|
|
13
|
-
|
|
14
|
-
<!--
|
|
15
|
-
ACTION REQUIRED: Replace the content in this section with the technical details
|
|
16
|
-
for the project. The structure here is presented in advisory capacity to guide
|
|
17
|
-
the iteration process.
|
|
18
|
-
-->
|
|
19
|
-
|
|
20
|
-
**Language/Version**: [e.g., Python 3.11, Swift 5.9, Rust 1.75 or NEEDS CLARIFICATION]
|
|
21
|
-
**Primary Dependencies**: [e.g., FastAPI, UIKit, LLVM or NEEDS CLARIFICATION]
|
|
22
|
-
**Storage**: [if applicable, e.g., PostgreSQL, CoreData, files or N/A]
|
|
23
|
-
**Testing**: [e.g., pytest, XCTest, cargo test or NEEDS CLARIFICATION]
|
|
24
|
-
**Target Platform**: [e.g., Linux server, iOS 15+, WASM or NEEDS CLARIFICATION]
|
|
25
|
-
**Project Type**: [single/web/mobile - determines source structure]
|
|
26
|
-
**Performance Goals**: [domain-specific, e.g., 1000 req/s, 10k lines/sec, 60 fps or NEEDS CLARIFICATION]
|
|
27
|
-
**Constraints**: [domain-specific, e.g., <200ms p95, <100MB memory, offline-capable or NEEDS CLARIFICATION]
|
|
28
|
-
**Scale/Scope**: [domain-specific, e.g., 10k users, 1M LOC, 50 screens or NEEDS CLARIFICATION]
|
|
29
|
-
|
|
30
|
-
## Constitution Check
|
|
31
|
-
|
|
32
|
-
*GATE: Must pass before Phase 0 research. Re-check after Phase 1 design.*
|
|
33
|
-
|
|
34
|
-
[Gates determined based on constitution file]
|
|
35
|
-
|
|
36
|
-
## Project Structure
|
|
37
|
-
|
|
38
|
-
### Documentation (this feature)
|
|
39
|
-
|
|
40
|
-
```text
|
|
41
|
-
specs/[###-feature]/
|
|
42
|
-
├── plan.md # This file (/speckit.plan command output)
|
|
43
|
-
├── research.md # Phase 0 output (/speckit.plan command)
|
|
44
|
-
├── data-model.md # Phase 1 output (/speckit.plan command)
|
|
45
|
-
├── quickstart.md # Phase 1 output (/speckit.plan command)
|
|
46
|
-
├── contracts/ # Phase 1 output (/speckit.plan command)
|
|
47
|
-
└── tasks.md # Phase 2 output (/speckit.tasks command - NOT created by /speckit.plan)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### Source Code (repository root)
|
|
51
|
-
<!--
|
|
52
|
-
ACTION REQUIRED: Replace the placeholder tree below with the concrete layout
|
|
53
|
-
for this feature. Delete unused options and expand the chosen structure with
|
|
54
|
-
real paths (e.g., apps/admin, packages/something). The delivered plan must
|
|
55
|
-
not include Option labels.
|
|
56
|
-
-->
|
|
57
|
-
|
|
58
|
-
```text
|
|
59
|
-
# [REMOVE IF UNUSED] Option 1: Single project (DEFAULT)
|
|
60
|
-
src/
|
|
61
|
-
├── models/
|
|
62
|
-
├── services/
|
|
63
|
-
├── cli/
|
|
64
|
-
└── lib/
|
|
65
|
-
|
|
66
|
-
tests/
|
|
67
|
-
├── contract/
|
|
68
|
-
├── integration/
|
|
69
|
-
└── unit/
|
|
70
|
-
|
|
71
|
-
# [REMOVE IF UNUSED] Option 2: Web application (when "frontend" + "backend" detected)
|
|
72
|
-
backend/
|
|
73
|
-
├── src/
|
|
74
|
-
│ ├── models/
|
|
75
|
-
│ ├── services/
|
|
76
|
-
│ └── api/
|
|
77
|
-
└── tests/
|
|
78
|
-
|
|
79
|
-
frontend/
|
|
80
|
-
├── src/
|
|
81
|
-
│ ├── components/
|
|
82
|
-
│ ├── pages/
|
|
83
|
-
│ └── services/
|
|
84
|
-
└── tests/
|
|
85
|
-
|
|
86
|
-
# [REMOVE IF UNUSED] Option 3: Mobile + API (when "iOS/Android" detected)
|
|
87
|
-
api/
|
|
88
|
-
└── [same as backend above]
|
|
89
|
-
|
|
90
|
-
ios/ or android/
|
|
91
|
-
└── [platform-specific structure: feature modules, UI flows, platform tests]
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
**Structure Decision**: [Document the selected structure and reference the real
|
|
95
|
-
directories captured above]
|
|
96
|
-
|
|
97
|
-
## Complexity Tracking
|
|
98
|
-
|
|
99
|
-
> **Fill ONLY if Constitution Check has violations that must be justified**
|
|
100
|
-
|
|
101
|
-
| Violation | Why Needed | Simpler Alternative Rejected Because |
|
|
102
|
-
|-----------|------------|-------------------------------------|
|
|
103
|
-
| [e.g., 4th project] | [current need] | [why 3 projects insufficient] |
|
|
104
|
-
| [e.g., Repository pattern] | [specific problem] | [why direct DB access insufficient] |
|