@pennixrv/trellis 0.7.0-beta.46 → 0.7.0-beta.47

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 (31) hide show
  1. package/dist/commands/workflow.js +1 -1
  2. package/dist/commands/workflow.js.map +1 -1
  3. package/dist/migrations/manifests/0.7.0-beta.47.json +9 -0
  4. package/dist/templates/codex/hooks/session-start.py +6 -6
  5. package/dist/templates/copilot/hooks/session-start.py +6 -6
  6. package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +22 -22
  7. package/dist/templates/markdown/spec/backend/directory-structure.md.txt +20 -20
  8. package/dist/templates/markdown/spec/backend/error-handling.md.txt +22 -22
  9. package/dist/templates/markdown/spec/backend/index.md.txt +19 -19
  10. package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +22 -22
  11. package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +22 -22
  12. package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +25 -25
  13. package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +20 -20
  14. package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +22 -22
  15. package/dist/templates/markdown/spec/frontend/index.md.txt +20 -20
  16. package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +22 -22
  17. package/dist/templates/markdown/spec/frontend/state-management.md.txt +22 -22
  18. package/dist/templates/markdown/spec/frontend/type-safety.md.txt +22 -22
  19. package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +80 -85
  20. package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +164 -209
  21. package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +161 -185
  22. package/dist/templates/markdown/spec/guides/index.md.txt +51 -51
  23. package/dist/templates/markdown/workspace-index.md +44 -44
  24. package/dist/templates/opencode/lib/session-utils.js +2 -2
  25. package/dist/templates/shared-hooks/session-start.py +7 -7
  26. package/dist/templates/trellis/scripts/add_session.py +35 -32
  27. package/dist/templates/trellis/scripts/common/developer.py +18 -18
  28. package/dist/templates/trellis/scripts/common/task_store.py +11 -11
  29. package/dist/templates/trellis/scripts/common/workflow_phase.py +4 -3
  30. package/dist/templates/trellis/workflow.md +403 -458
  31. package/package.json +2 -2
@@ -36,7 +36,8 @@ _MARKER_RE = re.compile(r"^\[(/?)([A-Za-z][^\[\]]*)\]\s*$")
36
36
  _STEP_HEADING_RE = re.compile(r"^####\s+(\d+\.\d+)\b.*$")
37
37
 
38
38
  # Phase Index starts here; Phase 1/2/3 step bodies follow; ends at Breadcrumbs.
39
- _PHASE_INDEX_HEADING = "## Phase Index"
39
+ _PHASE_INDEX_HEADINGS = {"## Phase Index", "## 阶段索引(Phase Index)"}
40
+ _PHASE_ONE_HEADINGS = {"## Phase 1: Plan", "## 阶段一:规划(Phase 1: Plan)"}
40
41
 
41
42
 
42
43
  def _read_workflow() -> str:
@@ -75,10 +76,10 @@ def get_phase_index() -> str:
75
76
  end: int | None = None
76
77
  for i, line in enumerate(lines):
77
78
  stripped = line.strip()
78
- if start is None and stripped == _PHASE_INDEX_HEADING:
79
+ if start is None and stripped in _PHASE_INDEX_HEADINGS:
79
80
  start = i
80
81
  continue
81
- if start is not None and stripped == "## Phase 1: Plan":
82
+ if start is not None and stripped in _PHASE_ONE_HEADINGS:
82
83
  end = i
83
84
  break
84
85