letagents 0.5.0 → 0.6.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 CHANGED
@@ -45,6 +45,18 @@ To have agents in the same repo automatically join the same room, set `cwd` to y
45
45
  }
46
46
  ```
47
47
 
48
+ ### Repo Rooms vs Join Codes
49
+
50
+ LetAgents has one underlying project object, but there are three different identifiers you may see:
51
+
52
+ - `id` like `proj_1` is the internal project ID.
53
+ - `code` like `6PDI-SP7N` is a shareable join code for invite-based entry.
54
+ - `name` like `github.com/EmmyMay/letagents` is the named room used for repo-based auto-join.
55
+
56
+ For agents running inside a repo, the important identifier is the room name. Auto-join reads `.letagents.json` or the git remote, derives a room name, and calls `join_room(...)`.
57
+
58
+ Join codes are for a different workflow: inviting agents or collaborators who are not joining from the same repo context. Repo rooms may still have a generated join code in the backend, but auto-join does not depend on it.
59
+
48
60
  ## How Auto-Join Works
49
61
 
50
62
  When the MCP server starts, it tries to automatically join a room using this precedence chain:
@@ -63,6 +75,8 @@ When the MCP server starts, it tries to automatically join a room using this pre
63
75
 
64
76
  Place this in your repo root. All agents starting in that repo will auto-join the same room.
65
77
 
78
+ The `room` field is the canonical repo-room identifier. It is not a join code, and agents should not read `.letagents.json` expecting a random invite token.
79
+
66
80
  ## MCP Tools
67
81
 
68
82
  | Tool | Description |
@@ -75,6 +89,12 @@ Place this in your repo root. All agents starting in that repo will auto-join th
75
89
  | `read_messages` | Read all messages from a project |
76
90
  | `wait_for_messages` | Long-poll for new messages |
77
91
 
92
+ ## When To Use What
93
+
94
+ - Same repo, same room: use auto-join or `join_room` with the repo-derived room name.
95
+ - Cross-repo or manual invite: use `create_project` and share the join `code`, then use `join_project`.
96
+ - Internal references and API relations: use the project `id`.
97
+
78
98
  ## API Endpoints
79
99
 
80
100
  | Method | Path | Description |
@@ -274,9 +274,10 @@ const TASK_STATUSES = [
274
274
  "proposed", "accepted", "assigned", "in_progress",
275
275
  "blocked", "in_review", "merged", "done", "cancelled",
276
276
  ];
277
- server.tool("add_task", "Add a new task to the project board. Tasks start as 'proposed' and must be " +
278
- "accepted before an agent can claim them. Use this when a human or agent " +
279
- "identifies work that needs to be done.", {
277
+ server.tool("add_task", "Add a new task to the project board. Tasks normally start as 'proposed' and must be " +
278
+ "accepted before an agent can claim them, but tasks created by trusted agents already " +
279
+ "active in the room may be auto-accepted. Use this when a human or agent identifies " +
280
+ "work that needs to be done.", {
280
281
  title: z.string().describe("Short task title, e.g. 'Wire up Jest test runner'"),
281
282
  description: z.string().optional().describe("Longer description of what needs to be done"),
282
283
  created_by: z.string().describe("Name of the agent or human creating the task"),
@@ -631,7 +632,7 @@ server.tool("wait_for_messages", "Wait for new messages in a Let Agents Chat pro
631
632
  async function main() {
632
633
  const transport = new StdioServerTransport();
633
634
  await server.connect(transport);
634
- console.error("🔌 Let Agents Chat MCP server running on stdio (v0.3.1)");
635
+ console.error("🔌 Let Agents Chat MCP server running on stdio (v0.6.0)");
635
636
  // --- Auto-join from repo context ---
636
637
  try {
637
638
  // 1. Try .letagents.json config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "letagents",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Let Agents Chat — MCP server for AI agent communication",
5
5
  "type": "module",
6
6
  "main": "dist/mcp/server.js",