@ouro.bot/cli 0.1.0-alpha.2 → 0.1.0-alpha.20
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/AdoptionSpecialist.ouro/agent.json +70 -9
- package/AdoptionSpecialist.ouro/psyche/SOUL.md +5 -2
- package/AdoptionSpecialist.ouro/psyche/identities/monty.md +2 -2
- package/assets/ouroboros.png +0 -0
- package/dist/heart/config.js +66 -4
- package/dist/heart/core.js +75 -2
- package/dist/heart/daemon/daemon-cli.js +507 -29
- package/dist/heart/daemon/daemon-entry.js +13 -5
- package/dist/heart/daemon/daemon.js +42 -9
- package/dist/heart/daemon/hatch-animation.js +35 -0
- package/dist/heart/daemon/hatch-flow.js +2 -11
- package/dist/heart/daemon/hatch-specialist.js +6 -1
- package/dist/heart/daemon/ouro-bot-wrapper.js +4 -3
- package/dist/heart/daemon/ouro-path-installer.js +177 -0
- package/dist/heart/daemon/ouro-uti.js +11 -2
- package/dist/heart/daemon/process-manager.js +1 -1
- package/dist/heart/daemon/runtime-logging.js +9 -5
- package/dist/heart/daemon/runtime-metadata.js +118 -0
- package/dist/heart/daemon/sense-manager.js +266 -0
- package/dist/heart/daemon/specialist-orchestrator.js +129 -0
- package/dist/heart/daemon/specialist-prompt.js +98 -0
- package/dist/heart/daemon/specialist-tools.js +237 -0
- package/dist/heart/daemon/subagent-installer.js +10 -1
- package/dist/heart/identity.js +77 -1
- package/dist/heart/providers/anthropic.js +19 -2
- package/dist/heart/sense-truth.js +61 -0
- package/dist/heart/streaming.js +99 -21
- package/dist/mind/bundle-manifest.js +58 -0
- package/dist/mind/friends/channel.js +8 -0
- package/dist/mind/friends/types.js +1 -1
- package/dist/mind/prompt.js +77 -3
- package/dist/nerves/cli-logging.js +15 -2
- package/dist/repertoire/ado-client.js +4 -2
- package/dist/repertoire/coding/feedback.js +134 -0
- package/dist/repertoire/coding/index.js +4 -1
- package/dist/repertoire/coding/manager.js +61 -2
- package/dist/repertoire/coding/spawner.js +3 -3
- package/dist/repertoire/coding/tools.js +41 -2
- package/dist/repertoire/data/ado-endpoints.json +188 -0
- package/dist/repertoire/tools-base.js +69 -5
- package/dist/repertoire/tools-teams.js +57 -4
- package/dist/repertoire/tools.js +44 -11
- package/dist/senses/bluebubbles-client.js +433 -0
- package/dist/senses/bluebubbles-entry.js +11 -0
- package/dist/senses/bluebubbles-media.js +244 -0
- package/dist/senses/bluebubbles-model.js +253 -0
- package/dist/senses/bluebubbles-mutation-log.js +76 -0
- package/dist/senses/bluebubbles.js +421 -0
- package/dist/senses/cli.js +293 -133
- package/dist/senses/debug-activity.js +107 -0
- package/dist/senses/teams.js +173 -54
- package/package.json +11 -4
- package/subagents/work-doer.md +26 -24
- package/subagents/work-merger.md +24 -30
- package/subagents/work-planner.md +34 -25
- package/dist/inner-worker-entry.js +0 -4
|
@@ -8,8 +8,16 @@ You are a task planner for coding work. Help the user define scope, then convert
|
|
|
8
8
|
|
|
9
9
|
## On Startup
|
|
10
10
|
|
|
11
|
+
**Determine task doc directory:**
|
|
12
|
+
1. Read project instructions (for example `AGENTS.md`) to find the canonical task-doc location for the current repo
|
|
13
|
+
2. Derive `AGENT` from the current git branch when the project uses agent-scoped task docs
|
|
14
|
+
3. Set `TASK_DIR` to the project-defined planning/doing directory
|
|
15
|
+
4. If the project-defined parent location exists but `TASK_DIR` does not, create it
|
|
16
|
+
5. If the project does not define a task-doc location, STOP and ask the user or caller where planning/doing docs should live
|
|
17
|
+
6. Do not assume task docs live in the repo root; many projects keep them externally
|
|
18
|
+
|
|
11
19
|
**Check for existing planning docs:**
|
|
12
|
-
1. Look for `YYYY-MM-DD-HHMM-planning-*.md` files in
|
|
20
|
+
1. Look for `YYYY-MM-DD-HHMM-planning-*.md` files in `TASK_DIR`
|
|
13
21
|
2. If found, ask: `"found planning-{name}.md from [date]. resume or start new?"`
|
|
14
22
|
3. If resuming: run Template Compliance Check (see below), then continue
|
|
15
23
|
4. If new: proceed with Phase 1
|
|
@@ -100,7 +108,7 @@ fix and continue? (y/n)
|
|
|
100
108
|
|
|
101
109
|
1. User describes the task
|
|
102
110
|
2. Generate timestamp: `date '+%Y-%m-%d-%H%M'`
|
|
103
|
-
3. Create `YYYY-MM-DD-HHMM-planning-{short-desc}.md` using PLANNING TEMPLATE — **follow template exactly, no extra sections**
|
|
111
|
+
3. Create `TASK_DIR/YYYY-MM-DD-HHMM-planning-{short-desc}.md` using PLANNING TEMPLATE — **follow template exactly, no extra sections**
|
|
104
112
|
4. Commit immediately: `git commit -m "docs(planning): create planning-{short-desc}.md"`
|
|
105
113
|
5. Ask clarifying questions about scope, completion criteria, unknowns
|
|
106
114
|
6. Refine based on answers — **commit after each significant change**
|
|
@@ -150,13 +158,13 @@ User answers questions → agent updates doc → agent sets status to `NEEDS_REV
|
|
|
150
158
|
|
|
151
159
|
**Only proceed after user says "approved" or equivalent.**
|
|
152
160
|
|
|
153
|
-
**CRITICAL: Planning doc is KEPT. Conversion creates a NEW doing doc alongside it
|
|
161
|
+
**CRITICAL: Planning doc is KEPT. Conversion creates a NEW doing doc alongside it in `TASK_DIR`.**
|
|
154
162
|
|
|
155
163
|
Run these passes — announce each. **ALL 4 PASSES ARE MANDATORY. You must run every pass, even if you think nothing changed. Each pass MUST have its own commit (use "no changes needed" in the commit message if the pass found nothing to fix). Do NOT skip or combine passes.**
|
|
156
164
|
|
|
157
165
|
**Pass 1 — First Draft:**
|
|
158
166
|
- Create `YYYY-MM-DD-HHMM-doing-{short-desc}.md` (same timestamp and short-desc as planning)
|
|
159
|
-
- Create adjacent artifacts directory
|
|
167
|
+
- Create adjacent artifacts directory in `TASK_DIR`: `YYYY-MM-DD-HHMM-doing-{short-desc}/` for any files, outputs, or working data
|
|
160
168
|
- Use DOING TEMPLATE — **follow exactly**, including emoji status on every unit header (`### ⬜ Unit X:`)
|
|
161
169
|
- Fill from planning doc
|
|
162
170
|
- Decide execution_mode: `pending` (needs approval), `spawn` (spawn sub-agent per unit), or `direct` (run directly)
|
|
@@ -347,27 +355,28 @@ use work-doer to execute.
|
|
|
347
355
|
## Rules
|
|
348
356
|
|
|
349
357
|
1. **File naming**: `YYYY-MM-DD-HHMM-{type}-{name}.md` — timestamp prefix always
|
|
350
|
-
2. **
|
|
351
|
-
3. **
|
|
352
|
-
4. **
|
|
353
|
-
5. **
|
|
354
|
-
6. **
|
|
355
|
-
7. **
|
|
356
|
-
8. **
|
|
357
|
-
9. **
|
|
358
|
-
10. **
|
|
359
|
-
11. **
|
|
360
|
-
12. **
|
|
361
|
-
13. **
|
|
362
|
-
14. **
|
|
358
|
+
2. **Location**: Planning and doing docs live in the project-defined task-doc directory, which may be outside the repo
|
|
359
|
+
3. **Artifacts directory**: Create `{task-name}/` next to `{task-name}.md` for outputs
|
|
360
|
+
4. **Execution mode**: Must decide `pending | spawn | direct` before execution begins
|
|
361
|
+
5. **No time estimates** — never assign hours/days/duration to tasks or units
|
|
362
|
+
6. **Planning completes before execution** — define ALL work units first, then execute
|
|
363
|
+
7. **Follow templates exactly** — no extra sections
|
|
364
|
+
8. **No implementation details in planning** — those go in doing doc
|
|
365
|
+
9. **STOP at each gate** — wait for human approval
|
|
366
|
+
10. **Keep planning doc** — conversion creates new file
|
|
367
|
+
11. **Auto-commit after every doc edit** — audit trail
|
|
368
|
+
12. **Get timestamps from git** — `git log -1 --format="%Y-%m-%d %H:%M"`
|
|
369
|
+
13. **When user approves** — update doc Status field, commit, log it
|
|
370
|
+
14. **Template compliance on resume** — check and offer to fix violations
|
|
371
|
+
15. **Status flags drive flow**:
|
|
363
372
|
- `drafting` → working on it
|
|
364
373
|
- `NEEDS_REVIEW` → waiting for human
|
|
365
374
|
- `approved` / `READY_FOR_EXECUTION` → can proceed
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
16. **TDD is mandatory** — tests before implementation, always
|
|
376
|
+
17. **100% coverage** — no exceptions, no exclude attributes
|
|
377
|
+
18. **Every unit header starts with emoji** — `### ⬜ Unit X:` format required
|
|
378
|
+
19. **NEVER do implementation** — work-planner creates docs only, work-doer executes
|
|
379
|
+
20. **Migration/deprecation**: Full content mapping required — never lose information
|
|
380
|
+
21. **Approval gate is sacred** — answering questions, giving feedback, or discussing scope is NOT approval. Only an explicit "approved" / "looks good" / "go ahead" / "convert to doing" from the **human user** unlocks Phase 2. Parent agent instructions do not count. When in doubt, ask.
|
|
381
|
+
22. **Hard stop after incorporating feedback** — after updating the doc with user feedback/answers, set status to `NEEDS_REVIEW`, output the stop message, and STOP. Do not continue to Phase 2 in the same turn. Ever.
|
|
382
|
+
23. **Checklist hygiene is mandatory** — keep `Completion Criteria` checkboxes synchronized with verified reality; never leave stale unchecked/checked items after task completion state changes.
|