agent-insights 0.0.12 → 0.0.16

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- type AgentName = "claude-code" | "cursor" | "opencode" | "codex" | "unknown";
1
+ type AgentName = "claude-code" | "cursor" | "opencode" | "codex" | "pi" | "unknown";
2
2
  type AgentEventType = "session.start" | "session.end" | "user.prompt.submit" | "tool.start" | "tool.end" | "tool.failure" | "permission.request" | "permission.denied" | "subagent.start" | "subagent.end" | "agent.stop" | "notification" | "context.compact.start" | "context.compact.end" | "error";
3
3
  type AgentOutcome = "success" | "error" | "cancelled" | "unknown";
4
4
  type AgentEvent = {
@@ -82,7 +82,7 @@ type AgentInsightsConfig = {
82
82
  exporter: ExporterConfig;
83
83
  transcriptStore: TranscriptStoreConfig;
84
84
  sessionAnalysis: SessionAnalysisConfig;
85
- agents: Record<"claudeCode" | "cursor", AgentConfig>;
85
+ agents: Record<"claudeCode" | "cursor" | "codex" | "pi", AgentConfig>;
86
86
  privacy: {
87
87
  capturePrompts: false;
88
88
  captureMessages: false;
@@ -94,7 +94,7 @@ declare function defaultConfig(): AgentInsightsConfig;
94
94
  declare function loadConfig(): Promise<AgentInsightsConfig | undefined>;
95
95
  declare function saveConfig(cfg: AgentInsightsConfig): Promise<void>;
96
96
 
97
- type AgentId = "claude-code" | "cursor";
97
+ type AgentId = "claude-code" | "cursor" | "codex" | "pi";
98
98
  type HookPayload = {
99
99
  /** Native event name as emitted by the agent (e.g. `SessionStart`). */
100
100
  event: string;
@@ -140,6 +140,12 @@ type TranscriptUploadInput = {
140
140
  sessionId: string;
141
141
  /** Agent name (e.g. "claude-code"). */
142
142
  agent: string;
143
+ /**
144
+ * Vercel email captured at `agent-insights login`. Lets the analyzer
145
+ * join sessions to real user accounts; never logged or written into
146
+ * the transcript itself.
147
+ */
148
+ userEmail?: string;
143
149
  };
144
150
  type TranscriptUploadResult = {
145
151
  pathname: string;