@poncho-ai/messaging 0.7.0 → 0.7.2

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/messaging@0.7.0 build /home/runner/work/poncho-ai/poncho-ai/packages/messaging
2
+ > @poncho-ai/messaging@0.7.2 build /home/runner/work/poncho-ai/poncho-ai/packages/messaging
3
3
  > tsup src/index.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -8,7 +8,7 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/index.js 51.09 KB
11
- ESM ⚡️ Build success in 73ms
11
+ ESM ⚡️ Build success in 59ms
12
12
  DTS Build start
13
- DTS ⚡️ Build success in 4701ms
13
+ DTS ⚡️ Build success in 4810ms
14
14
  DTS dist/index.d.ts 11.24 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @poncho-ai/messaging
2
2
 
3
+ ## 0.7.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`4d50ad9`](https://github.com/cesr/poncho-ai/commit/4d50ad970886c9d3635ec36a407514c91ce6a71a)]:
8
+ - @poncho-ai/sdk@1.6.1
9
+
10
+ ## 0.7.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [#42](https://github.com/cesr/poncho-ai/pull/42) [`e58a984`](https://github.com/cesr/poncho-ai/commit/e58a984efaa673b649318102bbf735fb4c2f9172) Thanks [@cesr](https://github.com/cesr)! - Add continuation model and fire-and-forget subagents
15
+
16
+ **Continuation model**: Agents no longer send a synthetic `"Continue"` user message between steps. Instead, the harness injects a transient signal when needed, and the full internal message chain is preserved across continuations so the LLM never loses context. `RunInput` gains `disableSoftDeadline` and `RunResult` gains `continuationMessages`.
17
+
18
+ **Fire-and-forget subagents**: Subagents now run asynchronously in the background. `spawn_subagent` returns immediately with a subagent ID; results are delivered back to the parent conversation as a callback once the subagent completes. Subagents cannot spawn their own subagents. The web UI shows results in a collapsible disclosure and reconnects the live event stream automatically when the parent agent resumes.
19
+
20
+ **Bug fixes**:
21
+ - Fixed a race condition where concurrent runs on the same harness instance could assign a subagent or browser tab to the wrong parent conversation (shared `_currentRunConversationId` field replaced with per-run `ToolContext.conversationId`).
22
+ - Fixed Upstash KV store silently dropping large values by switching from URL-path encoding to request body format for `SET`/`SETEX` commands.
23
+ - Fixed empty assistant content blocks causing Anthropic `text content blocks must be non-empty` errors.
24
+
25
+ **Client**: Added `getConversationStatus()` and `waitForSubagents` option on `sendMessage()`.
26
+
27
+ - Updated dependencies [[`e58a984`](https://github.com/cesr/poncho-ai/commit/e58a984efaa673b649318102bbf735fb4c2f9172)]:
28
+ - @poncho-ai/sdk@1.6.0
29
+
3
30
  ## 0.7.0
4
31
 
5
32
  ### Minor Changes
package/dist/index.d.ts CHANGED
@@ -71,7 +71,7 @@ interface AgentRunner {
71
71
  messages: Message[];
72
72
  }>;
73
73
  run(conversationId: string, input: {
74
- task: string;
74
+ task?: string;
75
75
  messages: Message[];
76
76
  files?: FileAttachment[];
77
77
  metadata?: {
package/dist/index.js CHANGED
@@ -87,7 +87,7 @@ ${message.text}`;
87
87
  if (result.continuation && continuationCount < MAX_CONTINUATIONS && (stepBudget <= 0 || totalSteps < stepBudget)) {
88
88
  continuationCount++;
89
89
  console.log(`[agent-bridge] continuation ${continuationCount}/${MAX_CONTINUATIONS} for ${conversationId}`);
90
- currentTask = "Continue";
90
+ currentTask = void 0;
91
91
  currentFiles = void 0;
92
92
  continue;
93
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/messaging",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "Messaging platform adapters for Poncho agents (Slack, Telegram, etc.)",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "dependencies": {
23
- "@poncho-ai/sdk": "1.5.0"
23
+ "@poncho-ai/sdk": "1.6.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "resend": ">=4.0.0"
package/src/bridge.ts CHANGED
@@ -79,7 +79,7 @@ export class AgentBridge {
79
79
  const subjectLine = message.subject ? `Subject: ${message.subject}` : "";
80
80
  const header = [senderLine, subjectLine].filter(Boolean).join("\n");
81
81
 
82
- let currentTask = `${header}\n\n${message.text}`;
82
+ let currentTask: string | undefined = `${header}\n\n${message.text}`;
83
83
  let currentFiles = message.files;
84
84
  let accumulatedResponse = "";
85
85
  let accumulatedFiles: FileAttachment[] = [];
@@ -122,7 +122,7 @@ export class AgentBridge {
122
122
  ) {
123
123
  continuationCount++;
124
124
  console.log(`[agent-bridge] continuation ${continuationCount}/${MAX_CONTINUATIONS} for ${conversationId}`);
125
- currentTask = "Continue";
125
+ currentTask = undefined;
126
126
  currentFiles = undefined;
127
127
  continue;
128
128
  }
package/src/types.ts CHANGED
@@ -117,7 +117,7 @@ export interface AgentRunner {
117
117
  run(
118
118
  conversationId: string,
119
119
  input: {
120
- task: string;
120
+ task?: string;
121
121
  messages: Message[];
122
122
  files?: FileAttachment[];
123
123
  metadata?: {