@poncho-ai/harness 0.50.2 → 0.50.3

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.50.2 build /home/runner/work/poncho-ai/poncho-ai/packages/harness
2
+ > @poncho-ai/harness@0.50.3 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 530.79 KB
11
12
  ESM dist/isolate-BNQ6P3HI.js 51.41 KB
12
- ESM dist/index.js 530.76 KB
13
- ESM ⚡️ Build success in 181ms
13
+ ESM ⚡️ Build success in 229ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 5658ms
16
- DTS dist/index.d.ts 89.28 KB
15
+ DTS ⚡️ Build success in 7430ms
16
+ DTS dist/index.d.ts 89.60 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @poncho-ai/harness
2
2
 
3
+ ## 0.50.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`a67fb45`](https://github.com/cesr/poncho-ai/commit/a67fb45162823d832296ae9af137eb566d9f2f97) Thanks [@cesr](https://github.com/cesr)! - harness: forward `tenantId` through `continueFromToolResult`. Resumed runs (after an approval checkpoint) ran tools with `ctx.tenantId` undefined, so tenant-scoped stores (memory, VFS, todos) resolved the default `"__default__"` tenant instead of the caller's — surfacing as `memory_main_get` returning empty after an approval resume.
8
+
3
9
  ## 0.50.2
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1434,6 +1434,11 @@ declare class AgentHarness {
1434
1434
  error?: string;
1435
1435
  }>;
1436
1436
  conversationId?: string;
1437
+ /** Must be forwarded for the continuation run, otherwise tenant-scoped
1438
+ * tool stores (memory, VFS, todos) resolve the default "__default__"
1439
+ * tenant on resume instead of the caller's — e.g. memory_main_get
1440
+ * returns empty after an approval checkpoint. */
1441
+ tenantId?: string;
1437
1442
  parameters?: Record<string, unknown>;
1438
1443
  abortSignal?: AbortSignal;
1439
1444
  }): AsyncGenerator<AgentEvent>;
package/dist/index.js CHANGED
@@ -11568,6 +11568,7 @@ ${this.skillFingerprint}`;
11568
11568
  yield* this.runWithTelemetry({
11569
11569
  messages,
11570
11570
  conversationId: input.conversationId,
11571
+ tenantId: input.tenantId,
11571
11572
  parameters: input.parameters,
11572
11573
  abortSignal: input.abortSignal
11573
11574
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/harness",
3
- "version": "0.50.2",
3
+ "version": "0.50.3",
4
4
  "description": "Agent execution runtime - conversation loop, tool dispatch, streaming",
5
5
  "repository": {
6
6
  "type": "git",
package/src/harness.ts CHANGED
@@ -3727,6 +3727,11 @@ Code is wrapped in an async IIFE — use \`return\` to return a value to the too
3727
3727
  messages: Message[];
3728
3728
  toolResults: Array<{ callId: string; toolName: string; result?: unknown; error?: string }>;
3729
3729
  conversationId?: string;
3730
+ /** Must be forwarded for the continuation run, otherwise tenant-scoped
3731
+ * tool stores (memory, VFS, todos) resolve the default "__default__"
3732
+ * tenant on resume instead of the caller's — e.g. memory_main_get
3733
+ * returns empty after an approval checkpoint. */
3734
+ tenantId?: string;
3730
3735
  parameters?: Record<string, unknown>;
3731
3736
  abortSignal?: AbortSignal;
3732
3737
  }): AsyncGenerator<AgentEvent> {
@@ -3784,6 +3789,7 @@ Code is wrapped in an async IIFE — use \`return\` to return a value to the too
3784
3789
  yield* this.runWithTelemetry({
3785
3790
  messages,
3786
3791
  conversationId: input.conversationId,
3792
+ tenantId: input.tenantId,
3787
3793
  parameters: input.parameters,
3788
3794
  abortSignal: input.abortSignal,
3789
3795
  });