Add context packs impact analysis and message validation

This commit is contained in:
2026-05-07 10:17:24 +08:00
parent f2d0a83705
commit 0c5254eb1b
18 changed files with 780 additions and 13 deletions

View File

@@ -177,6 +177,8 @@ gsp index
gsp trace <id>
gsp flatten <id>
gsp pack <id>
gsp impact <id>
gsp message validate <file>
gsp graph <id>
gsp stage-check --stage implement
```
@@ -190,6 +192,8 @@ go build -o ../bin/gsp ./cmd/gsp
../bin/gsp version
../bin/gsp validate --root ../examples/lottery
../bin/gsp flatten page.lottery.main --root ../examples/lottery --depth -1 --out ../.gsp/flattened.json
../bin/gsp pack page.lottery.main --root ../examples/lottery --for implement --format md --out ../.gsp/context-pack.md
../bin/gsp impact feedback.positive --root ../examples/lottery --format md --out ../.gsp/impact.md
../bin/gsp graph page.lottery.main --root ../examples/lottery --format mermaid --out ../.gsp/graph.mmd
../bin/gsp graph page.lottery.main --root ../examples/lottery --format md --out ../.gsp/graph.md
../bin/gsp graph page.lottery.main --root ../examples/lottery --format canvas --out ../.gsp/graph.canvas
@@ -216,7 +220,9 @@ go build -o ../bin/gsp ./cmd/gsp
.gsp/graph.md
.gsp/graph.canvas
.gsp/context-pack.json
.gsp/context-pack.md
.gsp/flattened.json
.gsp/impact.md
```
## 6. 必须考虑的问题