flower-trellis 0.6.12-beta.6 → 0.6.12
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/overrides/bundles/shared-hook-runtime.json +5 -1
- package/enhancements/0.6/overrides/patches/hooks/inject-workflow-state/shared-runtime/main-content.py +9 -0
- package/enhancements/0.6/overrides/patches/scripts/context-output-cleanup/patch.json +19 -0
- package/enhancements/0.6/overrides/patches/scripts/context-output-cleanup/phase-index-content.py +9 -0
- package/enhancements/0.6/overrides/patches/scripts/context-output-cleanup/phase-index-selector.py +1 -0
- package/enhancements/MANIFEST.json +5 -2
- package/package.json +3 -3
- package/src/assets/flower_session_start.py +7 -0
|
@@ -3,5 +3,9 @@
|
|
|
3
3
|
"id": "shared-hook-runtime",
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"installMode": "full-only",
|
|
6
|
-
"patches": [
|
|
6
|
+
"patches": [
|
|
7
|
+
"hooks/inject-workflow-state/shared-runtime",
|
|
8
|
+
"scripts/windows-streams",
|
|
9
|
+
"scripts/context-output-cleanup"
|
|
10
|
+
]
|
|
7
11
|
}
|
|
@@ -89,6 +89,15 @@ def main() -> int:
|
|
|
89
89
|
if breadcrumb is None:
|
|
90
90
|
return 0
|
|
91
91
|
|
|
92
|
+
if platform in CONDITIONAL_WORKFLOW_STATE_PLATFORMS and not force_refresh:
|
|
93
|
+
# Keep the source and tracker fingerprint intact; clean only the emitted copy.
|
|
94
|
+
breadcrumb = re.sub(
|
|
95
|
+
r"^<!-- (?:BEGIN|END) skill-garden patch [^<>\r\n]+ -->(?:\r?\n|$)",
|
|
96
|
+
"",
|
|
97
|
+
breadcrumb,
|
|
98
|
+
flags=re.MULTILINE,
|
|
99
|
+
)
|
|
100
|
+
|
|
92
101
|
# Kiro (CLI userPromptSubmit / IDE promptSubmit) adds a hook's stdout
|
|
93
102
|
# directly to the conversation context — no JSON envelope. Emit the bare
|
|
94
103
|
# breadcrumb text. Conditionally isolated: all other platforms keep the
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 2,
|
|
3
|
+
"id": "context-output-cleanup",
|
|
4
|
+
"purpose": "control_plane_integrity",
|
|
5
|
+
"operations": [
|
|
6
|
+
{
|
|
7
|
+
"id": "workflow-phase-index-output-cleanup",
|
|
8
|
+
"operation": "replace",
|
|
9
|
+
"targets": [{
|
|
10
|
+
"kind": "file",
|
|
11
|
+
"path": ".trellis/scripts/common/workflow_phase.py",
|
|
12
|
+
"missing": "skip",
|
|
13
|
+
"markerStyle": "hash"
|
|
14
|
+
}],
|
|
15
|
+
"selector": { "type": "literal", "source": "phase-index-selector.py" },
|
|
16
|
+
"content": { "source": "phase-index-content.py" }
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
package/enhancements/0.6/overrides/patches/scripts/context-output-cleanup/phase-index-content.py
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
section = tag_re.sub("", section)
|
|
2
|
+
# Keep ownership markers in workflow.md; omit only their standalone output lines.
|
|
3
|
+
section = _re.sub(
|
|
4
|
+
r"^<!-- (?:BEGIN|END) skill-garden patch [^<>\r\n]+ -->(?:\r?\n|$)",
|
|
5
|
+
"",
|
|
6
|
+
section,
|
|
7
|
+
flags=_re.MULTILINE,
|
|
8
|
+
)
|
|
9
|
+
return section.rstrip() + "\n"
|
package/enhancements/0.6/overrides/patches/scripts/context-output-cleanup/phase-index-selector.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
return tag_re.sub("", section).rstrip() + "\n"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"syncedAt": "2026-10-
|
|
2
|
+
"syncedAt": "2026-10-28T04:26:43.183Z",
|
|
3
3
|
"syncedFrom": "vendor/skill-garden",
|
|
4
|
-
"sourceCommit": "
|
|
4
|
+
"sourceCommit": "dc9fc156c5e8ad457a6cc5cb1ae25cd8725038e7",
|
|
5
5
|
"common": {
|
|
6
6
|
"codexSkills": [
|
|
7
7
|
"aliyun-ops",
|
|
@@ -224,6 +224,9 @@
|
|
|
224
224
|
"hooks/session-start/update-boundary/notice-output-selector.py",
|
|
225
225
|
"hooks/session-start/update-boundary/patch.json",
|
|
226
226
|
"hooks/session-start/update-boundary/update-resolver-selector.py",
|
|
227
|
+
"scripts/context-output-cleanup/patch.json",
|
|
228
|
+
"scripts/context-output-cleanup/phase-index-content.py",
|
|
229
|
+
"scripts/context-output-cleanup/phase-index-selector.py",
|
|
227
230
|
"scripts/runtime-state-integrity/active-task-fallback-content.py",
|
|
228
231
|
"scripts/runtime-state-integrity/active-task-fallback-selector.py",
|
|
229
232
|
"scripts/runtime-state-integrity/active-task-resolution-content.py",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flower-trellis",
|
|
3
|
-
"version": "0.6.12
|
|
3
|
+
"version": "0.6.12",
|
|
4
4
|
"description": "一键安装/升级 Trellis 并自动融合 skill-garden 强化包(默认 Claude + agents)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"commit-and-tag-version": "^12.7.3"
|
|
72
72
|
},
|
|
73
73
|
"flowerReleaseNotes": {
|
|
74
|
-
"version": "0.6.12
|
|
74
|
+
"version": "0.6.12",
|
|
75
75
|
"source": "CHANGELOG.md",
|
|
76
|
-
"body": "### ✨ 新功能 Features\n\n* **task:** 支持显式终止旧任务并保留拒绝记录 ([e6f7e5a](https://github.com/SilentFlower/flower-trellis/commit/e6f7e5a9c7c40c1094c6f5d80995b2a067ce2937))\n\n\n### 🐛 修复 Bug Fixes\n\n* **codex:** 保留用户多 agent 配置并修正版本说明 ([839e7e2](https://github.com/SilentFlower/flower-trellis/commit/839e7e2397baf4d78db150702707d90ace48ecc9))\n* **task:** 同步决策审查与归档规则 ([8ab3f0a](https://github.com/SilentFlower/flower-trellis/commit/8ab3f0ad4619b3bfa2afeceae3f57874566c2acd))\n* **workflow:** 同步快速直改收尾规则与验证 ([ef145c9](https://github.com/SilentFlower/flower-trellis/commit/ef145c955d9d282c92bae4e272e43eaebdcaaced))",
|
|
76
|
+
"body": "### ✨ 新功能 Features\n\n* **codex:** 默认启用同步用户交互 ([8f56915](https://github.com/SilentFlower/flower-trellis/commit/8f56915b297c8b797cd03d1255f5a6847f7af7b0))\n* **hooks:** 注入简洁设计原则并精简启动上下文 ([92fb5f0](https://github.com/SilentFlower/flower-trellis/commit/92fb5f06671e17cf41af753f5faa99ba68db183e))\n* **route:** 同步按需加载与简短路由展示 ([b38853d](https://github.com/SilentFlower/flower-trellis/commit/b38853d59844c63245102081c2a4d446b2437d7a))\n* **task:** 支持显式终止旧任务并保留拒绝记录 ([e6f7e5a](https://github.com/SilentFlower/flower-trellis/commit/e6f7e5a9c7c40c1094c6f5d80995b2a067ce2937))\n* **workflow:** 同步连续收尾与增量方案确认 ([c13ebc2](https://github.com/SilentFlower/flower-trellis/commit/c13ebc2da1572e1fadd5eea7515440d1da3dc996))\n* **worktree:** 支持独立创建和目标本地准备 ([83c51b5](https://github.com/SilentFlower/flower-trellis/commit/83c51b53e334dae4e847a05628cf8602c1f70411))\n\n\n### 🐛 修复 Bug Fixes\n\n* **auto-loop:** 同步启动选模交接与回归 ([50d11e5](https://github.com/SilentFlower/flower-trellis/commit/50d11e55012a761a6c0eaffe49404d8052df289e))\n* **check-all:** 同步修复续行入口与回归检查 ([36cd997](https://github.com/SilentFlower/flower-trellis/commit/36cd997f664781eebe4b4a97df266b37e5a1747a))\n* **check-all:** 同步修复续行规则与回归检查 ([ca7c64b](https://github.com/SilentFlower/flower-trellis/commit/ca7c64ba4736d03643ce4b0cbe5fabb8aaf30cfc))\n* **codex:** 保留用户多 agent 配置并修正版本说明 ([839e7e2](https://github.com/SilentFlower/flower-trellis/commit/839e7e2397baf4d78db150702707d90ace48ecc9))\n* **hooks:** 修复任务归档失败与启动诊断刷屏 ([9dc372f](https://github.com/SilentFlower/flower-trellis/commit/9dc372f5a0cbe878504f836593121c505c3e289d))\n* **push:** 保留规定的计划与结果模板结构 ([f7346b0](https://github.com/SilentFlower/flower-trellis/commit/f7346b01765c2415555ad7ceae7a8891e7aead04))\n* **task:** 同步 Git 路径校验兼容修正 ([e9a7e0e](https://github.com/SilentFlower/flower-trellis/commit/e9a7e0eb04363a34bfba19fbaecf52e82367bb51))\n* **task:** 同步决策审查与归档规则 ([8ab3f0a](https://github.com/SilentFlower/flower-trellis/commit/8ab3f0ad4619b3bfa2afeceae3f57874566c2acd))\n* **test:** 对齐跨平台 Python 命令夹具 ([e07287a](https://github.com/SilentFlower/flower-trellis/commit/e07287a523f777e7f389adac8064a4b82b3272b2))\n* **test:** 隔离同步交互回归的全局 Trellis ([4ad9c0c](https://github.com/SilentFlower/flower-trellis/commit/4ad9c0c62acaef101f5fcce2356cd79d6b73ac77))\n* **workflow:** 同步快速直改收尾规则与验证 ([ef145c9](https://github.com/SilentFlower/flower-trellis/commit/ef145c955d9d282c92bae4e272e43eaebdcaaced))\n* **workflow:** 同步流程精简与能力回归 ([cb46908](https://github.com/SilentFlower/flower-trellis/commit/cb4690880eaac5f0d27f38f852c0d4d8475573bd))\n* **workflow:** 校验停止指令来源并同步规则快照 ([dcadf66](https://github.com/SilentFlower/flower-trellis/commit/dcadf66b16904e1e4c9c36abedc47685da07e6a3))\n\n\n### ⚡ 性能 Performance\n\n* **context:** 仅在输出中省略 Patch 归属注释 ([2e0d0d0](https://github.com/SilentFlower/flower-trellis/commit/2e0d0d0d902fa2a8c1a7b10a24ecd80de2d9f987))\n\n\n### ♻️ 重构 Refactor\n\n* **route:** 同步静默展示规则与快照 ([ff8659d](https://github.com/SilentFlower/flower-trellis/commit/ff8659dcc66789a3f77656167131c7a76b3dd0d0))",
|
|
77
77
|
"truncated": false
|
|
78
78
|
},
|
|
79
79
|
"optionalDependencies": {
|
|
@@ -369,6 +369,13 @@ def render_part(root: Path, hook: str, part: str, hook_input: dict) -> dict | No
|
|
|
369
369
|
result.pop("systemMessage", None)
|
|
370
370
|
try:
|
|
371
371
|
workflow_state = _run_workflow_state_refresh(root, hook, hook_input)
|
|
372
|
+
# 归属标记留在源文件中;注入时仅省略这些整行注释,避免压缩规则措辞。
|
|
373
|
+
workflow_state = re.sub(
|
|
374
|
+
r"^<!-- (?:BEGIN|END) skill-garden patch [^<>\r\n]+ -->(?:\r?\n|$)",
|
|
375
|
+
"",
|
|
376
|
+
workflow_state,
|
|
377
|
+
flags=re.MULTILINE,
|
|
378
|
+
)
|
|
372
379
|
separator = "" if not context or context.endswith("\n") else "\n"
|
|
373
380
|
context = f"{context}{separator}{workflow_state}"
|
|
374
381
|
except Exception as error:
|