@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.
- package/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-V3H773RB.js → chunk-3QT2S6AJ.js} +8 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{run-interactive-ink-KA5V5BSJ.js → run-interactive-ink-OX4CI23D.js} +1 -1
- package/package.json +3 -3
- package/src/index.ts +10 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @poncho-ai/cli@0.30.
|
|
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
|
[34mCLI[39m Building entry: src/cli.ts, src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[32mESM[39m [1mdist/cli.js [22m[32m94.00 B[39m
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m857.00 B[39m
|
|
12
|
-
[32mESM[39m [1mdist/run-interactive-ink-
|
|
13
|
-
[32mESM[39m [1mdist/chunk-
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m [1mdist/run-interactive-ink-OX4CI23D.js [22m[32m56.86 KB[39m
|
|
13
|
+
[32mESM[39m [1mdist/chunk-3QT2S6AJ.js [22m[32m492.58 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 65ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 4618ms
|
|
17
17
|
[32mDTS[39m [1mdist/cli.d.ts [22m[32m20.00 B[39m
|
|
18
18
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m4.16 KB[39m
|
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-
|
|
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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@poncho-ai/cli",
|
|
3
|
-
"version": "0.30.
|
|
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/
|
|
32
|
-
"@poncho-ai/
|
|
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) {
|