@rpamis/comet 0.2.5 → 0.2.7
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/LICENSE +21 -21
- package/README.md +16 -5
- package/assets/manifest.json +1 -1
- package/assets/skills/comet/SKILL.md +19 -1
- package/assets/skills/comet/scripts/comet-archive.sh +255 -258
- package/assets/skills/comet/scripts/comet-guard.sh +407 -257
- package/assets/skills/comet/scripts/comet-state.sh +680 -616
- package/assets/skills/comet/scripts/comet-yaml-validate.sh +157 -138
- package/assets/skills/comet-archive/SKILL.md +3 -0
- package/assets/skills/comet-build/SKILL.md +27 -1
- package/assets/skills-zh/comet/SKILL.md +15 -1
- package/assets/skills-zh/comet-archive/SKILL.md +3 -0
- package/assets/skills-zh/comet-build/SKILL.md +27 -1
- package/bin/comet.js +3 -3
- package/dist/core/openspec.d.ts +3 -1
- package/dist/core/openspec.d.ts.map +1 -1
- package/dist/core/openspec.js +13 -5
- package/dist/core/openspec.js.map +1 -1
- package/dist/core/superpowers.d.ts +2 -1
- package/dist/core/superpowers.d.ts.map +1 -1
- package/dist/core/superpowers.js +23 -20
- package/dist/core/superpowers.js.map +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.js +44 -44
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 rpamis
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 rpamis
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
> 中文版:[README-zh.md](README-zh.md)
|
|
29
|
+
> [B站视频介绍](https://www.bilibili.com/video/BV1y4Gi6CEo1/?spm_id_from=333.1387.homepage.video_card.click&vd_source=d22726fe6b108647dbebf1c5d8817377)
|
|
29
30
|
|
|
30
31
|
**OpenSpec + Superpowers dual-star development workflow** — one command from idea to archive.
|
|
31
32
|
|
|
@@ -67,7 +68,7 @@ comet init
|
|
|
67
68
|
> [!TIP]
|
|
68
69
|
> update version
|
|
69
70
|
>
|
|
70
|
-
> comet update or `npm install -g @rpamis/comet@latest` to get the latest features and fixes.
|
|
71
|
+
> `comet update` or `npm install -g @rpamis/comet@latest` to get the latest features and fixes.
|
|
71
72
|
|
|
72
73
|
## Screenshots
|
|
73
74
|
|
|
@@ -235,6 +236,8 @@ verified_at: null
|
|
|
235
236
|
archived: false
|
|
236
237
|
```
|
|
237
238
|
|
|
239
|
+
In full workflow, `build_mode` and `isolation` may temporarily be `null` at init time, but they must be resolved before `build → verify`. `direct` is allowed by default only for hotfix/tweak; full workflow requires `direct_override: true`. Projects can configure `build_command` / `verify_command` in the change or repo root, and guard will run those commands first and print failure output.
|
|
240
|
+
|
|
238
241
|
All states and execution phases are updated via scripts, and **each phase verifies that tasks are truly completed before exiting — conditions are met before the phase exits and state is updated**. Compared to recording complex state management mechanisms in Skills, the script approach strongly guarantees the reliability of core state transitions, correctness of YAML files, and convenience of breakpoint recovery — Agents only need to use Comet's built-in commands to read state and know the current Spec's situation.
|
|
239
242
|
|
|
240
243
|
### Reliability Features
|
|
@@ -252,18 +255,23 @@ Comet ensures agent execution reliability through automated state transitions:
|
|
|
252
255
|
- Guard and archive scripts use `comet-state.sh` internally for state management
|
|
253
256
|
|
|
254
257
|
3. **Schema Validation** — `comet-yaml-validate.sh` ensures data integrity
|
|
255
|
-
- Validates required
|
|
256
|
-
- Validates enum values
|
|
258
|
+
- Validates required and optional fields
|
|
259
|
+
- Validates enum values, including `direct_override`
|
|
257
260
|
- Validates referenced file paths exist
|
|
258
261
|
- Detects unknown/typos fields
|
|
259
262
|
|
|
260
|
-
4. **
|
|
263
|
+
4. **Build Decision Enforcement** — Guard and state transitions both block skipped build choices
|
|
264
|
+
- `isolation` must be `branch` or `worktree`
|
|
265
|
+
- `build_mode` must be selected before leaving build
|
|
266
|
+
- Full workflow `build_mode: direct` requires `direct_override: true`
|
|
267
|
+
|
|
268
|
+
5. **Verification Evidence** — Guard enforces proof before phase advance
|
|
261
269
|
- `verify-pass` transition requires `verification_report` pointing to an existing report file
|
|
262
270
|
- `branch_status` must be `handled` before verify can pass
|
|
263
271
|
- Guard checks `verification_report exists` and `branch_status=handled` as hard prerequisites
|
|
264
272
|
- Prevents false phase advances when verification or branch handling was skipped
|
|
265
273
|
|
|
266
|
-
|
|
274
|
+
6. **Archive Automation** — `comet-archive.sh` handles the full archive flow in one command
|
|
267
275
|
- Validates entry state, syncs delta specs to main specs
|
|
268
276
|
- Annotates design doc and plan frontmatter
|
|
269
277
|
- Moves change to archive directory and updates `archived: true`
|
|
@@ -349,3 +357,6 @@ See [CHANGELOG.md](CHANGELOG.md) for version history and updates.
|
|
|
349
357
|
## License
|
|
350
358
|
|
|
351
359
|
[MIT](LICENSE.md)
|
|
360
|
+
|
|
361
|
+
## Reference
|
|
362
|
+
[LINUX DO - 新的理想型社区](https://linux.do/)
|
package/assets/manifest.json
CHANGED
|
@@ -156,6 +156,8 @@ build_mode: subagent-driven-development
|
|
|
156
156
|
isolation: branch
|
|
157
157
|
verify_mode: light
|
|
158
158
|
verify_result: pending
|
|
159
|
+
verification_report: null
|
|
160
|
+
branch_status: pending
|
|
159
161
|
verified_at: null
|
|
160
162
|
archived: false
|
|
161
163
|
```
|
|
@@ -167,12 +169,28 @@ archived: false
|
|
|
167
169
|
| `design_doc` | Associated Superpowers Design Doc path, can be empty |
|
|
168
170
|
| `plan` | Associated Superpowers Plan path, can be empty |
|
|
169
171
|
| `build_mode` | Selected execution mode, can be empty |
|
|
170
|
-
| `isolation` | `branch` or `worktree`, workspace isolation method
|
|
172
|
+
| `isolation` | `branch` or `worktree`, workspace isolation method. Full workflow init may leave this as `null`, but only until `/comet-build` Step 3; hotfix/tweak default to `branch` |
|
|
171
173
|
| `verify_mode` | `light` or `full`, can be empty |
|
|
172
174
|
| `verify_result` | `pending`, `pass`, or `fail` |
|
|
175
|
+
| `verification_report` | Verification report file path; must point to an existing file before verify can pass |
|
|
176
|
+
| `branch_status` | `pending` or `handled`; set to `handled` after branch handling completes |
|
|
173
177
|
| `verified_at` | Verification pass time, can be empty |
|
|
174
178
|
| `archived` | Whether change is archived |
|
|
175
179
|
|
|
180
|
+
Optional fields:
|
|
181
|
+
|
|
182
|
+
| Field | Meaning |
|
|
183
|
+
|-------|---------|
|
|
184
|
+
| `direct_override` | `true`/`false`. Full workflow may use `build_mode: direct` only when this is explicitly `true` |
|
|
185
|
+
| `build_command` | Project build command. Guard runs this first and prints failure output |
|
|
186
|
+
| `verify_command` | Project verification command. Verify guard runs this first; if absent, it falls back to the build command |
|
|
187
|
+
|
|
188
|
+
State-machine hard constraints:
|
|
189
|
+
- Before `build → verify`, `isolation` must be `branch` or `worktree`
|
|
190
|
+
- Before `build → verify`, `build_mode` must be selected
|
|
191
|
+
- `build_mode: direct` is allowed by default only for `hotfix` / `tweak`; full workflow requires `direct_override: true`
|
|
192
|
+
- These constraints are enforced by both `comet-guard.sh build --apply` and `comet-state.sh transition <name> build-complete`
|
|
193
|
+
|
|
176
194
|
### Script Location
|
|
177
195
|
|
|
178
196
|
Comet scripts are distributed in `comet/scripts/`. **Do not hardcode paths** — locate once, cache in env vars:
|