@yemi33/minions 0.1.2291 → 0.1.2292

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/docs/README.md CHANGED
@@ -58,6 +58,7 @@ Architecture, design proposals, and lifecycle references for people working on t
58
58
 
59
59
  Operational runbooks for engine operators and fleet maintainers.
60
60
 
61
+ - [notes.md](notes.md) — Consolidated team knowledge: patterns, conventions, bugs, and build findings accumulated from agent inbox notes. Read by the engine and injected into agent prompts as shared context.
61
62
  - [auto-discovery.md](auto-discovery.md) — Auto-discovery and execution pipeline: the per-tick orchestration loop and the four work-discovery sources.
62
63
  - [diagnostics-memory.md](diagnostics-memory.md) — Operator runbook for the in-process memory + perf observability surface: `/api/diagnostics/memory[/history]`, `/api/diagnostics/heap-snapshot` guard-token capture, `MEMORY_BASELINE` log emissions, `--cpu-prof`/`--heap-prof` capture, and the `test/perf/soak.test.js` heap-growth regression gate.
63
64
  - [engine-restart.md](engine-restart.md) — How agents survive an engine restart: state persistence, the 20-minute startup grace period, and orphan reattachment via PID files and `live-output.log`.
@@ -63,7 +63,7 @@ Any violation rejects the **whole turn** with a typed error envelope (`code: 'in
63
63
  | Runtime | `imageInput` | Behavior |
64
64
  |---------|--------------|----------|
65
65
  | claude | `true` | Images delivered as an Anthropic Messages `content[]` envelope of base64 blocks over stream-json (`claude.buildPrompt` + `--input-format stream-json` in `claude.buildArgs`). |
66
- | copilot | `false` | Degraded `engine/llm.js` `_resolveImageOpts` returns a typed `model-unavailable` envelope ("switch ccCli to a runtime with imageInput"). The Copilot worker-pool path also drops images. |
66
+ | copilot | `true` | Images materialized to tmp files and passed as `--attachment <path>` (W-mqv7324u0021db5d). **Exception:** when the opt-in Copilot worker pool is active (`engine.ccUseWorkerPool: true`), images are silently dropped the pool's ACP `stream()` does not forward images; a note in `_invokeCcStream` marks this intentional. |
67
67
  | codex | `false` | Degraded — same typed `model-unavailable` envelope. |
68
68
 
69
69
  `_resolveImageOpts` (in `engine/llm.js`) is pure and unit-tested: it forwards the `images` list only when `runtime.capabilities.imageInput` is truthy, otherwise returns the typed error so CC/doc-chat surface the envelope instead of a silently-text-only reply. `_spawnProcess` re-applies the same gate (`if (!caps.imageInput) adapterOpts.images = undefined`) as defense in depth. Image **filenames** are run through the untrusted-input fence (`buildSource('cc-image-filename', …)`) before they reach prompt text, since they are user-supplied.
@@ -118,7 +118,7 @@ The verify agent does not call `archivePlan()`. After the testing guide and any
118
118
 
119
119
  Manual archive behavior:
120
120
 
121
- 1. For PRD JSON files, the dashboard moves `prd/<file>.json` to `prd/archive/<file>.json`, marks the archived JSON with `status: "archived"` and `archivedAt`, and removes or neutralizes the active `.backup` sidecar so `safeJson()` cannot restore a stale completed PRD on restart.
121
+ 1. For PRD JSON files, the dashboard archives them **in-place** in `prd/` the file is not moved. The JSON is stamped with `archived: true`, `status: "archived"`, and `archivedAt` (Phase 10 step 4.2b). The `.backup` sidecar is left intact since the file keeps its canonical path.
122
122
  2. If the PRD has `source_plan`, the matching `plans/<source>.md` is moved to `plans/archive/<source>.md`.
123
123
  3. Pending or queued work items linked to the archived PRD are cancelled with `_cancelledBy: "plan-archived"`; completed work items remain as history.
124
124
  4. Plan worktrees are cleaned up by the archive handler/lifecycle cleanup path.
@@ -148,7 +148,9 @@ After PRs are created, humans can leave comments containing `@minions` to trigge
148
148
  |------|---------|
149
149
  | `plans/*.md` | Source plans awaiting review or linked to active PRDs |
150
150
  | `prd/*.json` | Active PRDs with materializable items |
151
- | `plans/archive/`, `prd/archive/` | Manually archived plans and PRDs |
151
+ | `plans/archive/` | Manually archived plan Markdown files |
152
+ | `prd/*.json` (with `archived: true`) | PRDs archived in-place (Phase 10 step 4.2b — not moved; flag + `archivedAt` stamped on the file) |
153
+ | `prd/archive/` | Legacy: PRDs archived before Phase 10 (still scanned for filename-collision detection) |
152
154
  | `playbooks/verify.md` | Verification task playbook |
153
155
  | `playbooks/implement.md` | Implementation playbook |
154
156
  | `playbooks/plan-to-prd.md` | Plan → PRD conversion playbook |
@@ -81,6 +81,7 @@ real behavioral split appears between adapters.
81
81
  | `resumePromptCarryover` | ✗ | ✓ | ✓ | CC resume turns prepend recent visible Q&A in stdin when the runtime session store is opaque to Minions. |
82
82
  | `resumeBookkeepingTurn` | ✓ | — | — | Claude CLI injects a synthetic "Continue from where you left off." meta turn on `--resume`; CC prompts must tell the model not to treat it as user intent. |
83
83
  | `streamConsumer` | ✓ | ✓ | ✓ | Adapter implements `createStreamConsumer(ctx)` — required by `engine/llm.js` accumulator. |
84
+ | `imageInput` | ✓ | ✓ | ✗ | Runtime accepts `images: [{mimeType, dataBase64}]` and delivers them to the CLI. Claude: Anthropic Messages base64 content-block envelope via `--input-format stream-json`. Copilot: base64 payloads materialized to tmp files and passed as `--attachment <path>` (W-mqv7324u0021db5d). When false, `_resolveImageOpts` returns a typed `model-unavailable` error. |
84
85
 
85
86
  When a behavior is genuinely uniform across all current adapters, it still gets
86
87
  a flag if a future runtime might disagree — flags are cheap.
@@ -57,7 +57,7 @@ function getPipeline(id) {
57
57
 
58
58
  function savePipeline(pipeline) {
59
59
  if (!fs.existsSync(PIPELINES_DIR)) fs.mkdirSync(PIPELINES_DIR, { recursive: true });
60
- safeWrite(path.join(PIPELINES_DIR, pipeline.id + '.json'), pipeline);
60
+ mutateJsonFileLocked(path.join(PIPELINES_DIR, pipeline.id + '.json'), () => pipeline, { defaultValue: {} });
61
61
  }
62
62
 
63
63
  function deletePipeline(id) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yemi33/minions",
3
- "version": "0.1.2291",
3
+ "version": "0.1.2292",
4
4
  "description": "Multi-agent AI dev team that runs from ~/.minions/ — five autonomous agents share a single engine, dashboard, and knowledge base",
5
5
  "bin": {
6
6
  "minions": "bin/minions.js"