@sentropic/h2a-cli 0.67.0 → 0.69.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/dist/bin.js +19 -1
- package/dist/bin.js.map +1 -1
- package/dist/cli-contract.d.ts.map +1 -1
- package/dist/cli-contract.js +8 -0
- package/dist/cli-contract.js.map +1 -1
- package/dist/cli.d.ts +36 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +162 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp.d.ts +1 -1
- package/dist/mcp.d.ts.map +1 -1
- package/dist/mcp.js +2 -1
- package/dist/mcp.js.map +1 -1
- package/dist/runtime/governance/index.d.ts +1 -0
- package/dist/runtime/governance/index.d.ts.map +1 -1
- package/dist/runtime/governance/index.js +1 -0
- package/dist/runtime/governance/index.js.map +1 -1
- package/dist/runtime/governance/spawns.d.ts +50 -0
- package/dist/runtime/governance/spawns.d.ts.map +1 -0
- package/dist/runtime/governance/spawns.js +91 -0
- package/dist/runtime/governance/spawns.js.map +1 -0
- package/dist/runtime/local-files/index.d.ts +1 -1
- package/dist/runtime/local-files/index.d.ts.map +1 -1
- package/dist/runtime/local-files/index.js +1 -1
- package/dist/runtime/local-files/index.js.map +1 -1
- package/dist/runtime/local-files/presence.d.ts +35 -0
- package/dist/runtime/local-files/presence.d.ts.map +1 -1
- package/dist/runtime/local-files/presence.js +98 -0
- package/dist/runtime/local-files/presence.js.map +1 -1
- package/dist/runtime/mcp/handlers.d.ts +15 -0
- package/dist/runtime/mcp/handlers.d.ts.map +1 -1
- package/dist/runtime/mcp/handlers.js +120 -0
- package/dist/runtime/mcp/handlers.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +3 -1
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts +8 -0
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +38 -1
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp/tools.d.ts.map +1 -1
- package/dist/runtime/mcp/tools.js +33 -0
- package/dist/runtime/mcp/tools.js.map +1 -1
- package/package.json +2 -2
- package/skills/h2a/SKILL.md +26 -1
package/skills/h2a/SKILL.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: h2a
|
|
3
|
-
version: 0.
|
|
3
|
+
version: 0.66.0
|
|
4
4
|
description: Coordinate with other CLI agents (Claude Code, Codex, Gemini) via the h2a protocol — open a live session, list peers, exchange messages, drive a signed negotiation. Use when the user wants the current CLI to interact with another agent through a shared workspace.
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -17,6 +17,7 @@ When invoked, parse the arguments and dispatch to the matching subcommand below.
|
|
|
17
17
|
/h2a conductor claim → claim conductor for a workspace (earliest live claimant wins)
|
|
18
18
|
/h2a conductor release → release conductor claim (frees it for the next claimant)
|
|
19
19
|
/h2a conductor-launch-check [workspace] → DRY-RUN: polls track; recommends launching a conductor if stalled + none live
|
|
20
|
+
/h2a conductor-launch [workspace] → EMIT a launch REQUEST to remote when stalled+no conductor; capped 1/30min, requires --confirm; h2a never spawns
|
|
20
21
|
/h2a send <peer> "<text>" → put a message envelope in a peer's inbox
|
|
21
22
|
/h2a receive → read this agent's inbox and react to new envelopes
|
|
22
23
|
/h2a negotiate <verb> ... → drive a negotiation lifecycle (open|offer|sign|stabilize)
|
|
@@ -120,6 +121,30 @@ Return shape: `{ workspaceId, trackAvailable, conductor, conductorLive, pending,
|
|
|
120
121
|
|
|
121
122
|
A one-liner stderr note is emitted when `recommendation === "launch"` reminding callers this is a DRY-RUN.
|
|
122
123
|
|
|
124
|
+
### `/h2a conductor-launch [workspace] [--idle-ms <ms>] [--confirm] [--remote <instance>] [--instance <self>]`
|
|
125
|
+
|
|
126
|
+
**D3 EMISSION.** When `conductorLaunchCheck` returns `recommendation="launch"`, emits a `conductor-launch-request` envelope to a live remote agent.
|
|
127
|
+
|
|
128
|
+
**h2a NEVER spawns a process.** It only puts a request envelope in the remote's inbox; the remote agent executes the actual spawn.
|
|
129
|
+
|
|
130
|
+
**Gates (both must pass to emit):**
|
|
131
|
+
1. **Human confirmation:** without `--confirm`, only preview the request (`action: "would-emit"`). With `--confirm`, emit + record the marker.
|
|
132
|
+
2. **Cap/cooldown:** at most 1 emission per 30 minutes per workspace (`action: "cooldown"` if too recent).
|
|
133
|
+
|
|
134
|
+
`--instance <self>` is required with `--confirm` (identifies the sender/signer).
|
|
135
|
+
|
|
136
|
+
**Host preference in the request:** `["claude", "codex", "agy"]`.
|
|
137
|
+
|
|
138
|
+
CLI: `h2a conductor-launch [--workspace <id|path>] [--root <path>] [--idle-ms <ms>] [--confirm] [--remote <instance>] [--instance <self>]`
|
|
139
|
+
MCP: `h2a_conductor_launch { workspaceId|workspacePath, idleMs?, confirm?, remote?, instance? }`
|
|
140
|
+
|
|
141
|
+
Return shape (all cases exit 0 except user errors):
|
|
142
|
+
- `{ action: "none", reason, ...check }` — recommendation is not "launch".
|
|
143
|
+
- `{ action: "cooldown", reason, lastSpawnAt }` — cooldown not elapsed.
|
|
144
|
+
- `{ action: "would-emit", request, note }` — preview (no --confirm).
|
|
145
|
+
- `{ action: "no-remote", reason }` — no live remote agent found (--confirm but no remote).
|
|
146
|
+
- `{ action: "emitted", to, request }` — emitted + marker recorded.
|
|
147
|
+
|
|
123
148
|
### `/h2a send <peer> "<text>"`
|
|
124
149
|
|
|
125
150
|
Compose and route an envelope to a named peer.
|