@poncho-ai/cli 0.21.1 → 0.21.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/cli@0.21.1 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.21.2 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
11
12
  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
13
+ ESM dist/chunk-INJYXQFL.js 384.75 KB
14
+ ESM ⚡️ Build success in 59ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3791ms
16
+ DTS ⚡️ Build success in 3680ms
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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`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.
8
+
3
9
  ## 0.21.1
4
10
 
5
11
  ### Patch Changes
@@ -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-HHKLM4UO.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-INJYXQFL.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-INJYXQFL.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-INJYXQFL.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.2",
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
  }