flower-trellis 0.2.2 → 0.2.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/enhancements/0.6/.agents/skills/trellis-push/SKILL.md +5 -0
- package/enhancements/0.6/.claude/skills/trellis-push/SKILL.md +5 -0
- package/enhancements/0.6/overrides/workflow-states/in_progress-inline.md +1 -0
- package/enhancements/0.6/overrides/workflow-states/in_progress.md +1 -0
- package/enhancements/0.6/overrides/workflow.md +8 -11
- package/enhancements/MANIFEST.json +2 -2
- package/package.json +1 -1
|
@@ -72,6 +72,8 @@ git status --short
|
|
|
72
72
|
|
|
73
73
|
对每个有变更的仓库,依次执行以下操作:
|
|
74
74
|
|
|
75
|
+
> **commit-only 模式**(调用方传入「只提交不推」/「commit-only」语义,如 Trellis Phase 3.4「commit now, push later」):只执行 2.1 展示 → 2.2 暂存确认 → 2.3 commit,**跳过 2.4 push 与 2.5 merge**。Step 3 快照、Step 4 结果照常,结果中标注「本地已提交、未推送,后续仍走 trellis-push 推」。
|
|
76
|
+
|
|
75
77
|
#### 2.1 展示变更摘要
|
|
76
78
|
|
|
77
79
|
```bash
|
|
@@ -105,6 +107,8 @@ git commit -m "<type>(<scope>): <description>"
|
|
|
105
107
|
|
|
106
108
|
#### 2.4 Push 当前分支
|
|
107
109
|
|
|
110
|
+
> **commit-only 模式:跳过 2.4 与 2.5**,直接进 Step 3。
|
|
111
|
+
|
|
108
112
|
```bash
|
|
109
113
|
git push origin <current_branch>
|
|
110
114
|
```
|
|
@@ -291,6 +295,7 @@ git remote -v | grep -E "^origin\s+"
|
|
|
291
295
|
| 语义 | 说明 | 用户怎么说 |
|
|
292
296
|
|------|------|-----------|
|
|
293
297
|
| 默认 | 自动检测所有有变更的仓库并处理 | `/trellis-push` |
|
|
298
|
+
| commit-only | 只 commit 不 push(Phase 3.4「commit now, push later」),跳过 2.4/2.5 | 「只提交不推」/「commit-only」 |
|
|
294
299
|
| 指定仓库 | 只处理指定仓库 | 「只 push 前端」/「push frontend」 |
|
|
295
300
|
| 重新配置 | 重新询问目标分支 | 「重新配置 push 目标分支」/「reconfigure push」 |
|
|
296
301
|
| 临时目标 | 临时指定目标分支(不修改配置) | 「push 到 hotfix 分支」 |
|
|
@@ -72,6 +72,8 @@ git status --short
|
|
|
72
72
|
|
|
73
73
|
对每个有变更的仓库,依次执行以下操作:
|
|
74
74
|
|
|
75
|
+
> **commit-only 模式**(调用方传入「只提交不推」/「commit-only」语义,如 Trellis Phase 3.4「commit now, push later」):只执行 2.1 展示 → 2.2 暂存确认 → 2.3 commit,**跳过 2.4 push 与 2.5 merge**。Step 3 快照、Step 4 结果照常,结果中标注「本地已提交、未推送,后续仍走 trellis-push 推」。
|
|
76
|
+
|
|
75
77
|
#### 2.1 展示变更摘要
|
|
76
78
|
|
|
77
79
|
```bash
|
|
@@ -105,6 +107,8 @@ git commit -m "<type>(<scope>): <description>"
|
|
|
105
107
|
|
|
106
108
|
#### 2.4 Push 当前分支
|
|
107
109
|
|
|
110
|
+
> **commit-only 模式:跳过 2.4 与 2.5**,直接进 Step 3。
|
|
111
|
+
|
|
108
112
|
```bash
|
|
109
113
|
git push origin <current_branch>
|
|
110
114
|
```
|
|
@@ -291,6 +295,7 @@ git remote -v | grep -E "^origin\s+"
|
|
|
291
295
|
| 语义 | 说明 | 用户怎么说 |
|
|
292
296
|
|------|------|-----------|
|
|
293
297
|
| 默认 | 自动检测所有有变更的仓库并处理 | `/trellis-push` |
|
|
298
|
+
| commit-only | 只 commit 不 push(Phase 3.4「commit now, push later」),跳过 2.4/2.5 | 「只提交不推」/「commit-only」 |
|
|
294
299
|
| 指定仓库 | 只处理指定仓库 | 「只 push 前端」/「push frontend」 |
|
|
295
300
|
| 重新配置 | 重新询问目标分支 | 「重新配置 push 目标分支」/「reconfigure push」 |
|
|
296
301
|
| 临时目标 | 临时指定目标分支(不修改配置) | 「push 到 hotfix 分支」 |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<!-- BEGIN skill-garden workflow-state in_progress_inline v0.6 -->
|
|
2
2
|
HIGHEST PRIORITY SKILL-GARDEN STATE GUARD (in_progress-inline):
|
|
3
3
|
Inline mode means the main session edits directly, but check still routes before `trellis-check` / `trellis-check-all`.
|
|
4
|
+
At Phase 3.4, code commit/push still goes through `trellis-push` (commit-only for commit-without-push); never bare `git commit`/`git push` on code (hub: Code Commit Confirmation Gate).
|
|
4
5
|
If active task.json has `last_push_snapshot`, relay `partial_step` + `next_step` once before starting new work.
|
|
5
6
|
<!-- END skill-garden workflow-state in_progress_inline v0.6 -->
|
|
@@ -3,5 +3,6 @@ HIGHEST PRIORITY SKILL-GARDEN STATE GUARD (in_progress):
|
|
|
3
3
|
At Phase 2.1/2.2/3.1, invoke `trellis-route(implement|check)` first, including every check / check-all path.
|
|
4
4
|
Do not spawn `trellis-implement`, `trellis-check`, or `trellis-check-all` directly unless `trellis-route` just selected subagent mode.
|
|
5
5
|
If routing helper is unavailable, ask the same numbered route choices in normal chat and wait for the user's selection.
|
|
6
|
+
At Phase 3.4, code commit/push goes through `trellis-push` (commit-only mode for commit-without-push); never bare `git commit`/`git push` on code (hub: Code Commit Confirmation Gate).
|
|
6
7
|
If active task.json has `last_push_snapshot`, relay `partial_step` + `next_step` once before starting new work.
|
|
7
8
|
<!-- END skill-garden workflow-state in_progress v0.6 -->
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
**Priority**: This hub overrides any conflicting Trellis workflow, skill, or command text for the scoped behaviors below.
|
|
8
8
|
|
|
9
|
-
**Scope**: Phase 2.1 / 2.2 / 3.1 dispatch routing, Phase 3.5 finish-work bookkeeping, and push-progress recovery / snapshot reminders. State blocks should keep only one short skill-garden sentinel per state; long-form rules live here.
|
|
9
|
+
**Scope**: Phase 2.1 / 2.2 / 3.1 dispatch routing, Phase 3.4 code-commit/push via trellis-push, Phase 3.5 finish-work bookkeeping, and push-progress recovery / snapshot reminders. State blocks should keep only one short skill-garden sentinel per state; long-form rules live here.
|
|
10
10
|
|
|
11
11
|
**Mechanical rule**: use this hub as the source of truth. Do not add separate top-level skill-garden override sections or multiple skill-garden sentinels inside the same `workflow-state:*` block.
|
|
12
12
|
|
|
@@ -27,22 +27,19 @@ At phase boundaries, do not ask meta continuation questions such as "continue?",
|
|
|
27
27
|
|
|
28
28
|
Check routing has no 4h preference file. Before `trellis-check`, `trellis-check-all`, or either check sub-agent, route every time so the user can choose check-all vs lightweight and inline vs subagent.
|
|
29
29
|
|
|
30
|
-
####
|
|
30
|
+
#### Code Commit Confirmation Gate
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
Every code commit — and its push — belongs to Phase 3.4 and MUST go through `trellis-push`, mirroring how implement/check must go through `trellis-route`. From the main session the agent never runs bare `git commit` / `git push` on code to bypass it.
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
`trellis-push` IS the confirmation mechanism: its Step 2.2 stages only an explicit, user-approved file list (never `git add -A` / `git add .`); its Step 2.3 shows the drafted commit message for approval. "Confirmed" means the user saw that concrete file list + message inside `trellis-push` and approved it. A preference-style choice does NOT count — e.g. an `AskUserQuestion` "split / single commit" option only picks a strategy, and an option label/description never substitutes for the real file-list + message display.
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
For Phase 3.4 "commit now, push later", invoke `trellis-push` in commit-only mode (commit without pushing); the later push also goes through `trellis-push`.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
This gate is independent of `session_auto_commit`: that switch never authorizes a code commit and never waives going through `trellis-push`. The only bare-`git` commits allowed are the two bookkeeping scripts below, which manage their own `.trellis/**` files.
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
- Running `python3 ./.trellis/scripts/add_session.py ...` may write workspace journal/index files, but must not be described as producing a `chore: record journal` commit.
|
|
42
|
-
- Do not run a compensating `git add` / `git commit` for `.trellis/tasks/**` or `.trellis/workspace/**` just because those scripts skipped auto-commit.
|
|
43
|
-
- Report the resulting `.trellis/tasks/**` and `.trellis/workspace/**` dirty paths to the user as bookkeeping changes for manual review.
|
|
40
|
+
#### Bookkeeping Auto-commit Scope
|
|
44
41
|
|
|
45
|
-
|
|
42
|
+
`session_auto_commit` only governs the bookkeeping commits `task.py archive` / `add_session.py` make for their own `.trellis/tasks/**` and `.trellis/workspace/**` files — never code (gated above). When `false`, those archive/journal writes stay disk-only (no compensating `git commit`).
|
|
46
43
|
|
|
47
44
|
#### Push Progress Recovery / Snapshot
|
|
48
45
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"syncedAt": "2026-06-
|
|
2
|
+
"syncedAt": "2026-06-08T18:22:30.404Z",
|
|
3
3
|
"syncedFrom": "vendor/skill-garden/.trellis",
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "ec0ab7e2dd90b6cfdd86fb7a005610e245c36d40",
|
|
5
5
|
"variants": {
|
|
6
6
|
"old": {
|
|
7
7
|
"claudeSkills": [],
|