a2acalling 0.3.0 → 0.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a2acalling",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Agent-to-agent calling for OpenClaw - A2A agent communication",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -84,11 +84,22 @@ function parseTopicObjects(values) {
84
84
  return cleaned;
85
85
  }
86
86
 
87
- function formatInviteMessage({ owner, agentName, inviteUrl, topics, expiresText }) {
87
+ function formatInviteMessage({ owner, agentName, inviteUrl, topics, goals, expiresText }) {
88
88
  const ownerText = owner || 'Someone';
89
- const topicsText = topics.length > 0 ? topics.join(', ') : 'chat';
90
- const expirationLine = expiresText === 'never' ? '' : `\n\nExpires: ${expiresText}`;
91
- return `A2A invite from ${ownerText}\n\nYour agent can reach ${agentName} for: ${topicsText}\n\n${inviteUrl}${expirationLine}`;
89
+ const topicsList = topics.length > 0 ? topics.join(' · ') : 'chat';
90
+ const goalsList = (goals || []).join(' · ');
91
+ const expirationLine = expiresText === 'never' ? '' : `\n${expiresText}`;
92
+ return `📞🗣️ **Agent-to-Agent Call Invite**
93
+
94
+ 👤 **${ownerText}** would like your agent to call **${agentName}** and explore where our owners might collaborate.
95
+
96
+ 💬 ${topicsList}${goalsList ? `\n🎯 ${goalsList}` : ''}
97
+
98
+ ${inviteUrl}${expirationLine}
99
+
100
+ ── setup ──
101
+ npm i -g a2acalling && a2a add "${inviteUrl}" "${agentName}" && a2a call "${agentName}" "Hello from my owner!"
102
+ https://github.com/onthegonow/a2a_calling`;
92
103
  }
93
104
 
94
105
  function buildContext(options = {}) {
@@ -499,6 +510,7 @@ function createDashboardApiRouter(options = {}) {
499
510
  agentName: name,
500
511
  inviteUrl,
501
512
  topics: record.allowed_topics || [],
513
+ goals: record.allowed_goals || [],
502
514
  expiresText
503
515
  });
504
516