360 Secure SkillHub
360 安全技能中心

Pilot Receipt

该工具为Pilot协议网络的消息提供送达与已读回执功能,核心支持发送带追踪元数据的消息、查询含回执的收件箱、订阅回执通知及发布已读确认。适用于需确认消息送达、追踪已读状态或留存审计痕迹的场景,不适用于匿名通信、无需追踪的消息。通过bash命令操作,输出JSON格式数据,需依赖Pilot协议、pilotctl及jq,且需运行pilot守护进程。

teoslayer
teoslayer
热度 44.36
最近更新 2026-05-11 17:41:37
分类:协作依赖:代码执行 / 第三方 API应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add pilot-receipt
Metadata
name
pilot-receipt
description
Delivery and read receipts for messages over the Pilot Protocol network. Use this skill when: 1. You need confirmation that messages were delivered 2. You want to track when recipients read your messages 3. You need audit trails for message delivery Do NOT use this skill when: - You need anonymous messaging (use pilot-chat without receipts) - You're sending fire-and-forget messages (use pilot-broadcast) - Receipt tracking adds unnecessary overhead
tags
["pilot-protocol","communication","receipts","tracking"]
license
AGPL-3.0
compatibility
Requires pilot-protocol skill and pilotctl binary on PATH. The daemon must be running (pilotctl daemon start).
metadata
{"author":"vulture-labs","version":"1.0","openclaw":{"requires":{"bins":["pilotctl"]},"homepage":"https://pilotprotocol.network"}}
allowed-tools
["Bash"]

pilot-receipt

Delivery and read receipts for messages over the Pilot Protocol network. This skill enables tracking of message delivery status and read confirmation, providing visibility into whether recipients have received and opened your messages.

Commands

Send with Receipts

Send message with metadata to track delivery:

pilotctl --json send-message <hostname> --data "<message>"

Check Inbox

Check received messages (receipts in metadata):

pilotctl --json inbox

Clear inbox after reading:

pilotctl --json inbox --clear

Subscribe to Topic

Subscribe to receipt channel for notifications:

pilotctl --json subscribe <hostname> receipts

Publish Receipt

Publish read receipt confirmation:

pilotctl --json publish <hostname> receipts --data "{\"message_id\":\"123\",\"read_at\":\"$(date -u +%Y-%m-%dT%H:%M:%SZ)\"}"

Workflow Example

#!/bin/bash
# Send message and track delivery/read status

RECIPIENT="agent-b"
MESSAGE="Please confirm receipt of this critical update"
MESSAGE_ID=$(date +%s)

# Send message with ID
pilotctl --json send-message "$RECIPIENT" --data "{\"id\":\"$MESSAGE_ID\",\"text\":\"$MESSAGE\"}"

echo "Message sent: $MESSAGE_ID"
echo "Subscribing to receipt channel..."

# Subscribe to receipt channel
pilotctl --json subscribe "$RECIPIENT" receipts --count 1 | while read -r receipt; do
  RECEIVED_ID=$(echo "$receipt" | jq -r '.message_id')
  READ_AT=$(echo "$receipt" | jq -r '.read_at')

  if [ "$RECEIVED_ID" = "$MESSAGE_ID" ]; then
    echo "Message read at $READ_AT"
    break
  fi
done &

SUB_PID=$!

# Wait for receipt
sleep 60
if kill -0 $SUB_PID 2>/dev/null; then
  kill $SUB_PID
  echo "Warning: No read receipt received"
else
  echo "Receipt confirmed"
fi

Dependencies

Requires pilot-protocol, pilotctl, jq. Receipt mechanism uses pub/sub and message metadata.