flypod 0.25.5 → 0.26.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.
package/README.md CHANGED
@@ -495,7 +495,9 @@ found, or the path given does not exist), `no_files`, `no_site` (with a
495
495
  and the largest files), `blocked`, `challenge_required`, `rate_limited`,
496
496
  `quota_exceeded` (a free-plan limit is spent: `limit` says which, one of
497
497
  `deploys_per_month`, `site_updates_per_hour` or `storage`;
498
- `resets_at` when it comes back; exit 1, because retrying fails until then),
498
+ `resets_at` when it comes back; `upgrade_url`, when the server sells flypod
499
+ Pro, is a page where a person pays to raise it; exit 1, because retrying fails
500
+ until then),
499
501
  `server_error` (a 5xx; `flypod update` has already retried it once, since an
500
502
  update is safe to repeat, and an error from flypod itself carries `request_id`
501
503
  to quote), `network` (the server could not be reached, or a proxy or
@@ -588,6 +590,7 @@ account page.
588
590
  | `configure_timeline` | Show or hide the History chip on a site's pages |
589
591
  | `list_sites`, `rename_site`, `delete_site` | The sites on your account |
590
592
  | `keep_site` | Attach a temporary site to your account so it no longer expires |
593
+ | `upgrade_plan` | A link to pay for flypod Pro when a free-plan limit is spent (calling it charges nothing) |
591
594
  | `configure_comments`, `list_comments`, `get_comment_thread` | Turn comments on or off; read threads and the moderation queue |
592
595
  | `post_comment`, `reply_to_comment`, `update_comment_thread`, `delete_comment_thread` | Comment, reply, resolve, reopen, approve, reject, delete |
593
596
 
@@ -47,7 +47,7 @@ import {
47
47
  unauthorizedFor,
48
48
  unexpectedError,
49
49
  uploadLimitsFor
50
- } from "../cli-dy1zwrmk.js";
50
+ } from "../cli-2szkt15c.js";
51
51
 
52
52
  // bin/deploy.ts
53
53
  import { readFile as readFile4, stat as stat4 } from "node:fs/promises";
@@ -388,7 +388,8 @@ async function readServerMessage(res) {
388
388
  ...typeof body.fix === "string" && body.fix ? { fix: body.fix } : {},
389
389
  ...typeof body.limit === "string" ? { limit: body.limit } : {},
390
390
  ...typeof body.request_id === "string" && body.request_id ? { requestId: body.request_id } : {},
391
- ...typeof body.resets_at === "string" ? { resetsAt: body.resets_at } : {}
391
+ ...typeof body.resets_at === "string" ? { resetsAt: body.resets_at } : {},
392
+ ...typeof body.upgrade_url === "string" && body.upgrade_url.startsWith("https://") ? { upgradeUrl: body.upgrade_url } : {}
392
393
  };
393
394
  } catch {
394
395
  const cfError = cloudflareErrorNumber(text);
@@ -428,10 +429,11 @@ function classifyParsed(res, said, ctx) {
428
429
  ...base,
429
430
  code: "quota_exceeded",
430
431
  error: message,
431
- fix: "See https://flypod.dev/limits for the free plan's limits.",
432
+ fix: said.upgradeUrl ? `Show the person ${said.upgradeUrl} to upgrade to flypod Pro, or wait for the reset. Limits: https://flypod.dev/limits` : "See https://flypod.dev/limits for the free plan's limits.",
432
433
  extra: {
433
434
  ...said.limit ? { limit: said.limit } : {},
434
- ...said.resetsAt ? { resets_at: said.resetsAt } : {}
435
+ ...said.resetsAt ? { resets_at: said.resetsAt } : {},
436
+ ...said.upgradeUrl ? { upgrade_url: said.upgradeUrl } : {}
435
437
  }
436
438
  };
437
439
  }
@@ -722,7 +724,10 @@ spends the month's deploys. Batch your changes and deploy when they are done.
722
724
  A spent limit is \`quota_exceeded\` (exit 1). Do not retry it: tell the human
723
725
  which limit (\`limit\`) and when it resets (\`resets_at\`). For
724
726
  \`limit: "storage"\` there is no reset date: suggest smaller images or video,
725
- or deleting sites they no longer need at flypod.dev/account.
727
+ or deleting sites they no longer need at flypod.dev/account. When the error
728
+ carries \`upgrade_url\`, also show the human that link: flypod Pro raises the
729
+ limit, they pay on that page themselves (about 30 seconds), and then you run
730
+ the same command again. Never try to pay for them.
726
731
 
727
732
  ## Typical loop
728
733
 
@@ -919,7 +924,8 @@ step when there is one; \`status\` is the HTTP status when a server answered. Co
919
924
 
920
925
  \`rate_limited\` means wait a minute and retry. \`quota_exceeded\` is different: a
921
926
  monthly free-plan limit is spent, and the same command fails until \`resets_at\`.
922
- Do not retry it; tell the human the \`limit\` and the date.
927
+ Do not retry it; tell the human the \`limit\` and the date, and the
928
+ \`upgrade_url\` when there is one.
923
929
 
924
930
  \`flypod update\` has already retried a \`server_error\` or \`network\` failure once
925
931
  before reporting it, so do not loop on it: wait a minute before one more try.
@@ -68,6 +68,8 @@ export declare function readServerMessage(res: Response): Promise<{
68
68
  cfError?: number;
69
69
  /** When a spent quota comes back (ISO 8601), from a `quota_exceeded` answer. */
70
70
  resetsAt?: string;
71
+ /** Where to buy flypod Pro, from a `quota_exceeded` answer of a server that sells it. */
72
+ upgradeUrl?: string;
71
73
  }>;
72
74
  /**
73
75
  * The number on an error page Cloudflare wrote itself: `error code: 1102` (the
package/dist/src/cli.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  collectFiles,
8
8
  deploySite,
9
9
  resolveDeployDir
10
- } from "../cli-dy1zwrmk.js";
10
+ } from "../cli-2szkt15c.js";
11
11
  export {
12
12
  BUILD_DIR_CANDIDATES,
13
13
  DEFAULT_IGNORES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flypod",
3
- "version": "0.25.5",
3
+ "version": "0.26.0",
4
4
  "description": "Zero-auth deploy primitive. Turns any folder into a live URL in one command. For AI agents and humans.",
5
5
  "module": "./dist/src/cli.js",
6
6
  "types": "./dist/src/cli.d.ts",