@clawcrony/claw-crony 1.2.3 → 1.3.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/CHANGELOG.md +107 -0
- package/CONFIG.md +341 -0
- package/README.md +154 -23
- package/dist/index.js +610 -112
- package/dist/src/ephemeral-token.d.ts +7 -0
- package/dist/src/ephemeral-token.js +17 -0
- package/dist/src/handshake-crypto.d.ts +3 -0
- package/dist/src/handshake-crypto.js +58 -0
- package/dist/src/history.d.ts +44 -0
- package/dist/src/history.js +119 -0
- package/dist/src/hub-match.d.ts +35 -46
- package/dist/src/hub-match.js +38 -53
- package/dist/src/hub-registration.d.ts +3 -10
- package/dist/src/hub-registration.js +33 -132
- package/dist/src/identity-store.d.ts +4 -0
- package/dist/src/identity-store.js +55 -0
- package/dist/src/types.d.ts +44 -3
- package/openclaw.plugin.json +46 -18
- package/package.json +43 -27
- package/scripts/a2a-diagnose.ps1 +15 -0
- package/scripts/a2a-diagnose.sh +22 -0
- package/scripts/a2a-history.ps1 +21 -0
- package/scripts/a2a-history.sh +9 -0
- package/scripts/a2a-match.ps1 +16 -0
- package/scripts/a2a-match.sh +13 -0
- package/scripts/a2a-peers.ps1 +1 -0
- package/scripts/a2a-peers.sh +4 -0
- package/scripts/a2a-send.ps1 +23 -0
- package/scripts/a2a-send.sh +14 -0
- package/scripts/a2a-update.ps1 +3 -0
- package/scripts/a2a-update.sh +6 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
param(
|
|
2
|
+
[Parameter(Mandatory = $true)]
|
|
3
|
+
[string[]] $Skills,
|
|
4
|
+
[string] $Description = ""
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
$payload = @{
|
|
8
|
+
skills = $Skills
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
if ($Description) {
|
|
12
|
+
$payload.description = $Description
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
$json = $payload | ConvertTo-Json -Depth 20 -Compress
|
|
16
|
+
openclaw gateway call a2a.match --params $json
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
skills="${1:-}"
|
|
5
|
+
description="${2:-}"
|
|
6
|
+
|
|
7
|
+
if [[ -z "$skills" ]]; then
|
|
8
|
+
echo "usage: $0 chat,code_review [description]" >&2
|
|
9
|
+
exit 2
|
|
10
|
+
fi
|
|
11
|
+
|
|
12
|
+
params="$(node -e 'const skills=process.argv[1].split(",").map((s)=>s.trim()).filter(Boolean); const description=process.argv[2] || ""; const payload={skills}; if (description) payload.description=description; process.stdout.write(JSON.stringify(payload));' "$skills" "$description")"
|
|
13
|
+
openclaw gateway call a2a.match --params "$params"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
openclaw gateway call a2a.peers --params "{}"
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
param(
|
|
2
|
+
[Parameter(Mandatory = $true)]
|
|
3
|
+
[string] $Peer,
|
|
4
|
+
[Parameter(Mandatory = $true)]
|
|
5
|
+
[string] $Text,
|
|
6
|
+
[string] $AgentId = ""
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
$message = @{
|
|
10
|
+
text = $Text
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if ($AgentId) {
|
|
14
|
+
$message.agentId = $AgentId
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
$payload = @{
|
|
18
|
+
peer = $Peer
|
|
19
|
+
message = $message
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
$json = $payload | ConvertTo-Json -Depth 20 -Compress
|
|
23
|
+
openclaw gateway call a2a.send --params $json
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
set -euo pipefail
|
|
3
|
+
|
|
4
|
+
peer="${1:-}"
|
|
5
|
+
text="${2:-}"
|
|
6
|
+
agent_id="${3:-}"
|
|
7
|
+
|
|
8
|
+
if [[ -z "$peer" || -z "$text" ]]; then
|
|
9
|
+
echo "usage: $0 <peer> <text> [agentId]" >&2
|
|
10
|
+
exit 2
|
|
11
|
+
fi
|
|
12
|
+
|
|
13
|
+
params="$(node -e 'const peer=process.argv[1]; const text=process.argv[2]; const agentId=process.argv[3] || ""; const message={text}; if (agentId) message.agentId=agentId; process.stdout.write(JSON.stringify({peer,message}));' "$peer" "$text" "$agent_id")"
|
|
14
|
+
openclaw gateway call a2a.send --params "$params"
|