flypod 0.1.1 → 0.4.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.
@@ -693,9 +693,12 @@ async function deploySite(opts) {
693
693
  const handle = opts.handle ?? ((request) => fetch(request));
694
694
  const baseUrl = opts.baseUrl ?? "https://flypod.dev";
695
695
  const zip = zipSync(opts.files);
696
+ const headers = { "content-type": "application/zip" };
697
+ if (opts.apiKey)
698
+ headers.authorization = `Bearer ${opts.apiKey}`;
696
699
  const res = await handle(new Request(`${baseUrl}/sites`, {
697
700
  method: "POST",
698
- headers: { "content-type": "application/zip" },
701
+ headers,
699
702
  body: zip
700
703
  }));
701
704
  if (!res.ok)
@@ -703,4 +706,4 @@ async function deploySite(opts) {
703
706
  return await res.json();
704
707
  }
705
708
 
706
- export { BUILD_DIR_CANDIDATES, resolveDeployDir, collectDist, deploySite };
709
+ export { zipSync, BUILD_DIR_CANDIDATES, resolveDeployDir, collectDist, deploySite };
package/dist/src/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  collectDist,
4
4
  deploySite,
5
5
  resolveDeployDir
6
- } from "../cli-w8brx6zh.js";
6
+ } from "../cli-ynzcc4xy.js";
7
7
  export {
8
8
  resolveDeployDir,
9
9
  deploySite,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flypod",
3
- "version": "0.1.1",
4
- "description": "Zero-auth, agent-native deploy primitive — drop files, get a URL back",
3
+ "version": "0.4.0",
4
+ "description": "Zero-auth deploy primitive. Turns any folder into a live URL in one command. For AI agents and humans.",
5
5
  "module": "src/cli.ts",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -33,6 +33,7 @@
33
33
  ],
34
34
  "scripts": {
35
35
  "build": "rm -rf dist && bun build src/cli.ts bin/deploy.ts --outdir dist --target node --splitting",
36
+ "prepublishOnly": "bun run build",
36
37
  "test": "bun test",
37
38
  "typecheck": "tsc --noEmit",
38
39
  "deploy": "wrangler deploy",
@@ -44,7 +45,8 @@
44
45
  "devDependencies": {
45
46
  "@libsql/client": "^0.17.3",
46
47
  "@types/bun": "latest",
47
- "better-auth": "^1.6.14",
48
+ "better-auth": "1.6.14",
49
+ "drizzle-orm": "^0.45.2",
48
50
  "hono": "^4.12.25",
49
51
  "marked": "^18.0.5",
50
52
  "playwright": "^1.60.0",