@poncho-ai/cli 0.20.3 → 0.21.0

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.20.3 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.21.0 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-JJDTHPM5.js 55.30 KB
12
11
  ESM dist/index.js 857.00 B
13
- ESM dist/chunk-F4SLLHSH.js 384.50 KB
14
- ESM ⚡️ Build success in 50ms
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
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3455ms
16
+ DTS ⚡️ Build success in 3701ms
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.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`c5d94c5`](https://github.com/cesr/poncho-ai/commit/c5d94c5854081ac23e91f7104047354ad1a415ef) Thanks [@cesr](https://github.com/cesr)! - Automatically add `@vercel/functions` to project dependencies when running `poncho build vercel`. This ensures `waitUntil` is available for keeping serverless functions alive during webhook processing and approval resume.
8
+
3
9
  ## 0.20.3
4
10
 
5
11
  ### Patch Changes
@@ -6862,7 +6862,7 @@ var UPLOAD_PROVIDER_DEPS = {
6862
6862
  { name: "@aws-sdk/s3-request-presigner", fallback: "^3.700.0" }
6863
6863
  ]
6864
6864
  };
6865
- var ensureRuntimeCliDependency = async (projectDir, cliVersion, config) => {
6865
+ var ensureRuntimeCliDependency = async (projectDir, cliVersion, config, target) => {
6866
6866
  const packageJsonPath = resolve3(projectDir, "package.json");
6867
6867
  const content = await readFile3(packageJsonPath, "utf8");
6868
6868
  const parsed = JSON.parse(content);
@@ -6886,6 +6886,10 @@ var ensureRuntimeCliDependency = async (projectDir, cliVersion, config) => {
6886
6886
  }
6887
6887
  }
6888
6888
  }
6889
+ if (target === "vercel" && !dependencies["@vercel/functions"]) {
6890
+ dependencies["@vercel/functions"] = "^1.0.0";
6891
+ addedDeps.push("@vercel/functions");
6892
+ }
6889
6893
  parsed.dependencies = dependencies;
6890
6894
  await writeFile3(packageJsonPath, `${JSON.stringify(parsed, null, 2)}
6891
6895
  `, "utf8");
@@ -7094,7 +7098,8 @@ CMD ["node","server.js"]
7094
7098
  const { paths: packagePaths, addedDeps } = await ensureRuntimeCliDependency(
7095
7099
  projectDir,
7096
7100
  cliVersion,
7097
- config
7101
+ config,
7102
+ target
7098
7103
  );
7099
7104
  const depNote = addedDeps.length > 0 ? ` (added ${addedDeps.join(", ")})` : "";
7100
7105
  for (const p of packagePaths) {
@@ -9691,7 +9696,7 @@ var runInteractive = async (workingDir, params) => {
9691
9696
  await harness.initialize();
9692
9697
  const identity = await ensureAgentIdentity2(workingDir);
9693
9698
  try {
9694
- const { runInteractiveInk } = await import("./run-interactive-ink-JJDTHPM5.js");
9699
+ const { runInteractiveInk } = await import("./run-interactive-ink-H55INI7H.js");
9695
9700
  await runInteractiveInk({
9696
9701
  harness,
9697
9702
  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-F4SLLHSH.js";
4
+ } from "./chunk-54WK2ATG.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-F4SLLHSH.js";
26
+ } from "./chunk-54WK2ATG.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-F4SLLHSH.js";
5
+ } from "./chunk-54WK2ATG.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.20.3",
3
+ "version": "0.21.0",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,9 +27,9 @@
27
27
  "react": "^19.2.4",
28
28
  "react-devtools-core": "^6.1.5",
29
29
  "yaml": "^2.8.1",
30
- "@poncho-ai/sdk": "1.4.0",
31
30
  "@poncho-ai/messaging": "0.2.7",
32
- "@poncho-ai/harness": "0.20.0"
31
+ "@poncho-ai/harness": "0.20.0",
32
+ "@poncho-ai/sdk": "1.4.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/busboy": "^1.5.4",
package/src/index.ts CHANGED
@@ -889,6 +889,7 @@ const ensureRuntimeCliDependency = async (
889
889
  projectDir: string,
890
890
  cliVersion: string,
891
891
  config?: PonchoConfig,
892
+ target?: string,
892
893
  ): Promise<{ paths: string[]; addedDeps: string[] }> => {
893
894
  const packageJsonPath = resolve(projectDir, "package.json");
894
895
  const content = await readFile(packageJsonPath, "utf8");
@@ -922,6 +923,11 @@ const ensureRuntimeCliDependency = async (
922
923
  }
923
924
  }
924
925
 
926
+ if (target === "vercel" && !dependencies["@vercel/functions"]) {
927
+ dependencies["@vercel/functions"] = "^1.0.0";
928
+ addedDeps.push("@vercel/functions");
929
+ }
930
+
925
931
  parsed.dependencies = dependencies;
926
932
  await writeFile(packageJsonPath, `${JSON.stringify(parsed, null, 2)}\n`, "utf8");
927
933
  return { paths: [relative(projectDir, packageJsonPath)], addedDeps };
@@ -1137,6 +1143,7 @@ CMD ["node","server.js"]
1137
1143
  projectDir,
1138
1144
  cliVersion,
1139
1145
  config,
1146
+ target,
1140
1147
  );
1141
1148
  const depNote = addedDeps.length > 0 ? ` (added ${addedDeps.join(", ")})` : "";
1142
1149
  for (const p of packagePaths) {