@raindrop-ai/pi-agent 0.0.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/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # @raindrop-ai/pi-agent
2
+
3
+ Automatic observability for [Pi Agent](https://github.com/badlogic/pi-mono) with [Raindrop](https://raindrop.ai). Captures agent runs, LLM generations, tool calls, and token usage.
4
+
5
+ Two entry points:
6
+
7
+ - **`@raindrop-ai/pi-agent`** — programmatic subscriber for `pi-agent-core` users
8
+ - **`@raindrop-ai/pi-agent/extension`** — pi-coding-agent CLI extension (auto-discovered via `pi install`)
9
+
10
+ ## Quick Start — Programmatic
11
+
12
+ ```typescript
13
+ import { Agent } from "@mariozechner/pi-agent-core";
14
+ import { getModel } from "@mariozechner/pi-ai";
15
+ import { createRaindropPiAgent } from "@raindrop-ai/pi-agent";
16
+
17
+ const raindrop = createRaindropPiAgent({
18
+ writeKey: "rk_...",
19
+ userId: "user-123",
20
+ });
21
+
22
+ const agent = new Agent({
23
+ initialState: {
24
+ systemPrompt: "You are a helpful assistant.",
25
+ model: getModel("openai", "gpt-4o-mini"),
26
+ },
27
+ });
28
+
29
+ raindrop.subscribe(agent);
30
+ await agent.prompt("Hello!");
31
+ await raindrop.shutdown();
32
+ ```
33
+
34
+ ## Quick Start — Pi Coding Agent CLI
35
+
36
+ ```bash
37
+ pi install npm:@raindrop-ai/pi-agent
38
+ ```
39
+
40
+ Set `RAINDROP_WRITE_KEY` in your environment. Traces appear automatically.
41
+
42
+ ## Documentation
43
+
44
+ See the full [Pi Agent docs](https://docs.raindrop.ai/sdk/pi-agent) for configuration, per-subscribe overrides, and extension settings.
45
+
46
+ ## License
47
+
48
+ MIT