@tpsdev-ai/openclaw-flair 0.7.0 → 0.8.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/key-resolver.ts DELETED
@@ -1,23 +0,0 @@
1
- /**
2
- * OpenClaw-specific identity resolution.
3
- *
4
- * Key path and private key loading are now handled by @tpsdev-ai/flair-client.
5
- * This file only contains resolveAgentId() which reads environment variables —
6
- * something the generic flair-client shouldn't know about.
7
- */
8
-
9
- /**
10
- * Resolve agent ID from environment when not explicitly configured.
11
- *
12
- * IMPORTANT: Does NOT read from openclaw.json agents list. On a multi-agent
13
- * gateway, the first agent in the list is NOT necessarily the current session's
14
- * agent. The plugin must get the real agentId from the session context via
15
- * before_agent_start, not from config guessing.
16
- *
17
- * Priority: FLAIR_AGENT_ID env > null (let session context provide it)
18
- */
19
- export function resolveAgentId(): string | null {
20
- const envId = process.env.FLAIR_AGENT_ID;
21
- if (envId) return envId;
22
- return null;
23
- }