@volter/teams 0.1.67 → 0.1.68

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": "@volter/teams",
3
- "version": "0.1.67",
3
+ "version": "0.1.68",
4
4
  "type": "module",
5
5
  "description": "Volter Teams, the neutral team plane: machine identity and daemon core, the local door and server link, admission from machine grants, product doors, and the Teams server's neutral routes (company RFC 0008).",
6
6
  "license": "MIT",
@@ -174,7 +174,9 @@ export function withPeople(transcript, messages, { agentName = null, sessionId =
174
174
  // is this session's own front, not another agent with a generated id.
175
175
  const ownVoice = peer.via === 'voice';
176
176
  const seed = ownVoice ? sessionId : peer.address.startsWith('sc:') ? peer.address : peer.name;
177
- const name = ownVoice && agentName ? agentName : peer.name, picture = agent(seed);
177
+ const native = /^sc:[^:]+:([^:]+):.+$/.exec(peer.address);
178
+ const harnessName = ({ 'claude-code': 'Claude Code', codex: 'Codex', gemini: 'Gemini', goose: 'Goose', grok: 'Grok', opencode: 'OpenCode', pi: 'Pi', operator: 'Automation', board: 'Board', pane: 'Terminal' })[native?.[1]] || 'Another session';
179
+ const name = ownVoice && agentName ? agentName : peer.name === peer.address ? harnessName : peer.name, picture = agent(seed);
178
180
  return { ...entry, text: peer.body, mail: { id: peer.id || entry.id, from: name, to: agentName || 'This session', direction: 'in', image: picture, ...(peer.subject ? { subject: peer.subject } : {}), ...(ownVoice ? { via: 'voice' } : {}), ...(peer.inReplyTo ? { inReplyTo: peer.inReplyTo } : {}) }, actor: { id: seed, name, image: picture, kind: 'agent' }, context: [{ id: `${entry.id}:envelope`, kind: 'envelope', label: 'Delivered by supercode', detail: entry.text }] };
179
181
  }
180
182
  const name = metadata.source_name || null;