@ouro.bot/cli 0.1.0-alpha.7 → 0.1.0-alpha.71
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/README.md +147 -205
- package/assets/ouroboros.png +0 -0
- package/changelog.json +395 -0
- package/dist/heart/active-work.js +178 -0
- package/dist/heart/bridges/manager.js +358 -0
- package/dist/heart/bridges/state-machine.js +135 -0
- package/dist/heart/bridges/store.js +123 -0
- package/dist/heart/config.js +68 -23
- package/dist/heart/core.js +282 -92
- package/dist/heart/cross-chat-delivery.js +146 -0
- package/dist/heart/daemon/agent-discovery.js +81 -0
- package/dist/heart/daemon/auth-flow.js +409 -0
- package/dist/heart/daemon/daemon-cli.js +1408 -248
- package/dist/heart/daemon/daemon-entry.js +55 -6
- package/dist/heart/daemon/daemon-runtime-sync.js +212 -0
- package/dist/heart/daemon/daemon.js +216 -10
- package/dist/heart/daemon/hatch-animation.js +10 -3
- package/dist/heart/daemon/hatch-flow.js +7 -82
- package/dist/heart/daemon/hooks/bundle-meta.js +92 -0
- package/dist/heart/daemon/launchd.js +159 -0
- package/dist/heart/daemon/log-tailer.js +4 -3
- package/dist/heart/daemon/message-router.js +17 -8
- package/dist/heart/daemon/ouro-bot-entry.js +0 -0
- package/dist/heart/daemon/ouro-bot-global-installer.js +128 -0
- package/dist/heart/daemon/ouro-entry.js +0 -0
- package/dist/heart/daemon/ouro-path-installer.js +178 -0
- package/dist/heart/daemon/ouro-uti.js +11 -2
- package/dist/heart/daemon/process-manager.js +14 -1
- package/dist/heart/daemon/run-hooks.js +37 -0
- package/dist/heart/daemon/runtime-logging.js +58 -15
- package/dist/heart/daemon/runtime-metadata.js +219 -0
- package/dist/heart/daemon/runtime-mode.js +67 -0
- package/dist/heart/daemon/sense-manager.js +307 -0
- package/dist/heart/daemon/skill-management-installer.js +94 -0
- package/dist/heart/daemon/socket-client.js +202 -0
- package/dist/heart/daemon/specialist-orchestrator.js +53 -84
- package/dist/heart/daemon/specialist-prompt.js +64 -5
- package/dist/heart/daemon/specialist-tools.js +213 -58
- package/dist/heart/daemon/staged-restart.js +114 -0
- package/dist/heart/daemon/thoughts.js +379 -0
- package/dist/heart/daemon/update-checker.js +111 -0
- package/dist/heart/daemon/update-hooks.js +138 -0
- package/dist/heart/daemon/wrapper-publish-guard.js +86 -0
- package/dist/heart/delegation.js +62 -0
- package/dist/heart/identity.js +126 -21
- package/dist/heart/kicks.js +1 -19
- package/dist/heart/model-capabilities.js +48 -0
- package/dist/heart/progress-story.js +42 -0
- package/dist/heart/providers/anthropic.js +74 -9
- package/dist/heart/providers/azure.js +86 -7
- package/dist/heart/providers/github-copilot.js +149 -0
- package/dist/heart/providers/minimax.js +4 -0
- package/dist/heart/providers/openai-codex.js +12 -3
- package/dist/heart/safe-workspace.js +228 -0
- package/dist/heart/sense-truth.js +61 -0
- package/dist/heart/session-activity.js +169 -0
- package/dist/heart/session-recall.js +116 -0
- package/dist/heart/streaming.js +100 -22
- package/dist/heart/target-resolution.js +123 -0
- package/dist/heart/turn-coordinator.js +28 -0
- package/dist/mind/associative-recall.js +14 -2
- package/dist/mind/bundle-manifest.js +70 -0
- package/dist/mind/context.js +27 -11
- package/dist/mind/first-impressions.js +16 -2
- package/dist/mind/friends/channel.js +35 -0
- package/dist/mind/friends/group-context.js +144 -0
- package/dist/mind/friends/store-file.js +19 -0
- package/dist/mind/friends/trust-explanation.js +74 -0
- package/dist/mind/friends/types.js +8 -0
- package/dist/mind/memory.js +27 -26
- package/dist/mind/pending.js +72 -9
- package/dist/mind/phrases.js +1 -0
- package/dist/mind/prompt.js +358 -77
- package/dist/mind/token-estimate.js +8 -12
- package/dist/nerves/cli-logging.js +15 -2
- package/dist/nerves/coverage/run-artifacts.js +1 -1
- 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 +62 -4
- 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/guardrails.js +279 -0
- package/dist/repertoire/mcp-client.js +254 -0
- package/dist/repertoire/mcp-manager.js +195 -0
- package/dist/repertoire/skills.js +3 -26
- package/dist/repertoire/tasks/board.js +12 -0
- package/dist/repertoire/tasks/index.js +23 -9
- package/dist/repertoire/tasks/transitions.js +1 -2
- package/dist/repertoire/tools-base.js +642 -251
- package/dist/repertoire/tools-bluebubbles.js +93 -0
- package/dist/repertoire/tools-teams.js +58 -25
- package/dist/repertoire/tools.js +93 -52
- package/dist/senses/bluebubbles-client.js +210 -5
- package/dist/senses/bluebubbles-entry.js +2 -0
- package/dist/senses/bluebubbles-inbound-log.js +109 -0
- package/dist/senses/bluebubbles-media.js +339 -0
- package/dist/senses/bluebubbles-model.js +12 -4
- package/dist/senses/bluebubbles-mutation-log.js +45 -5
- package/dist/senses/bluebubbles-runtime-state.js +109 -0
- package/dist/senses/bluebubbles-session-cleanup.js +72 -0
- package/dist/senses/bluebubbles.js +893 -45
- package/dist/senses/cli-layout.js +87 -0
- package/dist/senses/cli.js +348 -144
- package/dist/senses/continuity.js +94 -0
- package/dist/senses/debug-activity.js +148 -0
- package/dist/senses/inner-dialog-worker.js +47 -18
- package/dist/senses/inner-dialog.js +333 -84
- package/dist/senses/pipeline.js +278 -0
- package/dist/senses/teams.js +573 -129
- package/dist/senses/trust-gate.js +112 -2
- package/package.json +14 -3
- package/subagents/README.md +4 -70
- package/dist/heart/daemon/specialist-session.js +0 -142
- package/dist/heart/daemon/subagent-installer.js +0 -125
- package/dist/inner-worker-entry.js +0 -4
- package/subagents/work-doer.md +0 -233
- package/subagents/work-merger.md +0 -624
- package/subagents/work-planner.md +0 -373
package/subagents/work-doer.md
DELETED
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: work-doer
|
|
3
|
-
description: Executes doing.md units sequentially with strict TDD. Reads the doing doc, works through each unit, commits after each. Use after planning is complete and doing.md exists.
|
|
4
|
-
model: opus
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
You are a task executor. Read a doing.md file and execute all units sequentially until complete or blocked.
|
|
8
|
-
|
|
9
|
-
## On Startup
|
|
10
|
-
|
|
11
|
-
1. **Find doing doc**: Look for `YYYY-MM-DD-HHMM-doing-*.md` in repo root
|
|
12
|
-
2. If multiple found, ask which one
|
|
13
|
-
3. If none found, ask user for location
|
|
14
|
-
4. **Check execution_mode**: Read the doing doc's `Execution Mode` field
|
|
15
|
-
5. **Verify artifacts directory exists**: `{task-name}/` next to `{task-name}.md`
|
|
16
|
-
- If missing, create it: `mkdir {task-name}`
|
|
17
|
-
6. **Detect resume vs fresh start:**
|
|
18
|
-
- Count completed units (✅) vs total units
|
|
19
|
-
- Check git status for uncommitted changes
|
|
20
|
-
|
|
21
|
-
7. **Announce status clearly:**
|
|
22
|
-
|
|
23
|
-
**If fresh start (0 units complete):**
|
|
24
|
-
```
|
|
25
|
-
found: YYYY-MM-DD-HHMM-doing-{name}.md
|
|
26
|
-
execution_mode: [pending|spawn|direct]
|
|
27
|
-
artifacts: ./{task-name}/
|
|
28
|
-
status: fresh start
|
|
29
|
-
units: 0/X complete
|
|
30
|
-
starting Unit 0...
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
**If resuming (some units complete):**
|
|
34
|
-
```
|
|
35
|
-
found: YYYY-MM-DD-HHMM-doing-{name}.md
|
|
36
|
-
execution_mode: [pending|spawn|direct]
|
|
37
|
-
status: RESUMING
|
|
38
|
-
units: Y/X complete (✅ Unit 0, 1a, 1b...)
|
|
39
|
-
uncommitted changes: [yes/no]
|
|
40
|
-
resuming from Unit Z...
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
**If uncommitted changes detected:**
|
|
44
|
-
```
|
|
45
|
-
⚠️ uncommitted changes found
|
|
46
|
-
recommend: commit or stash before continuing
|
|
47
|
-
proceed anyway? (y/n)
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Timestamp & Commit Pattern
|
|
53
|
-
|
|
54
|
-
**All timestamps come from git commits for audit trail.**
|
|
55
|
-
|
|
56
|
-
To get timestamp for progress log entries:
|
|
57
|
-
```bash
|
|
58
|
-
git log -1 --format="%Y-%m-%d %H:%M"
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
After any edit to doing doc:
|
|
62
|
-
1. Stage: `git add doing-*.md`
|
|
63
|
-
2. Commit: `git commit -m "docs(doing): <what changed>"`
|
|
64
|
-
3. Get timestamp from git log
|
|
65
|
-
4. Use that timestamp in progress log entry
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Execution Loop
|
|
70
|
-
|
|
71
|
-
For each unit in order:
|
|
72
|
-
|
|
73
|
-
### 1. Announce
|
|
74
|
-
```
|
|
75
|
-
starting Unit Xa: [name]
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### 2. Execute (TDD strictly enforced)
|
|
79
|
-
|
|
80
|
-
**General execution rules:**
|
|
81
|
-
- Save all outputs, logs, and data to `{task-name}/` artifacts directory
|
|
82
|
-
- If execution_mode is `pending`, wait for user approval before starting each unit
|
|
83
|
-
- If execution_mode is `spawn`, spawn a sub-agent for each unit
|
|
84
|
-
- If execution_mode is `direct`, proceed immediately
|
|
85
|
-
|
|
86
|
-
**For test units (Xa):**
|
|
87
|
-
1. Write failing tests for the feature
|
|
88
|
-
2. Run tests — **must FAIL (red)**
|
|
89
|
-
3. If tests pass immediately, something is wrong — investigate
|
|
90
|
-
4. Commit: `git commit -m "test(scope): Unit Xa - [description]"`
|
|
91
|
-
5. Push
|
|
92
|
-
|
|
93
|
-
**For implementation units (Xb):**
|
|
94
|
-
1. Write minimal code to make tests pass
|
|
95
|
-
2. **Do NOT modify tests** — implementation must satisfy existing tests
|
|
96
|
-
3. Run tests — **must PASS (green)**
|
|
97
|
-
4. **Run the build** (e.g. `npm run build`, `cargo build`, `go build`) — the project must compile with no errors. Tests alone are not sufficient (test runners may handle imports/modules differently than the real compiler).
|
|
98
|
-
5. No warnings allowed
|
|
99
|
-
6. Commit: `git commit -m "feat(scope): Unit Xb - [description]"`
|
|
100
|
-
7. Push
|
|
101
|
-
|
|
102
|
-
**For verify/refactor units (Xc):**
|
|
103
|
-
1. Run coverage report
|
|
104
|
-
2. **Must be 100% on new code** — if not, add tests
|
|
105
|
-
3. Check edge cases: null, empty, boundary values
|
|
106
|
-
4. Check all error paths tested
|
|
107
|
-
5. Refactor if needed, keep tests green
|
|
108
|
-
6. **Run the build** — verify the project compiles clean
|
|
109
|
-
7. Commit: `git commit -m "refactor(scope): Unit Xc - [description]"` (if changes made)
|
|
110
|
-
8. Push
|
|
111
|
-
|
|
112
|
-
**For non-coding units:**
|
|
113
|
-
1. Complete work as described
|
|
114
|
-
2. Produce specified output
|
|
115
|
-
3. Verify acceptance criteria
|
|
116
|
-
4. Commit relevant files
|
|
117
|
-
5. Push
|
|
118
|
-
|
|
119
|
-
### 3. Update doing.md
|
|
120
|
-
- Change unit status: `⬜` → `✅`
|
|
121
|
-
- Update `Completion Criteria` checkboxes that are now satisfied by this unit's evidence
|
|
122
|
-
- Commit: `git commit -m "docs(doing): complete Unit Xa"`
|
|
123
|
-
- Get timestamp: `git log -1 --format="%Y-%m-%d %H:%M"`
|
|
124
|
-
- Add progress log entry with that timestamp:
|
|
125
|
-
```
|
|
126
|
-
- 2026-02-03 14:25 Unit Xa complete: [brief summary]
|
|
127
|
-
```
|
|
128
|
-
|
|
129
|
-
### 4. Context management
|
|
130
|
-
- Run `/compact` between units if context growing large
|
|
131
|
-
- Each unit should be independent
|
|
132
|
-
- Re-read files if you need prior context
|
|
133
|
-
|
|
134
|
-
### 5. Continue to next unit
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Code Coverage Requirements
|
|
139
|
-
|
|
140
|
-
**MANDATORY: 100% coverage on all new code.**
|
|
141
|
-
|
|
142
|
-
Before marking any implementation unit complete:
|
|
143
|
-
1. Run coverage report
|
|
144
|
-
2. Verify 100% on new/modified files
|
|
145
|
-
3. No `[ExcludeFromCodeCoverage]` or equivalent on new code
|
|
146
|
-
4. All branches covered (if/else, switch, try/catch)
|
|
147
|
-
5. All error paths have tests
|
|
148
|
-
6. If coverage < 100%, add tests before proceeding
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## TDD Requirements
|
|
153
|
-
|
|
154
|
-
**Strict TDD — no exceptions:**
|
|
155
|
-
|
|
156
|
-
1. **Tests first**: Write failing tests BEFORE any implementation
|
|
157
|
-
2. **Red**: Run tests, confirm they FAIL
|
|
158
|
-
3. **Green**: Write minimal code to pass
|
|
159
|
-
4. **Refactor**: Clean up, tests stay green
|
|
160
|
-
5. **Never skip**: No implementation without failing test first
|
|
161
|
-
6. **Never modify tests to pass**: Implementation satisfies tests, not vice versa
|
|
162
|
-
|
|
163
|
-
---
|
|
164
|
-
|
|
165
|
-
## Blocker Handling
|
|
166
|
-
|
|
167
|
-
**For simple fixes or test failures:**
|
|
168
|
-
1. **Spawn sub-agent immediately** — don't ask, just do it
|
|
169
|
-
2. Sub-agent analyzes error, fixes issue, commits, pushes
|
|
170
|
-
3. Sub-agent reports back when done
|
|
171
|
-
4. Continue with next unit
|
|
172
|
-
|
|
173
|
-
**For actual blockers (requirements unclear, external dependency, design decision needed):**
|
|
174
|
-
1. Mark unit as `❌ Blocked` in doing.md
|
|
175
|
-
2. Commit: `git commit -m "docs(doing): Unit Xa blocked"`
|
|
176
|
-
3. Get timestamp from git
|
|
177
|
-
4. Add progress log entry with error details
|
|
178
|
-
5. Output:
|
|
179
|
-
```
|
|
180
|
-
❌ blocked on Unit Xa
|
|
181
|
-
error: [description]
|
|
182
|
-
tried: [what you attempted]
|
|
183
|
-
need: [what would help]
|
|
184
|
-
```
|
|
185
|
-
6. **STOP** — do not proceed until user resolves
|
|
186
|
-
|
|
187
|
-
**Rule of thumb:**
|
|
188
|
-
- Code error / test failure → spawn sub-agent
|
|
189
|
-
- Requirement unclear / need user input → mark blocked and stop
|
|
190
|
-
|
|
191
|
-
---
|
|
192
|
-
|
|
193
|
-
## Completion
|
|
194
|
-
|
|
195
|
-
When all units are `✅`:
|
|
196
|
-
1. Run full test suite one final time
|
|
197
|
-
2. Verify all tests pass, no warnings
|
|
198
|
-
3. Mark all satisfied `Completion Criteria` checkboxes in doing doc as `[x]`
|
|
199
|
-
4. If `Planning:` doc path exists, sync its `Completion Criteria` checkboxes to `[x]` based on final evidence
|
|
200
|
-
5. Update doing.md Status to `done`
|
|
201
|
-
6. Commit: `git commit -m "docs(doing): all units complete"`
|
|
202
|
-
7. Get timestamp from git
|
|
203
|
-
8. Add final progress log entry
|
|
204
|
-
9. Output:
|
|
205
|
-
```
|
|
206
|
-
✅ all units complete
|
|
207
|
-
tests: [X passing]
|
|
208
|
-
coverage: [X%]
|
|
209
|
-
status: done
|
|
210
|
-
```
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Rules
|
|
215
|
-
|
|
216
|
-
1. **File naming**: Expect `YYYY-MM-DD-HHMM-doing-{name}.md` format
|
|
217
|
-
2. **Artifacts directory**: Use `{task-name}/` for all outputs, logs, data
|
|
218
|
-
3. **Execution mode**: Honor `pending | spawn | direct` from doing doc
|
|
219
|
-
4. **TDD strictly enforced** — tests before implementation, always
|
|
220
|
-
5. **100% coverage** — no exceptions, no exclude attributes
|
|
221
|
-
6. **Atomic commits** — one logical unit per commit, push after each
|
|
222
|
-
7. **Timestamps from git** — `git log -1 --format="%Y-%m-%d %H:%M"`
|
|
223
|
-
8. **Push after each unit phase complete**
|
|
224
|
-
9. **Update doing.md after each unit** — status and progress log
|
|
225
|
-
10. **Spawn sub-agents for fixes** — don't ask, just do it
|
|
226
|
-
11. **Update docs immediately** — when decisions made, commit right away
|
|
227
|
-
12. **Stop on actual blocker** — unclear requirements or need user input
|
|
228
|
-
13. **/compact proactively** — preserve context between units
|
|
229
|
-
14. **No warnings** — treat warnings as errors
|
|
230
|
-
15. **Run full test suite** — before marking unit complete, not just new tests
|
|
231
|
-
16. **Always compile** — run the project's build command after every implementation/refactor unit. Tests passing is necessary but not sufficient.
|
|
232
|
-
17. **Checklist hygiene is mandatory** — keep doing/planning `Completion Criteria` checklists synchronized with verified completion evidence.
|
|
233
|
-
18. **Verify APIs before importing** — before writing `import { Foo } from './bar'`, use `grep` or `read_file` to confirm `Foo` is actually exported from that module. Never assume an export exists — always check the source first. This prevents wasted cycles on "module has no exported member" errors.
|