@poncho-ai/cli 0.25.0 → 0.25.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poncho-ai/cli",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
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.23.0",
31
- "@poncho-ai/sdk": "1.5.0",
32
- "@poncho-ai/messaging": "0.6.0"
31
+ "@poncho-ai/messaging": "0.6.0",
32
+ "@poncho-ai/sdk": "1.5.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@types/busboy": "^1.5.4",
package/src/index.ts CHANGED
@@ -75,7 +75,10 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
75
75
  const require = createRequire(import.meta.url);
76
76
 
77
77
  const writeJson = (response: ServerResponse, statusCode: number, payload: unknown) => {
78
- response.writeHead(statusCode, { "Content-Type": "application/json" });
78
+ response.writeHead(statusCode, {
79
+ "Content-Type": "application/json",
80
+ "Cache-Control": "private, no-cache, no-store, must-revalidate",
81
+ });
79
82
  response.end(JSON.stringify(payload));
80
83
  };
81
84
 
@@ -1120,6 +1123,14 @@ export default async function handler(req, res) {
1120
1123
  "{AGENT.md,poncho.config.js,skills/**,tests/**,node_modules/.pnpm/marked@*/node_modules/marked/lib/marked.umd.js}",
1121
1124
  },
1122
1125
  },
1126
+ headers: [
1127
+ {
1128
+ source: "/api/(.*)",
1129
+ headers: [
1130
+ { key: "Cache-Control", value: "private, no-cache, no-store, must-revalidate" },
1131
+ ],
1132
+ },
1133
+ ],
1123
1134
  routes: [{ src: "/(.*)", dest: "/api/index.mjs" }],
1124
1135
  };
1125
1136
  if (vercelCrons && vercelCrons.length > 0) {