@kyuki3rain/cupola 0.0.0-stage → 0.2.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.
- package/CHANGELOG.md +184 -0
- package/LICENSE +202 -0
- package/README.md +41 -2
- package/dist/adr.js +106 -0
- package/dist/branch-store.js +73 -0
- package/dist/catalog.js +137 -0
- package/dist/check.js +192 -0
- package/dist/cli.js +8 -0
- package/dist/code.js +216 -0
- package/dist/commands/change.js +728 -0
- package/dist/commands/epic.js +311 -0
- package/dist/commands/execution.js +482 -0
- package/dist/commands/install.js +109 -0
- package/dist/commands/locks.js +243 -0
- package/dist/commands/reaction.js +185 -0
- package/dist/commands/revision.js +139 -0
- package/dist/commands/run.js +1021 -0
- package/dist/commands/setup.js +414 -0
- package/dist/commands/spec.js +80 -0
- package/dist/commands/status.js +1457 -0
- package/dist/commands/trace.js +474 -0
- package/dist/commands/wait.js +105 -0
- package/dist/commands/work.js +126 -0
- package/dist/commands/workspace.js +137 -0
- package/dist/commands/worktree.js +422 -0
- package/dist/config.js +353 -0
- package/dist/day.js +29 -0
- package/dist/e2e-project.js +62 -0
- package/dist/e2e.js +207 -0
- package/dist/engine/cc-sdd.js +164 -0
- package/dist/epic.js +379 -0
- package/dist/execution.js +272 -0
- package/dist/feedback.js +20 -0
- package/dist/frontmatter.js +20 -0
- package/dist/git.js +365 -0
- package/dist/host/git.js +224 -0
- package/dist/host/github.js +387 -0
- package/dist/host/host.js +3 -0
- package/dist/host/index.js +63 -0
- package/dist/install.js +182 -0
- package/dist/io.js +46 -0
- package/dist/main.js +866 -0
- package/dist/method/v1.js +56 -0
- package/dist/reaction.js +110 -0
- package/dist/record.js +507 -0
- package/dist/release.js +84 -0
- package/dist/repo.js +13 -0
- package/dist/runbook.js +132 -0
- package/dist/safe-write.js +80 -0
- package/dist/spec.js +171 -0
- package/dist/status.js +321 -0
- package/dist/templates.js +50 -0
- package/dist/trace.js +275 -0
- package/dist/tracker/files.js +99 -0
- package/dist/tracker/github-issues.js +217 -0
- package/dist/tracker/index.js +34 -0
- package/dist/tracker/tracker.js +69 -0
- package/dist/tree.js +59 -0
- package/dist/trust.js +13 -0
- package/dist/version.js +5 -0
- package/dist/work.js +170 -0
- package/dist/workspace.js +324 -0
- package/npm-shrinkwrap.json +2014 -0
- package/package.json +41 -4
- package/skills/cupola-abort/SKILL.md +51 -0
- package/skills/cupola-adr/SKILL.md +54 -0
- package/skills/cupola-ask/SKILL.md +42 -0
- package/skills/cupola-catalog/SKILL.md +41 -0
- package/skills/cupola-catalog-draft/SKILL.md +116 -0
- package/skills/cupola-complete/SKILL.md +107 -0
- package/skills/cupola-decide/SKILL.md +99 -0
- package/skills/cupola-doc/SKILL.md +52 -0
- package/skills/cupola-e2e-setup/SKILL.md +78 -0
- package/skills/cupola-e2e-test/SKILL.md +115 -0
- package/skills/cupola-epic-accept/SKILL.md +166 -0
- package/skills/cupola-epic-create/SKILL.md +160 -0
- package/skills/cupola-epic-revise/SKILL.md +92 -0
- package/skills/cupola-epic-run/SKILL.md +166 -0
- package/skills/cupola-fix/SKILL.md +117 -0
- package/skills/cupola-init/SKILL.md +143 -0
- package/skills/cupola-intake/SKILL.md +95 -0
- package/skills/cupola-operate/SKILL.md +81 -0
- package/skills/cupola-resolve/SKILL.md +93 -0
- package/skills/cupola-respond/SKILL.md +73 -0
- package/skills/cupola-review/SKILL.md +131 -0
- package/skills/cupola-spec-design/SKILL.md +169 -0
- package/skills/cupola-spec-impl/SKILL.md +137 -0
- package/skills/cupola-spec-run/SKILL.md +137 -0
- package/skills/cupola-steering/SKILL.md +53 -0
- package/skills/cupola-try/SKILL.md +38 -0
- package/templates/install/.kiro/steering/e2e.md +48 -0
- package/templates/install/.kiro/steering/operations.md +109 -0
- package/templates/install/.kiro/steering/principles.md +25 -0
- package/templates/install/CLAUDE.md +19 -0
- package/templates/install/adr/TEMPLATE.md +38 -0
- package/templates/install/cc-sdd/patches.json +31 -0
- package/templates/method-1/behavior-area.md +43 -0
- package/templates/method-1/behavior-index.md +16 -0
- package/templates/method-1/card.md +49 -0
- package/templates/method-1/case-draft.md +25 -0
- package/templates/method-1/case.md +38 -0
- package/templates/method-1/catalog-spec.md +33 -0
- package/templates/method-1/changes/adr.md +4 -0
- package/templates/method-1/changes/catalog.md +29 -0
- package/templates/method-1/changes/doc.md +5 -0
- package/templates/method-1/changes/e2e.md +7 -0
- package/templates/method-1/changes/epic.md +30 -0
- package/templates/method-1/changes/fix.md +21 -0
- package/templates/method-1/changes/release.md +23 -0
- package/templates/method-1/changes/spec.md +55 -0
- package/templates/method-1/changes/system.md +13 -0
- package/templates/method-1/cupola-issue-draft.md +17 -0
- package/templates/method-1/epic.md +147 -0
- package/templates/method-1/execution.md +55 -0
- package/templates/method-1/fix-spec.md +34 -0
- package/templates/method-1/fix.md +39 -0
- package/templates/method-1/lock.json +13 -0
- package/templates/method-1/no-go.md +28 -0
- package/templates/method-1/phase-outcome.json +29 -0
- package/templates/method-1/reaction.md +17 -0
- package/templates/method-1/record.json +63 -0
- package/templates/method-1/report.md +27 -0
- package/templates/method-1/runbook.md +45 -0
- package/templates/method-1/runner-result.json +6 -0
- package/templates/methods.json +13 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: reaction
|
|
3
|
+
method: 1
|
|
4
|
+
reaction: {{n}} # 1, 2, … within this work; the file is <n>.md
|
|
5
|
+
type: {{comment | try | no-go}}
|
|
6
|
+
who: {{who gave it: a login or a name}}
|
|
7
|
+
at: {{ISO 8601 time it was given}}
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
A reaction given in a session outside a gate (while a run goes on), or to a work whose host takes none, kept in
|
|
12
|
+
.cupola/runs/<work>/reactions/ until the next gate processes it. Written by `cupola reaction add`; the gate that
|
|
13
|
+
processes it removes the file (`cupola reaction reply`), so a file here is always unprocessed. Only a No-Go
|
|
14
|
+
changes the work; a comment is answered; a try is built by cupola-try.
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
{{The person's words, quoted as given. Empty for a No-Go given without any.}}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Progress record. Written only by `cupola run record` (and `cupola run next` for the marker); agents never edit it by hand. Lives on the work's branch, removed in the last commit before the change is marked ready (for an epic's own record, before release). `phases` is the method's phase table for the work's mode: full is shown here, and in full mode `accept` is `skipped` unless the epic has one spec. Mode `epic` (an epic with two or more specs): `accept`, `open-release`.",
|
|
3
|
+
"kind": "record",
|
|
4
|
+
"method": 1,
|
|
5
|
+
"work": {
|
|
6
|
+
"kind": "{{spec | fix | fix-spec | catalog | epic}}",
|
|
7
|
+
"id": "{{work id}}",
|
|
8
|
+
"epic": "{{epic-id, or null}}",
|
|
9
|
+
"component": "{{component}}",
|
|
10
|
+
"mode": "{{full | fix | catalog | epic}}"
|
|
11
|
+
},
|
|
12
|
+
"lineage": "{{uuid, fixed when the record is created; a No-Go starts a new record with a new lineage}}",
|
|
13
|
+
"serial": 0,
|
|
14
|
+
"started_from": {
|
|
15
|
+
"card": "{{No-Go card number, or null}}"
|
|
16
|
+
},
|
|
17
|
+
"active": null,
|
|
18
|
+
"phases": [
|
|
19
|
+
{
|
|
20
|
+
"name": "acceptance",
|
|
21
|
+
"state": "pending"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "design",
|
|
25
|
+
"state": "pending"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "impl",
|
|
29
|
+
"state": "pending"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "summary",
|
|
33
|
+
"state": "pending"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"name": "mutation",
|
|
37
|
+
"state": "pending"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "doc",
|
|
41
|
+
"state": "pending"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "review",
|
|
45
|
+
"state": "pending"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "e2e",
|
|
49
|
+
"state": "pending"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "accept",
|
|
53
|
+
"state": "{{pending (epic with one spec) | skipped}}"
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"outside": [],
|
|
57
|
+
"drafts": [],
|
|
58
|
+
"events": [],
|
|
59
|
+
"review": {
|
|
60
|
+
"rounds": 0,
|
|
61
|
+
"max": "{{review.max_rounds from .cupola/config.json}}"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
The common skill report. Printed at the end of every skill, in the configured language.
|
|
3
|
+
HUMAN-facing: told in terms of the work items and what the human does next. Real IDs always; no placeholders.
|
|
4
|
+
Section 3 is omitted when empty, and so is any line that does not apply (the epic line for a work item outside an epic). Section 4 has exactly one of its three forms.
|
|
5
|
+
The headings below are fixed (translated with the configured language); `cupola status --json` supplies
|
|
6
|
+
sections 2 and 4, so every skill reports the same thing for the same state.
|
|
7
|
+
-->
|
|
8
|
+
## Done in this run
|
|
9
|
+
- {{phase}} — {{one line result}}
|
|
10
|
+
|
|
11
|
+
## Where things stand
|
|
12
|
+
- {{work item}}: **{{status}}** — {{whose turn: the AI's (running / stopped) | yours, at a gate or a decision}}
|
|
13
|
+
- epic {{epic-id}}: {{status}}
|
|
14
|
+
|
|
15
|
+
## For you to look at
|
|
16
|
+
- cards: {{n}} on {{spec}} — {{question, one line each}}{{ — explainer: <url>, when it has one}}
|
|
17
|
+
- needs confirmation: {{where to read the change, as `cupola status` names it}} ({{n}} items){{; explainers: <url>, … when any}}
|
|
18
|
+
- case drafts filed: {{case-id — one line}}
|
|
19
|
+
- provisional fixes: {{entry — case}}
|
|
20
|
+
- unverified requirements: {{IDs}}
|
|
21
|
+
- Cupola issue draft: {{title}} — shown below; file it yourself after reading
|
|
22
|
+
|
|
23
|
+
## Next
|
|
24
|
+
{{exactly one of:}}
|
|
25
|
+
- **Your turn ({{start | acceptance | release | resolution — a gate; or decision}}):** {{what to judge}}, at {{where to read the change | cards}}. Then: `{{command with real IDs}}`
|
|
26
|
+
- **Run:** `{{command with real IDs}}`
|
|
27
|
+
- **Nothing to push.**{{ Available when you choose: `command with real IDs` — one line each; …, when the skill lists any}}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
---
|
|
2
|
+
kind: runbook
|
|
3
|
+
method: 1
|
|
4
|
+
id: {{runbook-id}} # kebab-case name, never reused; also its folder (<paths.runbooks>/<id>/runbook.md)
|
|
5
|
+
title: "{{one line: what the procedure does}}" # inside the quotes, write \" for a quote
|
|
6
|
+
applies-to: [{{component}}] # the components whose running system or surroundings it operates on
|
|
7
|
+
params: # what one run is given, each with what it means; {} when nothing
|
|
8
|
+
{{name}}: "{{what it is, e.g. the tenant whose keys are rotated}}"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
FORMAT NOTES (for agents)
|
|
13
|
+
- A runbook is the procedure a human carries out on the running system or outside the code: a data
|
|
14
|
+
migration, a backfill, a production setting, access for someone, a request to another team. It is
|
|
15
|
+
written so the next person can repeat it, agreed at an epic's start, and kept: each run of it is an
|
|
16
|
+
execution, recorded next to it (`executions/<n>.md`), and a later epic reuses it as it is, or revises it.
|
|
17
|
+
- params: what differs between runs (a tenant, a date, a list), by name. The steps name them as
|
|
18
|
+
`<name>`; each execution records their values. A runbook with no params takes `params: {}`. An epic
|
|
19
|
+
gives the values in its `procedures`; a case's execution takes them from the case (cupola-intake).
|
|
20
|
+
- Humans read and run it: write it in the configured language. Keys and IDs stay English.
|
|
21
|
+
- Two layers. Before the precise-layer marker: what it is for, when it is used, who runs it, and what
|
|
22
|
+
it needs. After it: the steps, in order.
|
|
23
|
+
- A step is a heading whose first token is P1, P2, … followed by `- key: value` bullets:
|
|
24
|
+
do (what to do, concrete enough to repeat: commands, screens, values; one or more), check (how to
|
|
25
|
+
tell it worked; one or more), stop-if (optional: when to stop instead of going on), undo (how to undo
|
|
26
|
+
it, or `none` when it cannot be undone — the human gives an explicit go before such a step).
|
|
27
|
+
- IDs are never renumbered; a step removed later keeps its ID out of use.
|
|
28
|
+
- Never write secrets: name where they come from.
|
|
29
|
+
-->
|
|
30
|
+
|
|
31
|
+
# {{title}}
|
|
32
|
+
|
|
33
|
+
{{What it does and why, in two or three sentences: what is different for users or the system after it.}}
|
|
34
|
+
|
|
35
|
+
- **When:** {{when it is used: after which release, how often, at what time of day}}
|
|
36
|
+
- **Who:** {{who carries it out, and the access they need}}
|
|
37
|
+
- **Needs:** {{what must be true before it starts: a release, a backup, a quiet window}}
|
|
38
|
+
|
|
39
|
+
<!-- precise layer -->
|
|
40
|
+
|
|
41
|
+
### P1 {{step}}
|
|
42
|
+
- do: {{what to do}}
|
|
43
|
+
- check: {{how to tell it worked}}
|
|
44
|
+
- stop-if: {{when to stop instead of going on}}
|
|
45
|
+
- undo: {{how to undo it, or none}}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "What a spec runner returns to the session — the only thing the session reads. One object, printed as the runner's last line. Machine-read: strict.",
|
|
3
|
+
"spec": "{{work id}}",
|
|
4
|
+
"stopped": "{{decision | acceptance | release | waiting | blocked | not-a-fix}}",
|
|
5
|
+
"note": "{{one line, ≤ 120 characters}}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Read by the CLI, never installed. The method version this package writes, the versions it reads, where each version's served templates live, and the migrations between versions (none yet). Installed templates (install/) always follow `writes`.",
|
|
3
|
+
"writes": 1,
|
|
4
|
+
"reads": [
|
|
5
|
+
1
|
|
6
|
+
],
|
|
7
|
+
"methods": {
|
|
8
|
+
"1": {
|
|
9
|
+
"templates": "method-1/"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"migrations": []
|
|
13
|
+
}
|