@poncho-ai/cli 0.30.5 → 0.30.6

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.30.5 build /home/runner/work/poncho-ai/poncho-ai/packages/cli
2
+ > @poncho-ai/cli@0.30.6 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-KA5V5BSJ.js 56.86 KB
13
- ESM dist/chunk-V3H773RB.js 492.00 KB
14
- ESM ⚡️ Build success in 62ms
12
+ ESM dist/run-interactive-ink-OX4CI23D.js 56.86 KB
13
+ ESM dist/chunk-3QT2S6AJ.js 492.58 KB
14
+ ESM ⚡️ Build success in 65ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 4158ms
16
+ DTS ⚡️ Build success in 4618ms
17
17
  DTS dist/cli.d.ts 20.00 B
18
18
  DTS dist/index.d.ts 4.16 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @poncho-ai/cli
2
2
 
3
+ ## 0.30.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`56001f5`](https://github.com/cesr/poncho-ai/commit/56001f52f599f013a08e57e5de4891c02ca358d5) Thanks [@cesr](https://github.com/cesr)! - Warn at startup when CRON_SECRET is missing on Vercel with auth enabled and cron jobs configured
8
+
3
9
  ## 0.30.5
4
10
 
5
11
  ### Patch Changes
@@ -9827,6 +9827,13 @@ ${resultBody}`,
9827
9827
  "\n[poncho] Vercel Deployment Protection will block subagents and auto-continuation.\n Enable 'Protection Bypass for Automation' in your Vercel project settings:\n -> Project Settings > Deployment Protection > Protection Bypass for Automation\n The secret is auto-provisioned as VERCEL_AUTOMATION_BYPASS_SECRET.\n"
9828
9828
  );
9829
9829
  }
9830
+ const hasCronJobs = Object.keys(cronJobs).length > 0;
9831
+ const authTokenConfigured = !!process.env[config?.auth?.tokenEnv ?? "PONCHO_AUTH_TOKEN"] && (config?.auth?.required ?? false);
9832
+ if (process.env.VERCEL && hasCronJobs && authTokenConfigured && !process.env.CRON_SECRET) {
9833
+ console.warn(
9834
+ "\n[poncho] Cron jobs are configured but CRON_SECRET is not set.\n Vercel sends CRON_SECRET as a Bearer token when invoking cron endpoints.\n Set CRON_SECRET to the same value as PONCHO_AUTH_TOKEN in your Vercel env vars,\n otherwise cron invocations will be rejected with 401.\n"
9835
+ );
9836
+ }
9830
9837
  const selfFetchWithRetry = async (path, body, retries = 3) => {
9831
9838
  if (!selfBaseUrl) {
9832
9839
  console.error(`[poncho][self-fetch] Missing self base URL for ${path}`);
@@ -12186,7 +12193,7 @@ var runInteractive = async (workingDir, params) => {
12186
12193
  await harness.initialize();
12187
12194
  const identity = await ensureAgentIdentity2(workingDir);
12188
12195
  try {
12189
- const { runInteractiveInk } = await import("./run-interactive-ink-KA5V5BSJ.js");
12196
+ const { runInteractiveInk } = await import("./run-interactive-ink-OX4CI23D.js");
12190
12197
  await runInteractiveInk({
12191
12198
  harness,
12192
12199
  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-V3H773RB.js";
4
+ } from "./chunk-3QT2S6AJ.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-V3H773RB.js";
26
+ } from "./chunk-3QT2S6AJ.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-V3H773RB.js";
5
+ } from "./chunk-3QT2S6AJ.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.30.5",
3
+ "version": "0.30.6",
4
4
  "description": "CLI for building and deploying AI agents",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,8 +28,8 @@
28
28
  "react-devtools-core": "^6.1.5",
29
29
  "yaml": "^2.8.1",
30
30
  "@poncho-ai/harness": "0.28.3",
31
- "@poncho-ai/sdk": "1.6.1",
32
- "@poncho-ai/messaging": "0.7.2"
31
+ "@poncho-ai/messaging": "0.7.2",
32
+ "@poncho-ai/sdk": "1.6.1"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/busboy": "^1.5.4",
package/src/index.ts CHANGED
@@ -3083,6 +3083,16 @@ export const createRequestHandler = async (options?: {
3083
3083
  "\n The secret is auto-provisioned as VERCEL_AUTOMATION_BYPASS_SECRET.\n",
3084
3084
  );
3085
3085
  }
3086
+ const hasCronJobs = Object.keys(cronJobs).length > 0;
3087
+ const authTokenConfigured = !!(process.env[config?.auth?.tokenEnv ?? "PONCHO_AUTH_TOKEN"]) && (config?.auth?.required ?? false);
3088
+ if (process.env.VERCEL && hasCronJobs && authTokenConfigured && !process.env.CRON_SECRET) {
3089
+ console.warn(
3090
+ "\n[poncho] Cron jobs are configured but CRON_SECRET is not set." +
3091
+ "\n Vercel sends CRON_SECRET as a Bearer token when invoking cron endpoints." +
3092
+ "\n Set CRON_SECRET to the same value as PONCHO_AUTH_TOKEN in your Vercel env vars," +
3093
+ "\n otherwise cron invocations will be rejected with 401.\n",
3094
+ );
3095
+ }
3086
3096
 
3087
3097
  const selfFetchWithRetry = async (path: string, body?: Record<string, unknown>, retries = 3): Promise<Response | void> => {
3088
3098
  if (!selfBaseUrl) {