bearings 0.5.2 → 0.5.4
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 +40 -22
- package/dist/chunk-MOZJECCW.js +1823 -0
- package/dist/cli.js +189 -158
- package/dist/{update-4DZKUPFP.js → update-YY5SLPDF.js} +84 -221
- package/package.json +1 -1
- package/templates/AGENTS.md +1 -5
- package/templates/agents/commands/refresh-repo-map.md +36 -13
- package/templates/agents/commands/update-bearings-setup.md +144 -0
- package/templates/agents/skills/checklist/previewer/index.html +44 -10
- package/templates/agents/skills/checklist/previewer/viewer.css +321 -77
- package/templates/agents/skills/checklist/previewer/viewer.js +797 -97
- package/templates/initial-setup.md +112 -0
- package/dist/chunk-WYXKSCUW.js +0 -818
- package/templates/agents/commands/setup-repo.md +0 -182
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Initial bearings Setup
|
|
2
|
+
|
|
3
|
+
Complete or resume the first setup using the exact scope supplied by bearings.
|
|
4
|
+
This is a direct setup recipe supplied by the CLI, not an installed command.
|
|
5
|
+
The **bearings Commands for This Task** header is authoritative for resume and
|
|
6
|
+
completion. Use its initiating executable instead of fetching another package
|
|
7
|
+
version. If no header was supplied, use `npx bearings` as the command prefix.
|
|
8
|
+
|
|
9
|
+
## 1. Read the Pending Work
|
|
10
|
+
|
|
11
|
+
Read `.agents/bearings.json`, its `setupPending`, and the supplied setup scope,
|
|
12
|
+
including listed file reconciliations and their backup, baseline, and incoming
|
|
13
|
+
artifacts. Require `setupPending.kind: init`.
|
|
14
|
+
|
|
15
|
+
- If no setup is pending, report that result and stop.
|
|
16
|
+
- If the kind is `update` or `reconstruction`, use `/update-bearings-setup`.
|
|
17
|
+
- If the journal or exact scope is missing, invalid, or inconsistent, report
|
|
18
|
+
the blocker and use `bearings init` to obtain the current handoff.
|
|
19
|
+
|
|
20
|
+
The journal is durable state; read it without editing it. Work only on listed
|
|
21
|
+
task targets and recorded reconciliations. Preserve `protectedSkills` and all
|
|
22
|
+
skills outside the task scope. Read other repository files as evidence only.
|
|
23
|
+
|
|
24
|
+
On resume, inspect current outputs and prior developer answers first. Keep
|
|
25
|
+
completed tailoring and resolved content; continue only unfinished work.
|
|
26
|
+
An interrupted session is not a reason to reinstall or restart the interview.
|
|
27
|
+
Checkpoint each fully completed task through step 7. Reread the journal after
|
|
28
|
+
each checkpoint and continue only its remaining tasks.
|
|
29
|
+
|
|
30
|
+
## 2. Inspect, Then Ask
|
|
31
|
+
|
|
32
|
+
Inspect the repository's purpose, code, configuration, existing knowledge,
|
|
33
|
+
and command runners as needed for the listed tasks. Use evidence before
|
|
34
|
+
asking. Ask one necessary project question at a time, with a recommended
|
|
35
|
+
answer, only when the repository and prior answers cannot establish the fact.
|
|
36
|
+
Cite paths for technical claims; keep uncertain intent explicit.
|
|
37
|
+
|
|
38
|
+
## 3. Resolve Collisions
|
|
39
|
+
|
|
40
|
+
For each listed collision, read the current target and recorded backup.
|
|
41
|
+
Summarize the useful content and differences. Ask the developer whether to
|
|
42
|
+
merge, keep parts, keep either version, or discard backed-up content. Apply
|
|
43
|
+
only that choice, preserving existing project decisions. A recorded
|
|
44
|
+
reconciliation permits the chosen target edit regardless of owner.
|
|
45
|
+
|
|
46
|
+
For map targets, pass the choice and evidence to `/refresh-repo-map` in step 5;
|
|
47
|
+
that command is their only writer. A map reconciliation without an explicit
|
|
48
|
+
map task is blocked: report the scope mismatch rather than widen the scope.
|
|
49
|
+
Keep reconciliation artifacts until the completion CLI accepts the outcome.
|
|
50
|
+
|
|
51
|
+
## 4. Tailor Listed Seeds, Indexes, and Starter Skills
|
|
52
|
+
|
|
53
|
+
Process only listed seed, index, and starter paths: `reason: tailor` tasks, or
|
|
54
|
+
their recorded `reason: reconcile` tasks after the collision choice is applied:
|
|
55
|
+
|
|
56
|
+
- **Agent seed:** fill the listed seed's project name, purpose, and stack
|
|
57
|
+
from evidence. Keep `AGENTS.md` a thin router, without a skill registry or
|
|
58
|
+
an always-on rules block.
|
|
59
|
+
Remove a legacy `## Setup Required` blocking section. Also remove any obsolete
|
|
60
|
+
`## Pending bearings Setup` section before checkpointing the seed.
|
|
61
|
+
- **Indexes:** retain existing entries; fill listed index placeholders from
|
|
62
|
+
existing records. Use an explicit empty state when there are no records.
|
|
63
|
+
Setup does not itself approve new decisions or deferred work.
|
|
64
|
+
- **Starter skills:** make light project-specific changes to the listed
|
|
65
|
+
skills. Replace handoff markers with real commands or explicit
|
|
66
|
+
`not configured`; preserve each skill's safety workflow.
|
|
67
|
+
|
|
68
|
+
Leave finished content intact. Do not adapt every installed skill or edit
|
|
69
|
+
unchanged custom skills to address unrelated verification warnings.
|
|
70
|
+
Ownership, hashes, template lineage, baselines, and exposure copies belong
|
|
71
|
+
to the CLI; edit only the scoped live content.
|
|
72
|
+
|
|
73
|
+
## 5. Refresh Only Listed Maps
|
|
74
|
+
|
|
75
|
+
Pass the exact `reason: map` target paths to `/refresh-repo-map` as an explicit
|
|
76
|
+
setup target scope, with any collision choices. First setup lists all four map
|
|
77
|
+
artifacts, including `docs/diagrams/c4-component.puml`. Refresh only those
|
|
78
|
+
paths; a single map task is not a whole-map refresh. Preserve each selected
|
|
79
|
+
artifact's contracts, sync-marker rules, and routing probes.
|
|
80
|
+
|
|
81
|
+
## 6. Report the Checklist Opener
|
|
82
|
+
|
|
83
|
+
Reuse and report an existing equivalent runner that invokes
|
|
84
|
+
`npx bearings checklist`, or the repository's established local bearings
|
|
85
|
+
invocation. If none exists, report `npx bearings checklist`. Do not create or
|
|
86
|
+
edit automation files or open the previewer during setup.
|
|
87
|
+
|
|
88
|
+
## 7. Complete Through the CLI
|
|
89
|
+
|
|
90
|
+
Review each completed task and reconciliation against its required output and
|
|
91
|
+
the developer's choices. Use the header's **Complete** command from the
|
|
92
|
+
repository and append `--setup-path <path...>` with only the fully completed
|
|
93
|
+
paths, quoted as shell arguments. This durably checkpoints their content and
|
|
94
|
+
choices so resume will not repeat them. Reread the journal after each success.
|
|
95
|
+
|
|
96
|
+
Without a supplied header, the checkpoint form is
|
|
97
|
+
`npx bearings init --complete-setup --setup-path <path...>`, using the
|
|
98
|
+
established local bearings invocation when applicable. Omitting `--setup-path`
|
|
99
|
+
completes all remaining tasks; use that form only when all their outputs and
|
|
100
|
+
choices are ready. A successful partial checkpoint is not whole-setup completion.
|
|
101
|
+
|
|
102
|
+
The CLI validates scoped completion and owns manifest updates, skill claims,
|
|
103
|
+
baseline and copy reconciliation, and artifact cleanup. Never clear
|
|
104
|
+
`setupPending`, remove reconciliation records, or rewrite bookkeeping by hand.
|
|
105
|
+
Neither a successful agent session nor `bearings verify` alone proves setup
|
|
106
|
+
complete.
|
|
107
|
+
|
|
108
|
+
If validation fails, retain progress and report **setup pending**, the exact
|
|
109
|
+
blocked paths, and the next action. Fix only in-scope content problems;
|
|
110
|
+
unrelated warnings do not expand the task scope. Report completion only after
|
|
111
|
+
the completion CLI succeeds and the journal confirms no pending setup.
|
|
112
|
+
Finish with changed paths, validation result, and the checklist opener.
|