@meego-harness/mara-worker 0.8.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 ADDED
@@ -0,0 +1,56 @@
1
+ # `@meego-harness/mara-worker`
2
+
3
+ Standalone Mira CLI worker bridge for `meego-harness`.
4
+
5
+ It logs into a `WorkerServerSDK` endpoint as a `coder` worker, executes tasks through the local Mira installation, and reuses one persisted Mira conversation per harness `contextId`.
6
+
7
+ ## What You Need First
8
+
9
+ Before installing this package, make sure all of the following are already true:
10
+
11
+ 1. Node.js and `pnpm` are available.
12
+ 2. Mira CLI is already installed separately and `mira --help` succeeds in your shell.
13
+ 3. `python3` is available, because the bridge invokes Mira's local Python implementation.
14
+ 4. A target worker server is already running.
15
+ 5. You already have an absolute workspace directory on disk.
16
+
17
+ ## Command Summary
18
+
19
+ ```bash
20
+ meego-mara-worker setup
21
+ meego-mara-worker start --worker <workerId> [--tmux]
22
+ meego-mara-worker stop --worker <workerId>
23
+ meego-mara-worker stop-all
24
+ meego-mara-worker enable --worker <workerId>
25
+ meego-mara-worker disable --worker <workerId>
26
+ meego-mara-worker uninstall --worker <workerId>
27
+ ```
28
+
29
+ ## Install
30
+
31
+ ```bash
32
+ pnpm add @meego-harness/mara-worker
33
+ pnpm exec meego-mara-worker setup
34
+ ```
35
+
36
+ ## Runtime Model
37
+
38
+ - First message in one harness `contextId` starts a new Mira conversation and persists its `conv_id`.
39
+ - Later messages in the same context reload that saved conversation so Mira can continue from prior context.
40
+ - Repo routing is driven by `task.metadata.repo`.
41
+ - Remote MCP tools and remote skills are disabled inside worker mode to keep routing deterministic and focused on local coding work.
42
+ - Structured project-node output supports `completed` and `input_required` JSON responses, with one retry when the first response is invalid.
43
+
44
+ ## Local Files Written By This Package
45
+
46
+ Config file:
47
+
48
+ ```text
49
+ ~/.meego-harness/mara-worker/<workerId>.json
50
+ ```
51
+
52
+ Per-context state file:
53
+
54
+ ```text
55
+ ~/.meego-harness/mara-worker/<workerId>.state.json
56
+ ```
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+
3
+ import process from 'node:process'
4
+ import { runMiraWorkerCli } from '../dist/cli.js'
5
+
6
+ runMiraWorkerCli().catch((error) => {
7
+ console.error(error instanceof Error ? error.message : 'Mira CLI worker CLI failed')
8
+ process.exitCode = 1
9
+ })