@raindrop-ai/pi-agent 0.0.6 → 0.0.8

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 CHANGED
@@ -39,6 +39,19 @@ pi install npm:@raindrop-ai/pi-agent
39
39
 
40
40
  Set `RAINDROP_WRITE_KEY` in your environment. Traces appear automatically.
41
41
 
42
+ ## Projects
43
+
44
+ If your org has multiple projects, route events to a specific one by passing its slug as `projectId` programmatically:
45
+
46
+ ```typescript
47
+ const raindrop = createRaindropPiAgent({
48
+ writeKey: "your-write-key",
49
+ projectId: "support-prod",
50
+ });
51
+ ```
52
+
53
+ For the CLI extension, set the slug via the `RAINDROP_PROJECT_ID` env var (or the `project_id` config-file key). Either way this sets the `X-Raindrop-Project-Id` header on every event. Omit it (or use `"default"`) to use your org's default **Production** project — the existing behavior. Single-project orgs need nothing new.
54
+
42
55
  ## Payload size limits
43
56
 
44
57
  Event input/output are capped at **1,000,000 characters per field** (span
@@ -1126,18 +1126,13 @@ globalThis.RAINDROP_ASYNC_LOCAL_STORAGE = AsyncLocalStorage;
1126
1126
  // package.json
1127
1127
  var package_default = {
1128
1128
  name: "@raindrop-ai/pi-agent",
1129
- version: "0.0.6",
1129
+ version: "0.0.8",
1130
1130
  description: "Raindrop observability for Pi Agent \u2014 automatic tracing via subscriber or pi-coding-agent extension",
1131
1131
  type: "module",
1132
1132
  license: "MIT",
1133
- repository: {
1134
- type: "git",
1135
- url: "git+https://github.com/raindrop-ai/raindrop-js.git",
1136
- directory: "packages/pi-agent"
1137
- },
1138
- homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/pi-agent#readme",
1133
+ homepage: "https://www.raindrop.ai/docs/integrations/pi-agent/",
1139
1134
  bugs: {
1140
- url: "https://github.com/raindrop-ai/raindrop-js/issues"
1135
+ url: "https://www.raindrop.ai/docs/support/"
1141
1136
  },
1142
1137
  keywords: [
1143
1138
  "pi-package",
@@ -1197,18 +1197,13 @@ function resolveLocalWorkshopUrl(fileValue) {
1197
1197
  // package.json
1198
1198
  var package_default = {
1199
1199
  name: "@raindrop-ai/pi-agent",
1200
- version: "0.0.6",
1200
+ version: "0.0.8",
1201
1201
  description: "Raindrop observability for Pi Agent \u2014 automatic tracing via subscriber or pi-coding-agent extension",
1202
1202
  type: "module",
1203
1203
  license: "MIT",
1204
- repository: {
1205
- type: "git",
1206
- url: "git+https://github.com/raindrop-ai/raindrop-js.git",
1207
- directory: "packages/pi-agent"
1208
- },
1209
- homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/pi-agent#readme",
1204
+ homepage: "https://www.raindrop.ai/docs/integrations/pi-agent/",
1210
1205
  bugs: {
1211
- url: "https://github.com/raindrop-ai/raindrop-js/issues"
1206
+ url: "https://www.raindrop.ai/docs/support/"
1212
1207
  },
1213
1208
  keywords: [
1214
1209
  "pi-package",
package/dist/extension.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  resolveLocalDebuggerBaseUrl,
15
15
  safeStringify,
16
16
  truncate
17
- } from "./chunk-5F37XTG6.js";
17
+ } from "./chunk-C4YB7RUR.js";
18
18
 
19
19
  // src/internal/config.ts
20
20
  import { existsSync, readFileSync } from "fs";
package/dist/index.cjs CHANGED
@@ -1149,18 +1149,13 @@ globalThis.RAINDROP_ASYNC_LOCAL_STORAGE = import_async_hooks.AsyncLocalStorage;
1149
1149
  // package.json
1150
1150
  var package_default = {
1151
1151
  name: "@raindrop-ai/pi-agent",
1152
- version: "0.0.6",
1152
+ version: "0.0.8",
1153
1153
  description: "Raindrop observability for Pi Agent \u2014 automatic tracing via subscriber or pi-coding-agent extension",
1154
1154
  type: "module",
1155
1155
  license: "MIT",
1156
- repository: {
1157
- type: "git",
1158
- url: "git+https://github.com/raindrop-ai/raindrop-js.git",
1159
- directory: "packages/pi-agent"
1160
- },
1161
- homepage: "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/pi-agent#readme",
1156
+ homepage: "https://www.raindrop.ai/docs/integrations/pi-agent/",
1162
1157
  bugs: {
1163
- url: "https://github.com/raindrop-ai/raindrop-js/issues"
1158
+ url: "https://www.raindrop.ai/docs/support/"
1164
1159
  },
1165
1160
  keywords: [
1166
1161
  "pi-package",
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ import {
17
17
  resolveLocalDebuggerBaseUrl,
18
18
  safeStringify,
19
19
  truncate
20
- } from "./chunk-5F37XTG6.js";
20
+ } from "./chunk-C4YB7RUR.js";
21
21
 
22
22
  // src/internal/subscriber.ts
23
23
  function createSubscriber(agent, eventShipper, traceShipper, defaultOptions, options, debug) {
package/package.json CHANGED
@@ -1,17 +1,12 @@
1
1
  {
2
2
  "name": "@raindrop-ai/pi-agent",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "Raindrop observability for Pi Agent — automatic tracing via subscriber or pi-coding-agent extension",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "git+https://github.com/raindrop-ai/raindrop-js.git",
10
- "directory": "packages/pi-agent"
11
- },
12
- "homepage": "https://github.com/raindrop-ai/raindrop-js/tree/main/packages/pi-agent#readme",
7
+ "homepage": "https://www.raindrop.ai/docs/integrations/pi-agent/",
13
8
  "bugs": {
14
- "url": "https://github.com/raindrop-ai/raindrop-js/issues"
9
+ "url": "https://www.raindrop.ai/docs/support/"
15
10
  },
16
11
  "keywords": [
17
12
  "pi-package",