@poncho-ai/sdk 1.12.0 → 1.14.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @poncho-ai/sdk@1.12.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
2
+ > @poncho-ai/sdk@1.14.0 build /home/runner/work/poncho-ai/poncho-ai/packages/sdk
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,5 +10,5 @@
10
10
  ESM dist/index.js 17.24 KB
11
11
  ESM ⚡️ Build success in 20ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 1257ms
14
- DTS dist/index.d.ts 29.41 KB
13
+ DTS ⚡️ Build success in 1320ms
14
+ DTS dist/index.d.ts 30.03 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @poncho-ai/sdk
2
2
 
3
+ ## 1.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`d8453b4`](https://github.com/cesr/poncho-ai/commit/d8453b4f2360a1734e448960fe52f6c450cdf842) Thanks [@cesr](https://github.com/cesr)! - harness: propagate `suppressTelemetry` to subagents.
8
+
9
+ A telemetry-off run (e.g. incognito) now suppresses telemetry for the subagents it spawns too, not just the parent turn. The parent run's `suppressTelemetry` is exposed on `ToolContext`, captured by `spawn_subagent` into the new `SubagentManager.spawn({ suppressTelemetry })` option, stored on the subagent conversation's `subagentMeta`, and read back by the orchestrator's `runSubagent` / continuation so the child run (and its re-runs) emit no `invoke_agent` / `execute_tool` / AI-SDK spans.
10
+
11
+ ## 1.13.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`773f113`](https://github.com/cesr/poncho-ai/commit/773f11309e2410d6c5e17af0fde17425953105f2) Thanks [@cesr](https://github.com/cesr)! - harness: add a per-run `suppressTelemetry` flag so one harness can serve both telemetry-on and telemetry-off runs.
16
+
17
+ Telemetry was effectively an instance-level property: whether the OTLP exporter is attached is decided at construction, so a host that wants telemetry-off runs (e.g. incognito) had to build and maintain a _second_ harness instance with no exporter — duplicating all per-harness provisioning (tool registration, subagent manager, etc.) and risking drift between the two.
18
+
19
+ `RunInput.suppressTelemetry` lets a single harness — built once, with the exporter attached — emit nothing for a given run: the `invoke_agent` root span, the `execute_tool` spans, and the AI-SDK spans are all gated on `!input.suppressTelemetry`. Hosts can now keep one harness per user and pass `suppressTelemetry: true` per run instead of routing to a parallel exporter-less instance.
20
+
3
21
  ## 1.12.0
4
22
 
5
23
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -715,6 +715,10 @@ interface ToolContext {
715
715
  conversationId?: string;
716
716
  /** The tenant ID when running in multi-tenant mode. */
717
717
  tenantId?: string;
718
+ /** Telemetry is suppressed for this run (e.g. an incognito turn). Tools
719
+ * that spawn further runs (subagents) propagate this so the child run
720
+ * emits no telemetry either. */
721
+ suppressTelemetry?: boolean;
718
722
  /** Virtual filesystem scoped to the current tenant. Available when VFS is enabled. */
719
723
  vfs?: VfsAccess;
720
724
  }
@@ -756,6 +760,14 @@ interface RunInput {
756
760
  disablePromptCache?: boolean;
757
761
  /** Scope this run to a specific tenant. */
758
762
  tenantId?: string;
763
+ /**
764
+ * When true, emit no telemetry for this run — no `invoke_agent` /
765
+ * `execute_tool` spans and no AI-SDK spans, even on a harness built with an
766
+ * OTLP exporter attached. Lets a single harness serve both telemetry-on and
767
+ * telemetry-off (e.g. incognito) runs, instead of needing a separate
768
+ * exporter-less harness instance per mode.
769
+ */
770
+ suppressTelemetry?: boolean;
759
771
  }
760
772
  interface TokenUsage {
761
773
  input: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/sdk",
3
- "version": "1.12.0",
3
+ "version": "1.14.0",
4
4
  "description": "Core types and utilities for building Poncho skills",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -78,6 +78,10 @@ export interface ToolContext {
78
78
  conversationId?: string;
79
79
  /** The tenant ID when running in multi-tenant mode. */
80
80
  tenantId?: string;
81
+ /** Telemetry is suppressed for this run (e.g. an incognito turn). Tools
82
+ * that spawn further runs (subagents) propagate this so the child run
83
+ * emits no telemetry either. */
84
+ suppressTelemetry?: boolean;
81
85
  /** Virtual filesystem scoped to the current tenant. Available when VFS is enabled. */
82
86
  vfs?: VfsAccess;
83
87
  }
@@ -137,6 +141,14 @@ export interface RunInput {
137
141
  disablePromptCache?: boolean;
138
142
  /** Scope this run to a specific tenant. */
139
143
  tenantId?: string;
144
+ /**
145
+ * When true, emit no telemetry for this run — no `invoke_agent` /
146
+ * `execute_tool` spans and no AI-SDK spans, even on a harness built with an
147
+ * OTLP exporter attached. Lets a single harness serve both telemetry-on and
148
+ * telemetry-off (e.g. incognito) runs, instead of needing a separate
149
+ * exporter-less harness instance per mode.
150
+ */
151
+ suppressTelemetry?: boolean;
140
152
  }
141
153
 
142
154
  export interface TokenUsage {