@poncho-ai/cli 0.21.1 → 0.21.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/cli@0.21.1 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.21.3 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
3
3
  > tsup src/index.ts src/cli.ts --format esm --dts
4
4
 
5
5
  CLI Building entry: src/cli.ts, src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  ESM dist/cli.js 94.00 B
11
11
  ESM dist/index.js 857.00 B
12
- ESM dist/run-interactive-ink-H55INI7H.js 55.30 KB
13
- ESM dist/chunk-54WK2ATG.js 384.68 KB
14
- ESM ⚡️ Build success in 57ms
12
+ ESM dist/run-interactive-ink-CXH6FTAO.js 55.30 KB
13
+ ESM dist/chunk-QF6XFAQX.js 384.75 KB
14
+ ESM ⚡️ Build success in 60ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3791ms
16
+ DTS ⚡️ Build success in 3774ms
17
17
  DTS dist/cli.d.ts 20.00 B
18
18
  DTS dist/index.d.ts 3.59 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @poncho-ai/cli
2
2
 
3
+ ## 0.21.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`db92933`](https://github.com/cesr/poncho-ai/commit/db92933273ba490ad4b758bfcf0d6b26c64735d0) Thanks [@cesr](https://github.com/cesr)! - Fall back to polling after approval when SSE stream ends immediately (Vercel).
8
+
9
+ ## 0.21.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [`d06eb30`](https://github.com/cesr/poncho-ai/commit/d06eb30d896e30232b8667a93e28994ac71fedf0) Thanks [@cesr](https://github.com/cesr)! - Use `waitUntil` for messaging webhook route handlers on Vercel so the function stays alive for the full email processing after responding with 200.
14
+
3
15
  ## 0.21.1
4
16
 
5
17
  ### Patch Changes
@@ -4040,11 +4040,11 @@ var getWebUiClientScript = (markedSource2) => `
4040
4040
  renderMessages(state.activeMessages, state.isStreaming);
4041
4041
  loadConversations();
4042
4042
  if (!wasStreaming && state.activeConversationId) {
4043
- await streamConversationEvents(state.activeConversationId, { liveOnly: true });
4044
- }
4045
- if (!wasStreaming) {
4046
- setStreaming(false);
4047
- renderMessages(state.activeMessages, false);
4043
+ const cid = state.activeConversationId;
4044
+ await streamConversationEvents(cid, { liveOnly: true });
4045
+ if (state.activeConversationId === cid) {
4046
+ pollUntilRunIdle(cid);
4047
+ }
4048
4048
  }
4049
4049
  return;
4050
4050
  }
@@ -4071,11 +4071,11 @@ var getWebUiClientScript = (markedSource2) => `
4071
4071
  renderMessages(state.activeMessages, state.isStreaming);
4072
4072
  loadConversations();
4073
4073
  if (!wasStreaming && state.activeConversationId) {
4074
- await streamConversationEvents(state.activeConversationId, { liveOnly: true });
4075
- }
4076
- if (!wasStreaming) {
4077
- setStreaming(false);
4078
- renderMessages(state.activeMessages, false);
4074
+ const cid = state.activeConversationId;
4075
+ await streamConversationEvents(cid, { liveOnly: true });
4076
+ if (state.activeConversationId === cid) {
4077
+ pollUntilRunIdle(cid);
4078
+ }
4079
4079
  }
4080
4080
  });
4081
4081
 
@@ -8294,7 +8294,9 @@ var createRequestHandler = async (options) => {
8294
8294
  if (messagingByMethod) {
8295
8295
  const routeHandler = messagingByMethod.get(request.method ?? "");
8296
8296
  if (routeHandler) {
8297
- await routeHandler(request, response);
8297
+ const work = routeHandler(request, response);
8298
+ if (waitUntilHook) waitUntilHook(work);
8299
+ await work;
8298
8300
  return;
8299
8301
  }
8300
8302
  }
@@ -9696,7 +9698,7 @@ var runInteractive = async (workingDir, params) => {
9696
9698
  await harness.initialize();
9697
9699
  const identity = await ensureAgentIdentity2(workingDir);
9698
9700
  try {
9699
- const { runInteractiveInk } = await import("./run-interactive-ink-H55INI7H.js");
9701
+ const { runInteractiveInk } = await import("./run-interactive-ink-CXH6FTAO.js");
9700
9702
  await runInteractiveInk({
9701
9703
  harness,
9702
9704
  params,
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  main
4
- } from "./chunk-54WK2ATG.js";
4
+ } from "./chunk-QF6XFAQX.js";
5
5
 
6
6
  // src/cli.ts
7
7
  void main();
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  runTests,
24
24
  startDevServer,
25
25
  updateAgentGuidance
26
- } from "./chunk-54WK2ATG.js";
26
+ } from "./chunk-QF6XFAQX.js";
27
27
  export {
28
28
  addSkill,
29
29
  buildCli,
@@ -2,7 +2,7 @@ import {
2
2
  consumeFirstRunIntro,
3
3
  inferConversationTitle,
4
4
  resolveHarnessEnvironment
5
- } from "./chunk-54WK2ATG.js";
5
+ } from "./chunk-QF6XFAQX.js";
6
6
 
7
7
  // src/run-interactive-ink.ts
8
8
  import * as readline from "readline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/cli",
3
- "version": "0.21.1",
3
+ "version": "0.21.3",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -2520,7 +2520,9 @@ export const createRequestHandler = async (options?: {
2520
2520
  if (messagingByMethod) {
2521
2521
  const routeHandler = messagingByMethod.get(request.method ?? "");
2522
2522
  if (routeHandler) {
2523
- await routeHandler(request, response);
2523
+ const work = routeHandler(request, response);
2524
+ if (waitUntilHook) waitUntilHook(work);
2525
+ await work;
2524
2526
  return;
2525
2527
  }
2526
2528
  }
@@ -2509,11 +2509,11 @@ export const getWebUiClientScript = (markedSource: string): string => `
2509
2509
  renderMessages(state.activeMessages, state.isStreaming);
2510
2510
  loadConversations();
2511
2511
  if (!wasStreaming && state.activeConversationId) {
2512
- await streamConversationEvents(state.activeConversationId, { liveOnly: true });
2513
- }
2514
- if (!wasStreaming) {
2515
- setStreaming(false);
2516
- renderMessages(state.activeMessages, false);
2512
+ const cid = state.activeConversationId;
2513
+ await streamConversationEvents(cid, { liveOnly: true });
2514
+ if (state.activeConversationId === cid) {
2515
+ pollUntilRunIdle(cid);
2516
+ }
2517
2517
  }
2518
2518
  return;
2519
2519
  }
@@ -2540,11 +2540,11 @@ export const getWebUiClientScript = (markedSource: string): string => `
2540
2540
  renderMessages(state.activeMessages, state.isStreaming);
2541
2541
  loadConversations();
2542
2542
  if (!wasStreaming && state.activeConversationId) {
2543
- await streamConversationEvents(state.activeConversationId, { liveOnly: true });
2544
- }
2545
- if (!wasStreaming) {
2546
- setStreaming(false);
2547
- renderMessages(state.activeMessages, false);
2543
+ const cid = state.activeConversationId;
2544
+ await streamConversationEvents(cid, { liveOnly: true });
2545
+ if (state.activeConversationId === cid) {
2546
+ pollUntilRunIdle(cid);
2547
+ }
2548
2548
  }
2549
2549
  });
2550
2550