@introspection-sdk/introspection-pi 0.13.0 → 0.15.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/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@
23
23
  * import { instrumentAgent, instrumentStream } from "@introspection-sdk/introspection-pi";
24
24
  *
25
25
  * // Or compose the pieces yourself:
26
- * agent.streamFn = instrumentStream(agent.streamFn, { tracer, meta });
26
+ * agent.streamFunction = instrumentStream(agent.streamFunction, { tracer, meta });
27
27
  * const tools = instrumentAgent(agent, { tracer, meta });
28
28
  * // later: tools.stop();
29
29
  * ```
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@
23
23
  * import { instrumentAgent, instrumentStream } from "@introspection-sdk/introspection-pi";
24
24
  *
25
25
  * // Or compose the pieces yourself:
26
- * agent.streamFn = instrumentStream(agent.streamFn, { tracer, meta });
26
+ * agent.streamFunction = instrumentStream(agent.streamFunction, { tracer, meta });
27
27
  * const tools = instrumentAgent(agent, { tracer, meta });
28
28
  * // later: tools.stop();
29
29
  * ```
@@ -59,10 +59,10 @@ export interface InstrumentStreamOptions {
59
59
  * Wrap a {@link StreamFn} to emit `chat {model}` spans (CLIENT kind — the
60
60
  * model runs in a remote process).
61
61
  *
62
- * Reassign `agent.streamFn` with the result:
62
+ * Reassign `agent.streamFunction` with the result:
63
63
  *
64
64
  * ```ts
65
- * agent.streamFn = instrumentStream(agent.streamFn, { tracer, meta });
65
+ * agent.streamFunction = instrumentStream(agent.streamFunction, { tracer, meta });
66
66
  * ```
67
67
  *
68
68
  * The wrapper preserves the {@link StreamFn} contract: errors thrown by the
@@ -12,10 +12,10 @@ import { genAiMetrics } from "./metrics.js";
12
12
  * Wrap a {@link StreamFn} to emit `chat {model}` spans (CLIENT kind — the
13
13
  * model runs in a remote process).
14
14
  *
15
- * Reassign `agent.streamFn` with the result:
15
+ * Reassign `agent.streamFunction` with the result:
16
16
  *
17
17
  * ```ts
18
- * agent.streamFn = instrumentStream(agent.streamFn, { tracer, meta });
18
+ * agent.streamFunction = instrumentStream(agent.streamFunction, { tracer, meta });
19
19
  * ```
20
20
  *
21
21
  * The wrapper preserves the {@link StreamFn} contract: errors thrown by the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@introspection-sdk/introspection-pi",
3
- "version": "0.13.0",
3
+ "version": "0.15.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Introspection observability extension for the Pi Agent SDK — OTEL GenAI semantic-convention spans for chat completions and tool execution",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "@opentelemetry/api": "^1.9.1",
20
- "@introspection-sdk/types": "0.13.0"
20
+ "@introspection-sdk/types": "0.15.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@earendil-works/pi-agent-core": ">=0.75.0",
@@ -32,13 +32,13 @@
32
32
  }
33
33
  },
34
34
  "devDependencies": {
35
- "@earendil-works/pi-agent-core": "^0.80.10",
36
- "@earendil-works/pi-ai": "^0.80.10",
35
+ "@earendil-works/pi-agent-core": "^0.82.1",
36
+ "@earendil-works/pi-ai": "^0.82.1",
37
37
  "@types/node": "^22.20.1",
38
38
  "eslint": "^9.39.5",
39
39
  "typescript": "5.9.3",
40
- "@repo/eslint-config": "0.0.0",
41
- "@repo/typescript-config": "0.0.0"
40
+ "@repo/typescript-config": "0.0.0",
41
+ "@repo/eslint-config": "0.0.0"
42
42
  },
43
43
  "engines": {
44
44
  "node": ">=22"