@michelj/context-guard 0.4.2 → 0.4.4

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.
Files changed (36) hide show
  1. package/README.md +113 -150
  2. package/README.zh-CN.md +113 -150
  3. package/SKILL.md +46 -0
  4. package/agents/openai.yaml +4 -0
  5. package/bin/context-guard-skill.js +234 -46
  6. package/bin/postinstall.js +1 -1
  7. package/hooks.json +29 -5
  8. package/package.json +12 -5
  9. package/prototype/workbench.html +4933 -0
  10. package/references/bug-record-template.md +37 -0
  11. package/references/context-template.md +19 -0
  12. package/scripts/context_guard.py +806 -0
  13. package/scripts/context_guard_hook.py +302 -0
  14. package/scripts/map_owns.py +769 -0
  15. package/skills/context-guard/README.md +0 -234
  16. package/skills/context-guard/README.zh-CN.md +0 -234
  17. package/skills/context-guard/SKILL.md +0 -558
  18. package/skills/context-guard/agents/openai.yaml +0 -4
  19. package/skills/context-guard/references/context-template.md +0 -290
  20. package/skills/context-guard/references/register-template.md +0 -85
  21. package/skills/context-guard/references/task-case-template.md +0 -63
  22. package/skills/context-guard/scripts/context_guard.py +0 -4886
  23. package/skills/context-guard/scripts/context_guard_hook.py +0 -522
  24. package/skills/context-guard/tests/BC-20260618-063.sh +0 -116
  25. package/skills/context-guard/tests/BC-20260618-065.sh +0 -66
  26. package/skills/context-guard/tests/BC-20260626-080.sh +0 -48
  27. package/skills/context-guard/tests/BC-20260626-081.sh +0 -40
  28. package/skills/context-guard/tests/BC-20260626-082.sh +0 -32
  29. package/skills/context-guard/tests/BC-20260626-083.sh +0 -66
  30. package/skills/context-guard/tests/BC-20260627-084.sh +0 -74
  31. package/skills/context-guard/tests/BC-20260630-086.sh +0 -50
  32. package/skills/context-guard/tests/BC-20260630-087.sh +0 -103
  33. package/skills/context-guard/tests/BC-20260630-088.sh +0 -32
  34. package/skills/context-guard/tests/BC-20260630-089.sh +0 -63
  35. package/skills/context-guard/tests/BC-20260701-090.sh +0 -83
  36. package/skills/context-guard/tests/BC-20260702-096.sh +0 -45
@@ -0,0 +1,37 @@
1
+ # Bug index card + how-to
2
+
3
+ Workbench shows the title only.
4
+
5
+ ## Index `.codex/context/bugs/{id}.md`
6
+
7
+ ```md
8
+ # {id} {title}
9
+
10
+ - node: {homeNodeId}
11
+ - status: open | fixed | deferred | wontfix
12
+ - 现象: one line
13
+ - keys: search words, comma separated
14
+ - fix: .codex/context/fixes/{id}.md
15
+ - card: .codex/context/cards/{homeNodeId}.md
16
+ ```
17
+
18
+ ## How-to `.codex/context/fixes/{id}.md`
19
+
20
+ ```md
21
+ # {id} how to fix
22
+
23
+ - bug: .codex/context/bugs/{id}.md
24
+ - node: {homeNodeId}
25
+ - card: .codex/context/cards/{homeNodeId}.md
26
+ - status: open | fixed | …
27
+
28
+ ## 根因
29
+ ## 怎么修
30
+ ## 怎么防
31
+ ## 代码
32
+ - path/to/source.py
33
+ ## 证据
34
+ - docs/shots/…
35
+ ```
36
+
37
+ Unfixed how-to is `未修`. Code is repo-relative paths only.
@@ -0,0 +1,19 @@
1
+ # Context folder (v1)
2
+
3
+ ```text
4
+ .codex/context/
5
+ FIND.md
6
+ FORMAT.md (this skill’s copy, or write one)
7
+ sessions.jsonl
8
+ bugs/{id}.md
9
+ fixes/{id}.md
10
+ tasks/{id}.md
11
+ map.json
12
+ owns-index.json (generated)
13
+ cards/ (generated)
14
+ preferences.json
15
+ user-messages.md
16
+ private/ (gitignored)
17
+ ```
18
+
19
+ Four stores: sessions, bugs, tasks, map. No Test Hub, no Roadmap HTML, no feature chains.