@odarino/haren 1.2.3 → 1.3.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/README.md +21 -1
- package/content/skills/plan/SKILL.md +1 -0
- package/content/skills/read-context/SKILL.md +9 -1
- package/content/skills/update-tracking/SKILL.md +1 -0
- package/dist/index.js +1214 -134
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,6 +123,24 @@ The agent reads `skill.md` in the haren folder, orients itself from `manifest.ya
|
|
|
123
123
|
|
|
124
124
|
---
|
|
125
125
|
|
|
126
|
+
## Plugins
|
|
127
|
+
|
|
128
|
+
Plugins connect other tools to the haren workflow. A plugin installs a tool, sets it up in the project, and reacts to haren hooks.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
haren init --plugin backlog # install during init
|
|
132
|
+
haren plugin add backlog # install later
|
|
133
|
+
haren plugin list | remove <name> | doctor
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
Example: the `backlog` plugin syncs haren tasks with a Backlog.md board in `<haren folder>/backlog/`.
|
|
137
|
+
|
|
138
|
+
**In a team:** commit `plugins.json` and `.plugin-data/`. haren adds `.plugins/` (the fetched code) to `.gitignore`. A teammate clones the haren folder and runs `haren init` or `haren upgrade`. haren then installs each missing plugin again.
|
|
139
|
+
|
|
140
|
+
See [PLUGINS.md](PLUGINS.md) for the details, the backlog plugin, and how to write a plugin.
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
126
144
|
## Layouts
|
|
127
145
|
|
|
128
146
|
haren supports two project layouts. `haren init` detects which one you have.
|
|
@@ -162,7 +180,8 @@ every repo.
|
|
|
162
180
|
| Command | What it does |
|
|
163
181
|
|---------|--------------|
|
|
164
182
|
| `haren init` | Set up haren in the current directory: scaffold a new haren folder, or set up a cloned one. Interactive, or pass flags (below). |
|
|
165
|
-
| `haren upgrade` | Update framework files in an existing haren folder to the installed version, and migrate old `manifest.yaml` / `progress.json`. |
|
|
183
|
+
| `haren upgrade` | Update framework files in an existing haren folder to the installed version, and migrate old `manifest.yaml` / `progress.json`. It also restores missing plugins from `plugins.json`. Use `--yes` to accept plugins from unofficial sources. |
|
|
184
|
+
| `haren plugin` | Manage plugins: `add <name\|source>`, `remove <name>`, `list`, `doctor`, `run <hook>`. See [PLUGINS.md](PLUGINS.md). |
|
|
166
185
|
| `haren agent` | Manage the local agent bridge *(experimental — for the in-progress Haren Portal)*. |
|
|
167
186
|
|
|
168
187
|
`haren agent` works in both layouts. It uses the git remote of the haren repo as
|
|
@@ -191,6 +210,7 @@ Layout and folder flags:
|
|
|
191
210
|
| `--haren-dir <name>` | Name of the new haren folder (default `haren`). |
|
|
192
211
|
| `--yes` | Accept the defaults and skip the confirm prompt. Required when there is no terminal. |
|
|
193
212
|
| `--dry-run` | Print the plan and exit. Nothing is written. |
|
|
213
|
+
| `--plugin <name\|source>` | Install a plugin. Repeat the flag for more plugins. |
|
|
194
214
|
| `--force` | Re-scaffold an existing haren folder. It keeps the folder name, the layout, and the repos in `manifest.yaml`. |
|
|
195
215
|
|
|
196
216
|
### The plan preview
|
|
@@ -95,6 +95,7 @@ Only proceed to the next artifact after the current one is approved.
|
|
|
95
95
|
|
|
96
96
|
1. Validate all three artifacts with validate-artifact skill
|
|
97
97
|
2. Update progress.json — module status to "planned"
|
|
98
|
+
3. If `plugins.json` exists in the haren folder, run `haren plugin run after-plan --payload '{"module":"<module>","tasksFile":"<path of tasks.md relative to the haren folder>"}'` and show its output lines. A warning does not block the plan. The CLI adds the missing features to progress.json, so do not add them yourself
|
|
98
99
|
|
|
99
100
|
### Step 9: Iteration slicing (only if iterations enabled)
|
|
100
101
|
|
|
@@ -42,7 +42,12 @@ Orient yourself at the start of every session or before taking any action.
|
|
|
42
42
|
- The key `default` in `lastCommit` means the repo that holds the haren folder (monorepo layout) or the module's first repo (workspace layout)
|
|
43
43
|
- If drift is detected: warn the user. After the user agrees, update `progress.json` via update-tracking skill
|
|
44
44
|
|
|
45
|
-
6. **
|
|
45
|
+
6. **Plugins** — only if `plugins.json` exists in the haren folder
|
|
46
|
+
- Run `haren plugin run session-start`
|
|
47
|
+
- Show each output line in the summary under "Plugins". A line `updated <module>/<feature> → <status>` means a board change was applied to progress.json
|
|
48
|
+
- A warning line does not stop the session. Suggest `haren plugin doctor`
|
|
49
|
+
|
|
50
|
+
7. **Produce orientation summary**
|
|
46
51
|
|
|
47
52
|
## Output Format
|
|
48
53
|
|
|
@@ -71,6 +76,9 @@ Haren repo: {branch, clean | N changed files} ← workspace layout only
|
|
|
71
76
|
- Iteration {N}: ✓ spec.md | ✗ spec.md, ✓ design.md | ✗ design.md, ✓ tasks.md | ✗ tasks.md
|
|
72
77
|
- ...
|
|
73
78
|
|
|
79
|
+
## Plugins
|
|
80
|
+
{output lines of `haren plugin run session-start`, or omit if there is no plugins.json}
|
|
81
|
+
|
|
74
82
|
## Suggested Next Action
|
|
75
83
|
{what to do next based on current state}
|
|
76
84
|
|
|
@@ -15,6 +15,7 @@ Update module and feature status in progress.json with validated transitions.
|
|
|
15
15
|
2. Update the feature's status in progress.json
|
|
16
16
|
3. If all features in a module are "passing", suggest module completion review
|
|
17
17
|
4. Append event to events/events.jsonl
|
|
18
|
+
5. If `plugins.json` exists in the haren folder, run `haren plugin run on-task-status --payload '{"module":"<module>","feature":"<feature>","status":"<new status>"}'`. Show its output lines. A warning does not undo the status change
|
|
18
19
|
|
|
19
20
|
### Update Module Status
|
|
20
21
|
1. Validate the transition is allowed
|