@rpamis/comet 0.4.0-beta.5 → 0.4.0-beta.6
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/README.md +6 -3
- package/assets/manifest.json +1 -1
- package/assets/skills/comet/SKILL.md +1 -1
- package/assets/skills/comet/reference/comet-yaml-fields.md +4 -2
- package/assets/skills/comet/scripts/comet-runtime.mjs +504 -260
- package/assets/skills/comet-archive/SKILL.md +6 -7
- package/assets/skills/comet-build/SKILL.md +16 -10
- package/assets/skills/comet-hotfix/SKILL.md +16 -2
- package/assets/skills/comet-tweak/SKILL.md +15 -3
- package/assets/skills/comet-verify/SKILL.md +2 -0
- package/assets/skills-zh/comet/SKILL.md +1 -1
- package/assets/skills-zh/comet/reference/comet-yaml-fields.md +4 -2
- package/assets/skills-zh/comet-archive/SKILL.md +6 -7
- package/assets/skills-zh/comet-build/SKILL.md +16 -10
- package/assets/skills-zh/comet-hotfix/SKILL.md +16 -2
- package/assets/skills-zh/comet-tweak/SKILL.md +15 -3
- package/assets/skills-zh/comet-verify/SKILL.md +2 -0
- package/dist/app/commands/status.d.ts +1 -0
- package/dist/app/commands/status.d.ts.map +1 -1
- package/dist/app/commands/status.js +10 -0
- package/dist/app/commands/status.js.map +1 -1
- package/dist/domains/comet-classic/classic-branch-binding.d.ts +51 -0
- package/dist/domains/comet-classic/classic-branch-binding.d.ts.map +1 -0
- package/dist/domains/comet-classic/classic-branch-binding.js +107 -0
- package/dist/domains/comet-classic/classic-branch-binding.js.map +1 -0
- package/dist/domains/comet-classic/classic-current-change.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-current-change.js +37 -20
- package/dist/domains/comet-classic/classic-current-change.js.map +1 -1
- package/dist/domains/comet-classic/classic-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-guard.js +40 -10
- package/dist/domains/comet-classic/classic-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-hook-guard.js +25 -2
- package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state-command.js +94 -4
- package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
- package/dist/domains/comet-classic/classic-state-events.d.ts +1 -1
- package/dist/domains/comet-classic/classic-state-events.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state.d.ts +2 -1
- package/dist/domains/comet-classic/classic-state.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state.js +3 -0
- package/dist/domains/comet-classic/classic-state.js.map +1 -1
- package/dist/domains/comet-classic/classic-transitions.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-transitions.js +1 -0
- package/dist/domains/comet-classic/classic-transitions.js.map +1 -1
- package/dist/domains/comet-classic/classic-validate-command.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-validate-command.js +6 -0
- package/dist/domains/comet-classic/classic-validate-command.js.map +1 -1
- package/dist/domains/skill/find.d.ts.map +1 -1
- package/dist/domains/skill/find.js +7 -1
- package/dist/domains/skill/find.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
<a href="https://www.npmjs.com/package/@rpamis/comet"><img alt="npm weekly download count" src="https://img.shields.io/npm/dw/@rpamis/comet?style=flat-square&label=Downloads/wk" /></a>
|
|
17
17
|
<a href="https://docs.comet.rpamis.com/"><img alt="Comet Docs" src="https://img.shields.io/badge/Docs-docs.comet.rpamis.com-FFD700?style=flat-square" /></a>
|
|
18
18
|
<a href="./LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square" /></a>
|
|
19
|
+
<a href="https://atomgit.com/rpamis/comet"><img alt="AtomGitStars" src="https://atomgit.com/rpamis/comet/star/badge.svg" /></a>
|
|
19
20
|
</p>
|
|
20
21
|
|
|
21
22
|
<p align="center">
|
|
@@ -536,7 +537,8 @@ build_mode: subagent-driven-development # Build mode: subagent-
|
|
|
536
537
|
build_pause: null # `build_pause` records an internal build-phase pause point: null none, `plan-ready` means the plan has been generated
|
|
537
538
|
subagent_dispatch: null # Dispatch confirmation; confirm before verify
|
|
538
539
|
tdd_mode: null # Full-workflow build choice: tdd | direct
|
|
539
|
-
isolation: branch # Isolation mode: branch | worktree
|
|
540
|
+
isolation: branch # Isolation mode: current | branch | worktree
|
|
541
|
+
bound_branch: null # Git branch bound by current/branch/worktree isolation; branch drift blocks progress
|
|
540
542
|
verify_mode: null # Verification mode: light | full
|
|
541
543
|
design_doc: docs/superpowers/specs/<design-doc>.md # Design doc path
|
|
542
544
|
plan: docs/superpowers/plans/YYYY-MM-DD-feature.md # Implementation plan path
|
|
@@ -580,7 +582,8 @@ Comet ensures agent execution reliability through automated state transitions:
|
|
|
580
582
|
- Detects unknown/typos fields
|
|
581
583
|
|
|
582
584
|
4. **Build Decision Enforcement** — Guard and state transitions both block skipped build choices
|
|
583
|
-
- `isolation` must be `branch
|
|
585
|
+
- `isolation` must be `current`, `branch`, or `worktree`
|
|
586
|
+
- `isolation: current`, `branch`, and `worktree` bind the current Git branch, and later entry checks block accidental branch drift
|
|
584
587
|
- `build_mode` must be selected before leaving build
|
|
585
588
|
- `build_pause: plan-ready` is a recoverable pause after plan generation, not a `build_mode`
|
|
586
589
|
- Full workflow `build_mode: direct` requires `direct_override: true`
|
|
@@ -720,7 +723,7 @@ Track our development progress and upcoming features on the [Comet Roadmap](http
|
|
|
720
723
|
<b>DouYin (Recommended)</b>
|
|
721
724
|
</td>
|
|
722
725
|
<td align="center" width="180">
|
|
723
|
-
<img src="https://github.com/rpamis/comet/blob/master/img/wechat.
|
|
726
|
+
<img src="https://github.com/rpamis/comet/blob/master/img/wechat.png" width="120" height="120"><br>
|
|
724
727
|
<b>WeChat</b>
|
|
725
728
|
</td>
|
|
726
729
|
<td align="center" width="180">
|
package/assets/manifest.json
CHANGED
|
@@ -248,7 +248,7 @@ Agents should not skip these decision points; other unambiguous phase transition
|
|
|
248
248
|
|
|
249
249
|
### State Machine Hard Constraints
|
|
250
250
|
|
|
251
|
-
- Before
|
|
251
|
+
- Before `build → verify`, `isolation` must be `current`, `branch`, or `worktree`; all three workspace modes must come from explicit user selection and bind the current branch
|
|
252
252
|
- Before `build → verify`, `build_mode` must be selected
|
|
253
253
|
- `build_mode: subagent-driven-development` must also have `subagent_dispatch: confirmed`
|
|
254
254
|
- Before full workflow leaves build phase, `tdd_mode` must be selected as `tdd` or `direct`
|
|
@@ -21,6 +21,7 @@ tdd_mode: tdd
|
|
|
21
21
|
review_mode: standard
|
|
22
22
|
auto_transition: true
|
|
23
23
|
isolation: branch
|
|
24
|
+
bound_branch: null
|
|
24
25
|
verify_mode: light
|
|
25
26
|
verify_result: pending
|
|
26
27
|
verify_failures: 0
|
|
@@ -47,7 +48,8 @@ archived: false
|
|
|
47
48
|
| `subagent_dispatch` | `null` or `confirmed`. Only when the platform's real background subagent/Task/multi-agent dispatch capability is confirmed may `build_mode: subagent-driven-development` be written and used to leave the build phase |
|
|
48
49
|
| `tdd_mode` | `tdd` or `direct`. Full workflow must select before leaving build. `tdd` forces write-failing-test-first per task; `direct` skips per-task TDD but still requires relevant tests and bug-regression evidence. hotfix/tweak default to `direct` |
|
|
49
50
|
| `review_mode` | `off`, `standard`, or `thorough`. Full workflow must select before leaving build; hotfix/tweak default to `off` |
|
|
50
|
-
| `isolation` | `current`, `branch`, or `worktree`. Full init may be `null
|
|
51
|
+
| `isolation` | `current`, `branch`, or `worktree`. Full init may be `null`, but before leaving build the user must explicitly select `current`, create/select a real `branch`, or create/select a real `worktree`; hotfix/tweak may also truthfully use all three modes after the entry user decision point, and must not claim branch isolation before creating one |
|
|
52
|
+
| `bound_branch` | Workspace branch binding record; may be empty. `isolation: current` / `branch` / `worktree` records the current Git branch of the directory the command runs in on first setting or entry check (for worktree mode, run set/check/guard inside that worktree, or the wrong branch gets bound/compared); switching `isolation` between workspace modes re-binds to the current branch, while repeating the same mode keeps the existing binding. Later `comet state select` / `comet state check` must confirm the bound branch still matches the current branch. On drift, `select` refuses and checks return `BLOCKED`; follow the decision-point protocol so the user chooses whether to switch back to the bound branch or explicitly confirm and run `comet state rebind <change-name>`. Clearing `isolation` clears this field |
|
|
51
53
|
| `verify_mode` | `light` or `full`; may be empty |
|
|
52
54
|
| `auto_transition` | `true` or `false`. Only controls whether to automatically invoke the next skill after phase guard advances phase; `false` outputs `manual` from `comet-state next`, pausing next-skill invocation but not blocking phase field updates |
|
|
53
55
|
| `verify_result` | `pending`, `pass`, or `fail` |
|
|
@@ -67,7 +69,7 @@ archived: false
|
|
|
67
69
|
|
|
68
70
|
## State Machine Hard Constraints
|
|
69
71
|
|
|
70
|
-
- Before
|
|
72
|
+
- Before `build → verify`, `isolation` must be `current`, `branch`, or `worktree`
|
|
71
73
|
- Before `build → verify`, `build_mode` must be selected
|
|
72
74
|
- `build_mode: subagent-driven-development` requires `subagent_dispatch: confirmed`
|
|
73
75
|
- Full workflow must select `tdd_mode` as `tdd` or `direct` before leaving build
|