@rpamis/comet 0.4.0-beta.1 → 0.4.0-beta.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/LICENSE +21 -21
- package/README.md +17 -18
- package/assets/manifest.json +1 -1
- package/assets/skills/comet/reference/comet-yaml-fields.md +2 -3
- package/assets/skills/comet/scripts/comet-runtime.mjs +376 -103
- package/assets/skills/comet-build/SKILL.md +1 -9
- package/assets/skills-zh/comet/reference/comet-yaml-fields.md +1 -3
- package/assets/skills-zh/comet-build/SKILL.md +1 -9
- package/dist/app/cli/index.js +1 -1
- package/dist/app/cli/index.js.map +1 -1
- package/dist/app/commands/doctor.d.ts +1 -0
- package/dist/app/commands/doctor.d.ts.map +1 -1
- package/dist/app/commands/doctor.js +62 -12
- package/dist/app/commands/doctor.js.map +1 -1
- package/dist/app/commands/init.d.ts.map +1 -1
- package/dist/app/commands/init.js +1 -1
- package/dist/app/commands/init.js.map +1 -1
- package/dist/app/commands/update.d.ts.map +1 -1
- package/dist/app/commands/update.js +10 -5
- package/dist/app/commands/update.js.map +1 -1
- package/dist/domains/comet-classic/classic-guard.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-guard.js +44 -83
- 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 +84 -9
- package/dist/domains/comet-classic/classic-hook-guard.js.map +1 -1
- package/dist/domains/comet-classic/classic-runtime-run.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-runtime-run.js +231 -4
- package/dist/domains/comet-classic/classic-runtime-run.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 +1 -3
- package/dist/domains/comet-classic/classic-state-command.js.map +1 -1
- package/dist/domains/comet-classic/classic-state.d.ts +1 -3
- package/dist/domains/comet-classic/classic-state.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-state.js +0 -6
- package/dist/domains/comet-classic/classic-state.js.map +1 -1
- package/dist/domains/comet-classic/classic-store.d.ts.map +1 -1
- package/dist/domains/comet-classic/classic-store.js +24 -7
- package/dist/domains/comet-classic/classic-store.js.map +1 -1
- package/dist/domains/dashboard/web/index.html +14 -14
- package/dist/domains/skill/platform-install.d.ts +2 -10
- package/dist/domains/skill/platform-install.d.ts.map +1 -1
- package/dist/domains/skill/platform-install.js +84 -19
- package/dist/domains/skill/platform-install.js.map +1 -1
- package/package.json +4 -4
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
|
@@ -101,8 +101,8 @@ Many Comet capabilities have parallels in current industry practice.
|
|
|
101
101
|
from necessary user choices, Comet's five-phase flow can trigger core Skills automatically while the state machine keeps
|
|
102
102
|
transitions reliable.
|
|
103
103
|
- **How to make a Spec lifecycle resumable** — Comet links OpenSpec change/spec artifacts with Superpowers design and
|
|
104
|
-
plan documents, then records phase, execution mode, verification result, and archive status in
|
|
105
|
-
agent can continue after interruption instead of rereading documents and guessing progress.
|
|
104
|
+
plan documents, then records phase, execution mode, verification result, and archive status in each change's
|
|
105
|
+
`.comet.yaml`, so an agent can continue after interruption instead of rereading documents and guessing progress.
|
|
106
106
|
- **How to turn doc synchronization from reminders into automation** — Comet scripts handoff, state updates, validation,
|
|
107
107
|
and archive sync, reducing repeated prompts such as "remember to update the design doc" or "remember to archive the
|
|
108
108
|
change."
|
|
@@ -483,17 +483,17 @@ Comet uses a decoupled state architecture with separate files
|
|
|
483
483
|
<details>
|
|
484
484
|
<summary>View State Management</summary>
|
|
485
485
|
|
|
486
|
-
| File
|
|
487
|
-
|
|
|
488
|
-
| `.openspec.yaml`
|
|
489
|
-
|
|
|
490
|
-
| `.comet/run-state.json`
|
|
491
|
-
| `.comet/state-events.jsonl`
|
|
486
|
+
| File | Owner | Purpose |
|
|
487
|
+
| ----------------------------------------- | -------- | --------------------------------------------------- |
|
|
488
|
+
| `.openspec.yaml` | OpenSpec | Spec lifecycle, change metadata |
|
|
489
|
+
| `openspec/changes/<name>/.comet.yaml` | Comet | Workflow phase, execution mode, verification status |
|
|
490
|
+
| `.comet/run-state.json` | Engine | Run identity and execution state (machine-owned) |
|
|
491
|
+
| `.comet/state-events.jsonl` | Comet | Append-only state transition audit log |
|
|
492
492
|
|
|
493
|
-
`.comet.yaml` stores Classic workflow state and only keeps `run_id` as the link to the Engine Run.
|
|
494
|
-
state lives in `.comet/run-state.json` with camelCase fields such as `currentStep`,
|
|
495
|
-
Run fields left in YAML are migrated after compatibility reads, and `skill` is no
|
|
496
|
-
`.comet.yaml` field.
|
|
493
|
+
Each change-level `.comet.yaml` stores Classic workflow state and only keeps `run_id` as the link to the Engine Run.
|
|
494
|
+
Machine-owned Engine state lives in the change's `.comet/run-state.json` with camelCase fields such as `currentStep`,
|
|
495
|
+
`status`, and `iteration`. Legacy Run fields left in YAML are migrated after compatibility reads, and `skill` is no
|
|
496
|
+
longer a valid current `.comet.yaml` field. Project defaults live in `.comet/config.yaml`.
|
|
497
497
|
|
|
498
498
|
Phase progression is handled consistently by the TypeScript transition table, `comet-state transition`,
|
|
499
499
|
`comet-guard --apply`, and archive commands. Each successful progression appends an audit event to
|
|
@@ -505,9 +505,9 @@ breakpoint recovery. Agents can use Comet commands to know which phase the curre
|
|
|
505
505
|
</details>
|
|
506
506
|
|
|
507
507
|
<details>
|
|
508
|
-
<summary>View key .comet.yaml fields</summary>
|
|
508
|
+
<summary>View key change .comet.yaml fields</summary>
|
|
509
509
|
|
|
510
|
-
**Key Fields in `.comet.yaml`:**
|
|
510
|
+
**Key Fields in change `.comet.yaml`:**
|
|
511
511
|
|
|
512
512
|
```yaml
|
|
513
513
|
workflow: full # Workflow type: full | tweak | hotfix
|
|
@@ -532,15 +532,13 @@ branch_status: pending # Branch handling statu
|
|
|
532
532
|
verified_at: null # Verification timestamp; null before verification passes
|
|
533
533
|
archived: false # Archived changes are blocked from further mutation
|
|
534
534
|
direct_override: null # Must be true when a full workflow chooses direct build
|
|
535
|
-
build_command: null # Optional build command; may also live in repo-root config
|
|
536
|
-
verify_command: null # Optional verify command; may also live in repo-root config
|
|
537
535
|
handoff_context: null # Design handoff context path written by comet-handoff.mjs
|
|
538
536
|
handoff_hash: null # SHA256 for handoff_context; 64 hex chars when present
|
|
539
537
|
classic_profile: full # Machine-maintained Classic profile
|
|
540
538
|
classic_migration: 1 # Machine-maintained migration version
|
|
541
539
|
```
|
|
542
540
|
|
|
543
|
-
Current `.comet.yaml` no longer contains `skill`; legacy Run fields in YAML are migrated to `.comet/run-state.json`.
|
|
541
|
+
Current change `.comet.yaml` no longer contains `skill`; legacy Run fields in YAML are migrated to `.comet/run-state.json`.
|
|
544
542
|
|
|
545
543
|
</details>
|
|
546
544
|
|
|
@@ -666,7 +664,8 @@ manual handoff. Phase advancement itself always happens — this setting only af
|
|
|
666
664
|
| `true` | Auto-invoke the next skill after each phase (default) |
|
|
667
665
|
| `false` | Pause after each phase; user manually triggers the next skill |
|
|
668
666
|
|
|
669
|
-
Three-layer configuration with precedence: `COMET_AUTO_TRANSITION` env var > `.comet/config.yaml` (project) >
|
|
667
|
+
Three-layer configuration with precedence: `COMET_AUTO_TRANSITION` env var > `.comet/config.yaml` (project) > change
|
|
668
|
+
`.comet.yaml`.
|
|
670
669
|
|
|
671
670
|
See [AUTO-TRANSITION.md](docs/AUTO-TRANSITION.md) for configuration details, workflow mapping, and FAQ.
|
|
672
671
|
|
package/assets/manifest.json
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Canonical path: `comet/reference/comet-yaml-fields.md`
|
|
4
4
|
|
|
5
|
-
This file is the field reference for
|
|
5
|
+
This file is the field reference for each change-level `.comet.yaml` state file under `openspec/changes/<name>/`.
|
|
6
|
+
Consult on demand; not loaded inline with skills. Project defaults live in `.comet/config.yaml`.
|
|
6
7
|
|
|
7
8
|
## Example
|
|
8
9
|
|
|
@@ -59,8 +60,6 @@ archived: false
|
|
|
59
60
|
| Field | Meaning |
|
|
60
61
|
|-------|---------|
|
|
61
62
|
| `direct_override` | `true`/`false`. Full workflow must explicitly set to `true` to use `build_mode: direct` |
|
|
62
|
-
| `build_command` | Project build command. Guard runs this first; supports restricted command words/quotes/paths plus `&&` sequential steps; rejects `;`, pipes, bare `&`, `$`, and backticks |
|
|
63
|
-
| `verify_command` | Project verify command. Verify guard runs this first; same restricted command grammar as `build_command`; falls back to build command when unset |
|
|
64
63
|
|
|
65
64
|
## State Machine Hard Constraints
|
|
66
65
|
|