agent-relay-plugin 0.1.0 → 0.1.1

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.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "agent-relay",
3
3
  "description": "Client connector for Agent Relay — auto-registers Claude Code sessions as agents and enables inter-agent messaging via a lightweight HTTP message bus",
4
- "version": "0.1.0"
4
+ "version": "0.1.1"
5
5
  }
@@ -10,7 +10,13 @@ session_id=$(echo "$input" | jq -r '.session_id // empty')
10
10
 
11
11
  machine=$(hostname)
12
12
  project=$(basename "${cwd:-unknown}")
13
- rig="${CLAUDE_RIG_NAME:-default}"
13
+ if [ -n "$CLAUDE_RIG_NAME" ]; then
14
+ rig="$CLAUDE_RIG_NAME"
15
+ elif [ -n "$CLAUDE_CONFIG_DIR" ]; then
16
+ rig=$(basename "$CLAUDE_CONFIG_DIR")
17
+ else
18
+ rig="default"
19
+ fi
14
20
 
15
21
  if command -v shasum >/dev/null 2>&1; then
16
22
  short_sid=$(printf '%s' "$session_id" | shasum -a 1 | head -c 6)
@@ -14,7 +14,13 @@ source=$(echo "$input" | jq -r '.source // empty')
14
14
 
15
15
  machine=$(hostname)
16
16
  project=$(basename "${cwd:-unknown}")
17
- rig="${CLAUDE_RIG_NAME:-default}"
17
+ if [ -n "$CLAUDE_RIG_NAME" ]; then
18
+ rig="$CLAUDE_RIG_NAME"
19
+ elif [ -n "$CLAUDE_CONFIG_DIR" ]; then
20
+ rig=$(basename "$CLAUDE_CONFIG_DIR")
21
+ else
22
+ rig="default"
23
+ fi
18
24
 
19
25
  if command -v shasum >/dev/null 2>&1; then
20
26
  short_sid=$(printf '%s' "$session_id" | shasum -a 1 | head -c 6)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-relay-plugin",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Claude Code plugin for Agent Relay — auto-registers sessions as agents and enables inter-agent messaging",
5
5
  "type": "module",
6
6
  "license": "MIT",