@gethmy/agent 1.34.0 → 1.36.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 +9 -3
- package/dist/cli.js +1450 -611
- package/dist/index.js +1409 -594
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -55,7 +55,8 @@ npx @gethmy/mcp setup
|
|
|
55
55
|
},
|
|
56
56
|
"budget": {
|
|
57
57
|
"maxAttemptsPerCard": 3, // give up on a card after N failed runs
|
|
58
|
-
"dailyBudgetCents":
|
|
58
|
+
"dailyBudgetCents": 40000 // $400.00/day across all workers; -1 = no cap
|
|
59
|
+
// 10x sdk.maxBudgetUsd (#1058); keep in proportion
|
|
59
60
|
},
|
|
60
61
|
"sweep": {
|
|
61
62
|
"enabled": false, // the daemon claims its own next card
|
|
@@ -67,7 +68,12 @@ npx @gethmy/mcp setup
|
|
|
67
68
|
"http": {
|
|
68
69
|
"enabled": true,
|
|
69
70
|
"port": 47821,
|
|
70
|
-
"bindAddr": "127.0.0.1"
|
|
71
|
+
"bindAddr": "127.0.0.1" // LOOPBACK ONLY. The control server is
|
|
72
|
+
// unauthenticated, so this is its whole
|
|
73
|
+
// access control — POST /sweep/stop is the
|
|
74
|
+
// kill switch. 0.0.0.0, "" or a LAN address
|
|
75
|
+
// refuse the daemon at startup (#1061);
|
|
76
|
+
// tunnel to loopback for remote access.
|
|
71
77
|
},
|
|
72
78
|
"timing": {
|
|
73
79
|
"heartbeatMs": 30000,
|
|
@@ -122,7 +128,7 @@ harmony-agent help # Show usage
|
|
|
122
128
|
|
|
123
129
|
## State
|
|
124
130
|
|
|
125
|
-
Durable state lives at `~/.harmony-mcp/
|
|
131
|
+
Durable state lives at `~/.harmony-mcp/state/<projectId>.json` — one file per project, so two daemons on one machine never read or write each other's runs (#1057). Tracks live runs, per-card attempts and costs, daily spend, and DLQ markers. Atomic writes via write-to-tmp + rename. On the first start after upgrading, the daemon splits its own records out of the old machine-global `~/.harmony-mcp/agent-state.json` (a `.pre-scope-backup` copy is kept). The split is gated on its own `<projectId>.json.migrated` marker, so a failed or skipped attempt retries on the next start; a card record no worktree can attribute is copied into every project file rather than dropped.
|
|
126
132
|
|
|
127
133
|
Worktrees live at `.harmony-worktrees/` inside your repo. A background sweep every 5 minutes removes directories older than 1 hour that no live run claims.
|
|
128
134
|
|