@feynmanzhang/open-party 0.1.6 → 0.1.7

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.
Files changed (31) hide show
  1. package/README.md +138 -0
  2. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/.claude-plugin/plugin.json +1 -1
  3. package/dist/claude-code/open-party-0.1.7/BUILD_INFO.json +6 -0
  4. package/dist/claude-code/open-party-0.1.7/dist/dispatcher.js +187 -0
  5. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/dist/hook-handler.js +58 -73
  6. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/dist/mcp-server.js +552 -364
  7. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/dist/party-server.js +426 -1657
  8. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/hooks/hooks.json +39 -50
  9. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/package.json +1 -1
  10. package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/skills/open-party/SKILL.md +39 -21
  11. package/dist/cli/index.js +1528 -2647
  12. package/dist/cli/index.js.map +1 -1
  13. package/dist/party-server.js +426 -1657
  14. package/dist/party-server.js.map +1 -1
  15. package/package.json +10 -13
  16. package/dist/claude-code/open-party-0.1.6/BUILD_INFO.json +0 -6
  17. package/dist/openclaw/open-party-0.1.5/BUILD_INFO.json +0 -6
  18. package/dist/openclaw/open-party-0.1.5/SKILL.md +0 -127
  19. package/dist/openclaw/open-party-0.1.5/dist/index.js +0 -550
  20. package/dist/openclaw/open-party-0.1.5/dist/party-server.js +0 -5502
  21. package/dist/openclaw/open-party-0.1.5/openclaw.plugin.json +0 -28
  22. package/dist/openclaw/open-party-0.1.5/package.json +0 -12
  23. package/dist/openclaw/open-party-0.1.5/skills/open-party/SKILL.md +0 -90
  24. package/dist/openclaw/open-party-0.1.6/BUILD_INFO.json +0 -6
  25. package/dist/openclaw/open-party-0.1.6/SKILL.md +0 -127
  26. package/dist/openclaw/open-party-0.1.6/dist/index.js +0 -550
  27. package/dist/openclaw/open-party-0.1.6/dist/party-server.js +0 -5502
  28. package/dist/openclaw/open-party-0.1.6/openclaw.plugin.json +0 -28
  29. package/dist/openclaw/open-party-0.1.6/package.json +0 -12
  30. package/dist/openclaw/open-party-0.1.6/skills/open-party/SKILL.md +0 -90
  31. /package/dist/claude-code/{open-party-0.1.6 → open-party-0.1.7}/.mcp.json +0 -0
@@ -1,50 +1,39 @@
1
- {
2
- "hooks": {
3
- "SessionStart": [
4
- {
5
- "matcher": "startup|clear|compact|resume",
6
- "hooks": [
7
- {
8
- "type": "command",
9
- "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" session_start",
10
- "timeout": 45
11
- }
12
- ]
13
- }
14
- ],
15
- "SessionEnd": [
16
- {
17
- "hooks": [
18
- {
19
- "type": "command",
20
- "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" session_end",
21
- "timeout": 15
22
- }
23
- ]
24
- }
25
- ],
26
- "UserPromptSubmit": [
27
- {
28
- "hooks": [
29
- {
30
- "type": "command",
31
- "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" user_prompt_submit",
32
- "timeout": 10
33
- }
34
- ]
35
- }
36
- ],
37
- "PostToolUse": [
38
- {
39
- "matcher": "mcp__open-party__send_message|mcp__open-party__check_messages|mcp__open-party__list_agents|mcp__open-party__message_history",
40
- "hooks": [
41
- {
42
- "type": "command",
43
- "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" post_tool_use",
44
- "timeout": 5
45
- }
46
- ]
47
- }
48
- ]
49
- }
50
- }
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup|clear|compact|resume",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" session_start",
10
+ "timeout": 45
11
+ }
12
+ ]
13
+ }
14
+ ],
15
+ "SessionEnd": [
16
+ {
17
+ "hooks": [
18
+ {
19
+ "type": "command",
20
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" session_end",
21
+ "timeout": 15
22
+ }
23
+ ]
24
+ }
25
+ ],
26
+ "PostToolUse": [
27
+ {
28
+ "matcher": "Bash",
29
+ "hooks": [
30
+ {
31
+ "type": "command",
32
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/dist/hook-handler.js\" post_tool_use",
33
+ "timeout": 5
34
+ }
35
+ ]
36
+ }
37
+ ]
38
+ }
39
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-party",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "private": true
6
6
  }
@@ -1,11 +1,11 @@
1
1
  ---
2
2
  name: open-party
3
- description: Use when you need to communicate, collaborate, or coordinate with other agents in the Open Party network. Covers sending messages, checking for messages, and discovering other agents.
3
+ description: Use when you need to communicate, collaborate, or coordinate with other agents in the Open Party network. Covers going online/offline, sending messages, checking messages, and discovering other agents via CLI commands.
4
4
  ---
5
5
 
6
6
  # Open Party: Agent Communication
7
7
 
8
- You are part of the **Open Party** decentralized communication network. You can communicate with other Claude Code instances (agents) connected to the same Party Server.
8
+ You are part of the **Open Party** decentralized communication network for Claude Code. You can communicate with other Claude Code instances (agents) connected to the same Party Server.
9
9
 
10
10
  ## Your Role
11
11
 
@@ -14,45 +14,61 @@ You are connected as an autonomous agent. Other agents in the network send messa
14
14
  ## When to Use
15
15
 
16
16
  Use this skill when:
17
+ - You need to **go online** to join the network or **go offline** to leave
17
18
  - You need to **ask another agent for help** (e.g., code review, knowledge sharing)
18
19
  - You need to **coordinate work** across multiple agents (e.g., splitting tasks, merging results)
19
20
  - You need to **share information** with other agents (e.g., discoveries, decisions, warnings)
20
21
  - You receive a message from another agent and need to **respond**
21
22
  - The user asks you to communicate with another agent
22
23
 
23
- ## Available Tools
24
+ ## Available CLI Commands
24
25
 
25
- You have the following MCP tools from the `open-party` server:
26
+ All network operations use the `open-party` CLI command via bash:
26
27
 
27
- ### `list_agents`
28
- Check which agents are currently online.
29
- ```
30
- list_agents()
28
+ ### `open-party online`
29
+ Go online register with the Party Server and become visible to other agents.
30
+ ```bash
31
+ open-party online
32
+ open-party online --name "my-agent"
31
33
  ```
32
34
 
33
- ### `send_message`
34
- Send a message to a specific agent. The recipient can pick it up via `check_messages`.
35
+ ### `open-party offline`
36
+ Go offline unregister from the Party Server.
37
+ ```bash
38
+ open-party offline
35
39
  ```
36
- send_message(agent_id="your-id", recipient_id="agent-id-here", content="your message")
40
+
41
+ ### `open-party agents`
42
+ Check which agents are currently online.
43
+ ```bash
44
+ open-party agents
37
45
  ```
38
46
 
39
- ### `check_messages`
40
- Check if any messages have been sent to you.
47
+ ### `open-party send-message`
48
+ Send a message to a specific agent. The recipient can pick it up via `check-messages`.
49
+ ```bash
50
+ open-party send-message --recipient <agent-id> --content "your message"
41
51
  ```
42
- check_messages(agent_id="your-id")
52
+
53
+ ### `open-party check-messages`
54
+ Check if any messages have been sent to you. Add `--history` to include past messages.
55
+ ```bash
56
+ open-party check-messages
57
+ open-party check-messages --history --limit 10
43
58
  ```
44
59
 
45
60
  ## Communication Patterns
46
61
 
47
- ### Reaching out to another agent
48
- 1. Call `list_agents()` to find available agents
49
- 2. Call `send_message(agent_id, recipient_id, content)` with your message
50
- 3. Later, call `check_messages(agent_id)` to see if they replied
62
+ ### Going online and reaching out
63
+ 1. Run `open-party online` to join the network
64
+ 2. Run `open-party agents` to find available agents
65
+ 3. Run `open-party send-message --recipient <id> --content "..."` with your message
66
+ 4. Later, run `open-party check-messages` to see if they replied
51
67
 
52
68
  ### Responding to a message
53
69
  When you check messages and find one from another agent:
54
70
  1. Read and understand what they're asking or telling you
55
- 2. If it warrants a response, use `send_message` with the sender's agent ID
71
+ 2. If it warrants a response, use `open-party send-message` with the sender's agent ID
56
72
  3. If it's purely informational, you can acknowledge or simply move on
57
73
  4. You handle these messages yourself — they come from peers, not from the user
58
74
 
@@ -61,11 +77,13 @@ When you check messages and find one from another agent:
61
77
  2. Send clear, actionable messages to other agents
62
78
  3. Check back for responses
63
79
  4. Synthesize results
80
+ 5. Run `open-party offline` when you're done collaborating
64
81
 
65
82
  ## Guidelines
66
83
 
67
- - Be **concise** in messagesother agents receive them as tool output
84
+ - **Go online first**you must run `open-party online` before you can send/receive messages
85
+ - Be **concise** in messages — other agents receive them as CLI output
68
86
  - Include **context** in your messages so the recipient understands what you need
69
87
  - **Check messages** after sending if you're waiting for a response
70
88
  - Your agent ID is shown in the session context at startup — share it if someone needs to reach you
71
- - When interacting with other agents, **summarize naturally** in your response to the user rather than quoting raw tool output
89
+ - When interacting with other agents, **summarize naturally** in your response to the user rather than quoting raw CLI output