@poncho-ai/cli 0.21.2 → 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.2 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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2022
9
9
  ESM Build start
10
10
  ESM dist/cli.js 94.00 B
11
- ESM dist/run-interactive-ink-HHKLM4UO.js 55.30 KB
12
11
  ESM dist/index.js 857.00 B
13
- ESM dist/chunk-INJYXQFL.js 384.75 KB
14
- ESM ⚡️ Build success in 59ms
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 3680ms
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,11 @@
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
+
3
9
  ## 0.21.2
4
10
 
5
11
  ### 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
 
@@ -9698,7 +9698,7 @@ var runInteractive = async (workingDir, params) => {
9698
9698
  await harness.initialize();
9699
9699
  const identity = await ensureAgentIdentity2(workingDir);
9700
9700
  try {
9701
- const { runInteractiveInk } = await import("./run-interactive-ink-HHKLM4UO.js");
9701
+ const { runInteractiveInk } = await import("./run-interactive-ink-CXH6FTAO.js");
9702
9702
  await runInteractiveInk({
9703
9703
  harness,
9704
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-INJYXQFL.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-INJYXQFL.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-INJYXQFL.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.2",
3
+ "version": "0.21.3",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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