@poncho-ai/harness 0.51.0 → 0.51.1

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/harness@0.51.0 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
2
+ > @poncho-ai/harness@0.51.1 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
3
3
  > node scripts/embed-docs.js && tsup src/index.ts --format esm --dts
4
4
 
5
5
  [embed-docs] Generated poncho-docs.ts with 4 topics
@@ -8,9 +8,9 @@
8
8
  CLI tsup v8.5.1
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
- ESM dist/index.js 535.65 KB
11
+ ESM dist/index.js 535.75 KB
12
12
  ESM dist/isolate-F2PPSUL6.js 53.82 KB
13
- ESM ⚡️ Build success in 264ms
13
+ ESM ⚡️ Build success in 234ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 7640ms
16
- DTS dist/index.d.ts 91.35 KB
15
+ DTS ⚡️ Build success in 7701ms
16
+ DTS dist/index.d.ts 91.75 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @poncho-ai/harness
2
2
 
3
+ ## 0.51.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3c72a7f`](https://github.com/cesr/poncho-ai/commit/3c72a7f0861dbe2c623931e3a08e1a89a14554b1) Thanks [@cesr](https://github.com/cesr)! - harness: forward `suppressTelemetry` through `runConversationTurn` and `continueFromToolResult`.
8
+
9
+ `RunConversationTurnOpts` and `continueFromToolResult`'s input now carry `suppressTelemetry`, passed into the run input (alongside the existing `disablePromptCache` passthrough). Hosts driving turns through these helpers (rather than calling `runWithTelemetry` directly) can now suppress telemetry per turn and per approval-resume — the missing piece for serving telemetry-off (incognito) turns and their continuations from a single shared harness.
10
+
3
11
  ## 0.51.0
4
12
 
5
13
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -1450,6 +1450,9 @@ declare class AgentHarness {
1450
1450
  tenantId?: string;
1451
1451
  parameters?: Record<string, unknown>;
1452
1452
  abortSignal?: AbortSignal;
1453
+ /** Emit no telemetry for the continuation run (e.g. resuming an
1454
+ * incognito turn after an approval). */
1455
+ suppressTelemetry?: boolean;
1453
1456
  }): AsyncGenerator<AgentEvent>;
1454
1457
  runToCompletion(input: RunInput): Promise<HarnessRunOutput>;
1455
1458
  }
@@ -2162,6 +2165,12 @@ interface RunConversationTurnOpts {
2162
2165
  * harness skips the Anthropic cache write.
2163
2166
  */
2164
2167
  disablePromptCache?: boolean;
2168
+ /**
2169
+ * Forwarded to `RunInput.suppressTelemetry`. Set true to emit no telemetry
2170
+ * for this run (e.g. an incognito / telemetry-off turn) even on a harness
2171
+ * built with an OTLP exporter attached.
2172
+ */
2173
+ suppressTelemetry?: boolean;
2165
2174
  /** Per-event hook — called for every AgentEvent yielded by the run, in order. */
2166
2175
  onEvent?: (event: AgentEvent) => void | Promise<void>;
2167
2176
  }
package/dist/index.js CHANGED
@@ -11610,7 +11610,8 @@ ${this.skillFingerprint}`;
11610
11610
  conversationId: input.conversationId,
11611
11611
  tenantId: input.tenantId,
11612
11612
  parameters: input.parameters,
11613
- abortSignal: input.abortSignal
11613
+ abortSignal: input.abortSignal,
11614
+ suppressTelemetry: input.suppressTelemetry
11614
11615
  });
11615
11616
  }
11616
11617
  async runToCompletion(input) {
@@ -13807,7 +13808,8 @@ var runConversationTurn = async (opts) => {
13807
13808
  messages: harnessMessages,
13808
13809
  files: opts.files && opts.files.length > 0 ? opts.files : void 0,
13809
13810
  abortSignal: opts.abortSignal,
13810
- disablePromptCache: opts.disablePromptCache
13811
+ disablePromptCache: opts.disablePromptCache,
13812
+ suppressTelemetry: opts.suppressTelemetry
13811
13813
  },
13812
13814
  initialContextTokens: conversation.contextTokens ?? 0,
13813
13815
  initialContextWindow: conversation.contextWindow ?? 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/harness",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "Agent execution runtime - conversation loop, tool dispatch, streaming",
5
5
  "repository": {
6
6
  "type": "git",
package/src/harness.ts CHANGED
@@ -3825,6 +3825,9 @@ Code is wrapped in an async IIFE — use \`return\` to return a value to the too
3825
3825
  tenantId?: string;
3826
3826
  parameters?: Record<string, unknown>;
3827
3827
  abortSignal?: AbortSignal;
3828
+ /** Emit no telemetry for the continuation run (e.g. resuming an
3829
+ * incognito turn after an approval). */
3830
+ suppressTelemetry?: boolean;
3828
3831
  }): AsyncGenerator<AgentEvent> {
3829
3832
  const messages = [...input.messages];
3830
3833
  const lastMsg = messages[messages.length - 1];
@@ -3883,6 +3886,7 @@ Code is wrapped in an async IIFE — use \`return\` to return a value to the too
3883
3886
  tenantId: input.tenantId,
3884
3887
  parameters: input.parameters,
3885
3888
  abortSignal: input.abortSignal,
3889
+ suppressTelemetry: input.suppressTelemetry,
3886
3890
  });
3887
3891
  }
3888
3892
 
@@ -68,6 +68,12 @@ export interface RunConversationTurnOpts {
68
68
  * harness skips the Anthropic cache write.
69
69
  */
70
70
  disablePromptCache?: boolean;
71
+ /**
72
+ * Forwarded to `RunInput.suppressTelemetry`. Set true to emit no telemetry
73
+ * for this run (e.g. an incognito / telemetry-off turn) even on a harness
74
+ * built with an OTLP exporter attached.
75
+ */
76
+ suppressTelemetry?: boolean;
71
77
  /** Per-event hook — called for every AgentEvent yielded by the run, in order. */
72
78
  onEvent?: (event: AgentEvent) => void | Promise<void>;
73
79
  }
@@ -210,6 +216,7 @@ export const runConversationTurn = async (
210
216
  files: opts.files && opts.files.length > 0 ? opts.files : undefined,
211
217
  abortSignal: opts.abortSignal,
212
218
  disablePromptCache: opts.disablePromptCache,
219
+ suppressTelemetry: opts.suppressTelemetry,
213
220
  },
214
221
  initialContextTokens: conversation.contextTokens ?? 0,
215
222
  initialContextWindow: conversation.contextWindow ?? 0,