@pennixrv/trellis 0.7.0-beta.45 → 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.
- package/dist/commands/workflow.js +1 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/migrations/manifests/0.7.0-beta.46.json +9 -0
- package/dist/migrations/manifests/0.7.0-beta.47.json +9 -0
- package/dist/templates/codex/hooks/session-start.py +6 -6
- package/dist/templates/common/skills/brainstorm.md +12 -0
- package/dist/templates/common/skills/break-loop.md +4 -0
- package/dist/templates/common/skills/check.md +12 -0
- package/dist/templates/copilot/hooks/session-start.py +6 -6
- package/dist/templates/markdown/spec/backend/database-guidelines.md.txt +22 -22
- package/dist/templates/markdown/spec/backend/directory-structure.md.txt +20 -20
- package/dist/templates/markdown/spec/backend/error-handling.md.txt +22 -22
- package/dist/templates/markdown/spec/backend/index.md.txt +19 -19
- package/dist/templates/markdown/spec/backend/logging-guidelines.md.txt +22 -22
- package/dist/templates/markdown/spec/backend/quality-guidelines.md.txt +22 -22
- package/dist/templates/markdown/spec/frontend/component-guidelines.md.txt +25 -25
- package/dist/templates/markdown/spec/frontend/directory-structure.md.txt +20 -20
- package/dist/templates/markdown/spec/frontend/hook-guidelines.md.txt +22 -22
- package/dist/templates/markdown/spec/frontend/index.md.txt +20 -20
- package/dist/templates/markdown/spec/frontend/quality-guidelines.md.txt +22 -22
- package/dist/templates/markdown/spec/frontend/state-management.md.txt +22 -22
- package/dist/templates/markdown/spec/frontend/type-safety.md.txt +22 -22
- package/dist/templates/markdown/spec/guides/code-reuse-thinking-guide.md.txt +80 -85
- package/dist/templates/markdown/spec/guides/cross-layer-thinking-guide.md.txt +164 -209
- package/dist/templates/markdown/spec/guides/cross-platform-thinking-guide.md.txt +161 -185
- package/dist/templates/markdown/spec/guides/index.md.txt +51 -51
- package/dist/templates/markdown/workspace-index.md +44 -44
- package/dist/templates/opencode/lib/session-utils.js +2 -2
- package/dist/templates/shared-hooks/session-start.py +7 -7
- package/dist/templates/trellis/scripts/add_session.py +35 -32
- package/dist/templates/trellis/scripts/common/developer.py +18 -18
- package/dist/templates/trellis/scripts/common/task_store.py +11 -11
- package/dist/templates/trellis/scripts/common/workflow_phase.py +4 -3
- package/dist/templates/trellis/workflow.md +403 -458
- 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
|
-
|
|
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
|
|
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
|
|
82
|
+
if start is not None and stripped in _PHASE_ONE_HEADINGS:
|
|
82
83
|
end = i
|
|
83
84
|
break
|
|
84
85
|
|