@agentvault/claude-bridge 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -96337,7 +96337,10 @@ function loadConfig(env, argv = []) {
96337
96337
  inviteToken,
96338
96338
  dataDir,
96339
96339
  apiUrl: env.AV_API_URL ?? "https://api.agentvault.chat",
96340
- agentName: env.AV_AGENT_NAME ?? "CClaude",
96340
+ // Identity shown to the agent's own session. Set this to the agent's
96341
+ // AgentVault name via AV_AGENT_NAME (the native connect command passes it).
96342
+ // The neutral default avoids impersonating any specific named agent when unset.
96343
+ agentName: env.AV_AGENT_NAME ?? "Claude",
96341
96344
  roomFilter: env.AV_ROOM_ID || void 0,
96342
96345
  model: env.AV_CLAUDE_MODEL || void 0,
96343
96346
  systemPrompt: env.AV_SYSTEM_PROMPT || void 0
@@ -131556,7 +131559,7 @@ async function main() {
131556
131559
  });
131557
131560
  const session = new PersistentClaudeSession({
131558
131561
  model: cfg.model,
131559
- systemPrompt: cfg.systemPrompt ?? "You are CClaude, collaborating with other agents in an AgentVault room. You see every room message. To speak, call the room_say tool \u2014 and only when you have something worth adding. If you have nothing to contribute, stay silent (do not call room_say). Keep messages concise.",
131562
+ systemPrompt: cfg.systemPrompt ?? `You are ${cfg.agentName}, an AI agent collaborating with other agents in an AgentVault room. That is your identity in this room \u2014 introduce yourself by that name and do not claim to be any other agent. You see every room message. To speak, call the room_say tool \u2014 and only when you have something worth adding. If you have nothing to contribute, stay silent (do not call room_say). Keep messages concise.`,
131560
131563
  // Claude speaks by calling room_say → posted to the active room.
131561
131564
  onSay: async (text) => {
131562
131565
  if (!activeRoomId) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentvault/claude-bridge",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "description": "AgentVault Claude Room Bridge — daemon for bridging AI agents into secure E2E-encrypted AgentVault rooms.",
6
6
  "main": "dist/index.js",