flower-trellis 0.6.12 → 0.6.13-beta.0

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.
@@ -797,7 +797,7 @@
797
797
  "type": "required-literal",
798
798
  "values": [
799
799
  "<!-- BEGIN skill-garden patch trellis-meta-managed-template-hashes v0.6 -->\n## Meaning Of Template Hashes",
800
- "Plugin ownership, Patch provenance, transaction checks",
800
+ "Plugin ownership, Patch application records, transaction checks",
801
801
  "<!-- BEGIN skill-garden patch trellis-meta-managed-file-boundaries v0.6 -->\n## Local Customization Boundaries",
802
802
  "| Skill-Garden managed |"
803
803
  ]
@@ -817,7 +817,7 @@
817
817
  "type": "required-literal",
818
818
  "values": [
819
819
  "<!-- BEGIN skill-garden patch trellis-meta-managed-template-hashes v0.6 -->\n## Meaning Of Template Hashes",
820
- "Plugin ownership, Patch provenance, transaction checks",
820
+ "Plugin ownership, Patch application records, transaction checks",
821
821
  "<!-- BEGIN skill-garden patch trellis-meta-managed-file-boundaries v0.6 -->\n## Local Customization Boundaries",
822
822
  "| Skill-Garden managed |"
823
823
  ]
@@ -3,6 +3,44 @@
3
3
  "id": "session-start-context-trim",
4
4
  "purpose": "hook_override",
5
5
  "operations": [
6
+ {
7
+ "id": "session-start-spec-discovery",
8
+ "operation": "replace",
9
+ "targetPolicy": "each-existing",
10
+ "targets": [
11
+ { "kind": "hook", "path": ".codex/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
12
+ { "kind": "hook", "path": ".claude/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
13
+ { "kind": "hook", "path": ".codebuddy/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
14
+ { "kind": "hook", "path": ".cursor/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
15
+ { "kind": "hook", "path": ".factory/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
16
+ { "kind": "hook", "path": ".gemini/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
17
+ { "kind": "hook", "path": ".kiro/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
18
+ { "kind": "hook", "path": ".qoder/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
19
+ { "kind": "hook", "path": ".trae/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
20
+ { "kind": "hook", "path": ".zcode/hooks/session-start.py", "missing": "skip", "markerStyle": "none" }
21
+ ],
22
+ "selector": { "type": "literal", "source": "spec-discovery-selector.py", "expectedMatches": 1 },
23
+ "content": { "source": "spec-discovery-content.py" }
24
+ },
25
+ {
26
+ "id": "session-start-spec-count",
27
+ "operation": "replace",
28
+ "targetPolicy": "each-existing",
29
+ "targets": [
30
+ { "kind": "hook", "path": ".codex/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
31
+ { "kind": "hook", "path": ".claude/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
32
+ { "kind": "hook", "path": ".codebuddy/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
33
+ { "kind": "hook", "path": ".cursor/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
34
+ { "kind": "hook", "path": ".factory/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
35
+ { "kind": "hook", "path": ".gemini/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
36
+ { "kind": "hook", "path": ".kiro/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
37
+ { "kind": "hook", "path": ".qoder/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
38
+ { "kind": "hook", "path": ".trae/hooks/session-start.py", "missing": "skip", "markerStyle": "none" },
39
+ { "kind": "hook", "path": ".zcode/hooks/session-start.py", "missing": "skip", "markerStyle": "none" }
40
+ ],
41
+ "selector": { "type": "literal", "source": "spec-count-selector.py", "expectedMatches": 1 },
42
+ "content": { "source": "spec-count-content.py" }
43
+ },
6
44
  {
7
45
  "id": "codex-session-start-platform-dispatch-helper",
8
46
  "operation": "insert",
@@ -0,0 +1 @@
1
+ lines.append(f"Spec indexes: {len(spec_index_paths)} available.")
@@ -0,0 +1,2 @@
1
+ if spec_index_paths:
2
+ lines.append(f"Spec indexes: {len(spec_index_paths)} available.")
@@ -0,0 +1,9 @@
1
+ if ".trellis/spec/guides/index.md" in spec_index_paths:
2
+ output.write("## Shared guidelines\n")
3
+ output.write("- .trellis/spec/guides/index.md\n\n")
4
+
5
+ output.write(
6
+ "Read the active task's `implement.jsonl` or `check.jsonl` for task-specific guidelines. "
7
+ "Find other relevant specs with "
8
+ "`python3 ./.trellis/scripts/spec_router.py \"<task keywords>\"`.\n\n"
9
+ )
@@ -0,0 +1,5 @@
1
+ if spec_index_paths:
2
+ output.write("## Available indexes (read on demand)\n")
3
+ for p in spec_index_paths:
4
+ output.write(f"- {p}\n")
5
+ output.write("\n")
@@ -6,4 +6,4 @@
6
6
  4. **Keep the lifecycle ordered**: Change `vendor/skill-garden/.trellis/0.6/`, run `npm run sync` to refresh `enhancements/0.6/`, regenerate/check compiled targets, then update dogfood through the Flower Plugin lifecycle.
7
7
  5. **Keep shared semantics aligned**: Workflow owner changes may require matching skill, hook, helper, or platform entry updates, but each full procedure stays with its owning capability.
8
8
  6. **Keep project-specific rules project-local**: Use `.trellis/spec/` or a separately owned local skill; do not turn public `trellis-meta` into a project notebook.
9
- 7. **Preserve evidence and user content**: Respect Plugin ownership, first-backup/provenance records, template conflicts, and current user modifications. Never use `node_modules` as an authoring target.
9
+ 7. **Preserve evidence and user content**: Respect Plugin ownership, first-backup and Patch application records, template conflicts, and current user modifications. Never use `node_modules` as an authoring target.
@@ -10,6 +10,6 @@ Directory shape alone does not determine ownership:
10
10
  | Shared common | Plugin state entry with shared ownership | The common source retained across dependent capabilities |
11
11
  | Project-local | No upstream template or Plugin ownership claim, plus project intent | The project file itself |
12
12
 
13
- For managed 0.6 changes, Patch leaves own `insert`/`replace`/`remove` transformations; selectors and full baselines fail closed on upstream drift; content files own replacement bytes; explicit targets and `each-existing` prevent accidental platform creation; Bundles own full/selected aliases; required preflight prevents partial writes; markers and first backups support migration/recovery; provenance records the selected operations; compatibility and conflict policies audit the final result; canonical compiled targets prove the pinned upstream output. These responsibilities must stay in the shared Patch Engine instead of being reimplemented by a skill-specific injector.
13
+ For managed 0.6 changes, Patch leaves own `insert`/`replace`/`remove` transformations; selectors and full baselines fail closed on upstream drift; content files own replacement bytes; explicit targets and `each-existing` prevent accidental platform creation; Bundles own full/selected aliases; required preflight prevents partial writes; markers and first backups support migration/recovery; Patch application records identify the selected operations; compatibility and conflict policies audit the final result; canonical compiled targets prove the pinned upstream output. These responsibilities must stay in the shared Patch Engine instead of being reimplemented by a skill-specific injector.
14
14
 
15
15
  Discover what is active from the local skill roots, `.trellis/workflow.md`, available `overrides/bundles/`, and `.flower/state.json`. Do not infer ownership from a skill name or maintain a fixed Skill-Garden capability list in this document.
@@ -8,6 +8,6 @@ Native Trellis provides three project-local layers:
8
8
 
9
9
  Flower adds a conditional management layer when a Plugin is declared and locked:
10
10
 
11
- 4. **Plugin management layer**: `.flower/plugins.json` records intent, `.flower/plugin-lock.json` records the resolved immutable graph and granted capabilities, and `.flower/state.json` records owned paths, Patch provenance, and resulting hashes. Planning, preflight, transaction, lock, state, rollback, and uninstall are one lifecycle rather than unrelated local edits.
11
+ 4. **Plugin management layer**: `.flower/plugins.json` records intent, `.flower/plugin-lock.json` records the resolved immutable graph and granted capabilities, and `.flower/state.json` records owned paths, applied Patch operations, and resulting hashes. Planning, preflight, transaction, lock, state, rollback, and uninstall are one lifecycle rather than unrelated local edits.
12
12
 
13
13
  Without matching Plugin state or managed markers, use the native three-layer model. With `flower/skill-garden` ownership, read deployed files to understand current behavior but make durable 0.6 changes through the owning Skill-Garden source and Patch catalog.
@@ -8,4 +8,4 @@
8
8
  | File differs from the recorded template hash | Trellis may prompt to overwrite, keep, or generate `.new`. |
9
9
  | File is no longer a current template | Trellis migration rules decide whether to delete, rename, or preserve it. |
10
10
 
11
- This file is not the complete ownership model in a Flower-managed project. When `.flower/plugin-lock.json` and `.flower/state.json` claim a target, Plugin ownership, Patch provenance, transaction checks, and managed result hashes also apply. Do not hand-edit either hash store; inspect both before deciding whether a difference is a user customization, a managed overlay, or drift.
11
+ This file is not the complete ownership model in a Flower-managed project. When `.flower/plugin-lock.json` and `.flower/state.json` claim a target, Plugin ownership, Patch application records, transaction checks, and managed result hashes also apply. Do not hand-edit either hash store; inspect both before deciding whether a difference is a user customization, a managed overlay, or drift.
@@ -7,4 +7,4 @@
7
7
  - project-local or native local customization: edit the narrowly scoped local source;
8
8
  - Flower/Skill-Garden managed target: edit the owning Plugin/Patch source, not the deployed result.
9
9
  5. **For Skill-Garden 0.6 authoring**: change `vendor/skill-garden/.trellis/0.6/`, run `npm run sync`, regenerate/check compiled targets, then apply the Flower lifecycle to dogfood targets.
10
- 6. **Verify final semantics**: check every existing platform target, conflict assertions, provenance, and idempotency. The final files must agree with `.trellis/workflow.md` and their workflow owner.
10
+ 6. **Verify final semantics**: check every existing platform target, conflict assertions, Patch application records, and idempotency. The final files must agree with `.trellis/workflow.md` and their workflow owner.
@@ -10,4 +10,4 @@ Use the ownership evidence, not the directory shape:
10
10
  | Shared common | State path with shared ownership | Shared common source; preserve other consumers |
11
11
  | Project-local | No managed ownership claim | Edit the project file directly |
12
12
 
13
- For a managed target, the durable sequence is source change -> required preflight -> transaction -> state/provenance update. For a project-private behavior, a differently named local skill or `.trellis/spec/` remains preferable to mutating a public bundled skill.
13
+ For a managed target, the durable sequence is source change -> required preflight -> transaction -> state and Patch application record updates. For a project-private behavior, a differently named local skill or `.trellis/spec/` remains preferable to mutating a public bundled skill.
@@ -1,7 +1,7 @@
1
1
  {
2
- "syncedAt": "2026-10-28T04:26:43.183Z",
2
+ "syncedAt": "2026-11-05T13:33:09.454Z",
3
3
  "syncedFrom": "vendor/skill-garden",
4
- "sourceCommit": "dc9fc156c5e8ad457a6cc5cb1ae25cd8725038e7",
4
+ "sourceCommit": "c71dbe89261b6426313ce931ff2543ef630da189",
5
5
  "common": {
6
6
  "codexSkills": [
7
7
  "aliyun-ops",
@@ -213,6 +213,10 @@
213
213
  "hooks/session-start/context-trim/shared-builder-content.py",
214
214
  "hooks/session-start/context-trim/shared-builder-selector.py",
215
215
  "hooks/session-start/context-trim/shared-dispatch-helper-selector.py",
216
+ "hooks/session-start/context-trim/spec-count-content.py",
217
+ "hooks/session-start/context-trim/spec-count-selector.py",
218
+ "hooks/session-start/context-trim/spec-discovery-content.py",
219
+ "hooks/session-start/context-trim/spec-discovery-selector.py",
216
220
  "hooks/session-start/pre-check-hold/claude-content.py",
217
221
  "hooks/session-start/pre-check-hold/claude-selector.py",
218
222
  "hooks/session-start/pre-check-hold/codex-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.13-beta.0",
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.13-beta.0",
75
75
  "source": "CHANGELOG.md",
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))",
76
+ "body": "### 🐛 修复 Bug Fixes\n\n* **hooks:** 同步索引发现修复与大目录预算回归 ([975cf5f](https://github.com/SilentFlower/flower-trellis/commit/975cf5f5c1927bd614b2f3e8c09c940dd70301a0))\n\n\n### 📝 文档 Docs\n\n* 同步 Trellis Meta 的术语修订 ([972160b](https://github.com/SilentFlower/flower-trellis/commit/972160be06b92d6896b23c57b96a1b9d5de9cbb2))",
77
77
  "truncated": false
78
78
  },
79
79
  "optionalDependencies": {