@feltdb/feltkit 0.3.9 → 0.3.10
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/dist/cli/deploy.d.ts +3 -3
- package/dist/cli/deploy.js +56 -6
- package/dist/cli/deploy.js.map +1 -1
- package/dist/cli/fly.d.ts +20 -0
- package/dist/cli/fly.js +120 -0
- package/dist/cli/fly.js.map +1 -0
- package/dist/cli/main.js +85 -3
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/vercel.d.ts +1 -1
- package/dist/cli/vercel.js +3 -3
- package/dist/cli/vercel.js.map +1 -1
- package/dist/runtime/deployment.d.ts +3 -3
- package/dist/runtime/deployment.js +16 -4
- package/dist/runtime/deployment.js.map +1 -1
- package/dist/runtime/targets.d.ts +9 -5
- package/dist/runtime/targets.js +55 -3
- package/dist/runtime/targets.js.map +1 -1
- package/package.json +2 -2
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/feltkit-operations/SKILL.md +3 -2
package/dist/runtime/targets.js
CHANGED
|
@@ -24,7 +24,9 @@
|
|
|
24
24
|
import { FeltKitError } from "../errors.js";
|
|
25
25
|
export const PLATFORM_DATA = ["managed", "self-hosted"];
|
|
26
26
|
/** The targets that take --data. */
|
|
27
|
-
export const PLATFORM_TARGETS = ["vercel", "cloudflare"];
|
|
27
|
+
export const PLATFORM_TARGETS = ["vercel", "cloudflare", "fly"];
|
|
28
|
+
export const FLY_DATA = ["volume", "managed", "self-hosted"];
|
|
29
|
+
export const isDeploymentData = (value) => value === "volume" || isPlatformData(value);
|
|
28
30
|
/** @deprecated Use PLATFORM_DATA. */
|
|
29
31
|
export const VERCEL_DATA = PLATFORM_DATA;
|
|
30
32
|
const VERIFIER = {
|
|
@@ -206,14 +208,63 @@ function cloudflareContract(data) {
|
|
|
206
208
|
limits: CLOUDFLARE_SHARED.limits,
|
|
207
209
|
};
|
|
208
210
|
}
|
|
209
|
-
|
|
211
|
+
const FLY_SHARED = {
|
|
212
|
+
health: "GET /_feltkit/health: Fly's proxy checks it (fly.toml) before routing to a machine. `fly logs -a <app>` streams the output; `fly status -a <app>` lists the machines.",
|
|
213
|
+
rollback: "`fly releases -a <app> --image` lists the images; `fly deploy -a <app> --image <earlier image>` runs one again.",
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* The Fly.io target's contract. Fly runs the image on Machines and offers volumes, so the data can
|
|
217
|
+
* stay beside the app (a volume, one machine: the container target's contract) or be in FeltDB
|
|
218
|
+
* (Managed FeltDB or your server: the hosted or self-hosted contract, any number of machines).
|
|
219
|
+
*/
|
|
220
|
+
function flyContract(data) {
|
|
221
|
+
const volume = data === "volume";
|
|
222
|
+
const base = volume ? CONTAINER : data === "managed" ? HOSTED : SELF_HOSTED;
|
|
223
|
+
return {
|
|
224
|
+
id: "fly",
|
|
225
|
+
data,
|
|
226
|
+
title: volume ? "Fly.io; data on a Fly volume beside the app (one machine)" : data === "managed" ? "Fly.io; data in Managed FeltDB" : "Fly.io; data on a FeltDB server you operate",
|
|
227
|
+
storage: base.storage,
|
|
228
|
+
runtime: volume
|
|
229
|
+
? "one Fly Machine with the volume attached; it stays running (min_machines_running = 1), so jobs and schedules keep progressing"
|
|
230
|
+
: "Fly Machines that start on a request and stop when idle (auto_stop_machines); add machines with `fly scale count`",
|
|
231
|
+
state: volume ? "FeltDB on the Fly volume mounted at /data (/data/state)" : base.state,
|
|
232
|
+
// Production Studio's operator key is a secret on every variant: a volume keeps the state, but
|
|
233
|
+
// the image's own .feltkit/production is replaced on every deploy.
|
|
234
|
+
variables: [...base.variables.filter((v) => v.name !== OPERATOR_KEY.name), OPERATOR_KEY],
|
|
235
|
+
persistence: volume
|
|
236
|
+
? "FeltDB state and the keys kept beside it are on the Fly volume, which survives deploys and restarts. Fly snapshots volumes daily (kept 5 days by default). The machine's own disk holds nothing that must survive."
|
|
237
|
+
: base.persistence,
|
|
238
|
+
recovery: volume
|
|
239
|
+
? "Restore a volume snapshot (`fly volumes snapshots list <volume-id>`, then `fly volumes create <name> --snapshot-id <id>`) and attach it to the machine. One machine per volume: a second machine would open its own, empty, state."
|
|
240
|
+
: base.recovery.replace("container", "machine"),
|
|
241
|
+
identity: base.identity.replace("The container authenticates", "Every machine authenticates"),
|
|
242
|
+
provisioning: volume
|
|
243
|
+
? "`npx feltkit fly deploy` creates the Fly app and its volume the first time; the state is created on first start."
|
|
244
|
+
: `\`npx feltkit fly deploy\` creates the Fly app the first time. ${base.provisioning}`,
|
|
245
|
+
startupFailures: base.startupFailures,
|
|
246
|
+
health: FLY_SHARED.health,
|
|
247
|
+
upgrade: volume
|
|
248
|
+
? "Deploy again (`npx feltkit deploy --target fly`, then `npx feltkit fly deploy`). The machine stops, the new image starts on the same volume: a few seconds without service. FeltDB opens state earlier versions wrote."
|
|
249
|
+
: `Deploy again (\`npx feltkit deploy --target fly\`, then \`npx feltkit fly deploy\`); Fly replaces the machines one at a time.${data === "managed" ? " When feltdb.contract.json changed, publish it first (`npx feltdb publish --contract feltdb.contract.json`)." : ""}`,
|
|
250
|
+
rollback: FLY_SHARED.rollback + (volume ? " Back up the volume before an upgrade: state a newer version wrote may not open in an older one." : ""),
|
|
251
|
+
limits: volume
|
|
252
|
+
? ["one machine: a volume belongs to one machine, so the app does not scale out and is briefly down during a deploy", "the volume lives in one Fly region; its machine runs there"]
|
|
253
|
+
: ["jobs, schedules, and webhook retries run inside the app, so they progress only while a machine is running: with no traffic, machines stop and they wait (set min_machines_running = 1 to keep one)"],
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
/** A target's contract; `data` chooses where a Vercel, Cloudflare or Fly.io deployment's data is. */
|
|
210
257
|
export function targetContract(target, data) {
|
|
258
|
+
if (target === "fly")
|
|
259
|
+
return flyContract(data ?? "volume");
|
|
260
|
+
if (data === "volume")
|
|
261
|
+
throw new FeltKitError("INVALID_ARGUMENT", `--data volume applies to --target fly only: ${target === "vercel" || target === "cloudflare" ? `${target === "vercel" ? "Vercel" : "Cloudflare"} instances share no disk and lose theirs when they stop` : "use --target container for a volume"}.`);
|
|
211
262
|
if (target === "vercel")
|
|
212
263
|
return vercelContract(data ?? "managed");
|
|
213
264
|
if (target === "cloudflare")
|
|
214
265
|
return cloudflareContract(data ?? "managed");
|
|
215
266
|
if (data)
|
|
216
|
-
throw new FeltKitError("INVALID_ARGUMENT", `--data applies to --target vercel or
|
|
267
|
+
throw new FeltKitError("INVALID_ARGUMENT", `--data applies to --target vercel, cloudflare or fly only; the ${target} target always keeps its data in ${TARGETS[target].state}.`);
|
|
217
268
|
return TARGETS[target];
|
|
218
269
|
}
|
|
219
270
|
export const isPlatformData = (value) => typeof value === "string" && PLATFORM_DATA.includes(value);
|
|
@@ -225,6 +276,7 @@ export const TARGETS = {
|
|
|
225
276
|
"self-hosted": SELF_HOSTED,
|
|
226
277
|
vercel: vercelContract("managed"),
|
|
227
278
|
cloudflare: cloudflareContract("managed"),
|
|
279
|
+
fly: flyContract("volume"),
|
|
228
280
|
};
|
|
229
281
|
export const DEPLOY_TARGETS = Object.fromEntries(Object.values(TARGETS).map((t) => [t.id, t.title]));
|
|
230
282
|
export const isDeployTarget = (value) => typeof value === "string" && value in TARGETS;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"targets.js","sourceRoot":"","sources":["../../src/runtime/targets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAS5C,MAAM,CAAC,MAAM,aAAa,GAA4B,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;AACjF,oCAAoC;AACpC,MAAM,CAAC,MAAM,gBAAgB,GAA4B,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"targets.js","sourceRoot":"","sources":["../../src/runtime/targets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,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DB instance, one developer experience. SDK, runtime, CLI, and dashboard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@appport/server": "1.1.5",
|
|
61
61
|
"@appport/services": ">=0.13.0 <1.0.0",
|
|
62
62
|
"@feltdb/core": ">=0.17.1 <1.0.0",
|
|
63
|
-
"create-feltkit": "0.3.
|
|
63
|
+
"create-feltkit": "0.3.10",
|
|
64
64
|
"esbuild": "0.25.12",
|
|
65
65
|
"express": "4.22.3",
|
|
66
66
|
"mailerport": ">=0.1.0 <1.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "feltkit",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.10",
|
|
5
5
|
"description": "Skills for building and operating FeltKit applications: project structure and SDK, AppPort Services, FeltDB data and consistency, the FeltKit agent over MCP, and operations. Guidance only: they grant no permission.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "FeltKit"
|
|
@@ -77,8 +77,9 @@ the API keys page (Studio → Services → Manage). Production API keys need `FE
|
|
|
77
77
|
For a deployment whose data is in FeltDB (Vercel, `--target hosted|self-hosted`), run `--env production` commands in
|
|
78
78
|
the project's folder: they read the deployment's FeltDB settings from `.env.local` and refuse when they are missing
|
|
79
79
|
(never fall back to `.feltkit/production/state`, which the deployment does not read). Nothing needs to stop.
|
|
80
|
-
`npx feltkit vercel deploy` and `npx feltkit
|
|
81
|
-
(Cloudflare needs Docker running locally and the Workers Paid plan
|
|
80
|
+
`npx feltkit vercel deploy`, `npx feltkit cloudflare deploy` and `npx feltkit fly deploy` sign the owner in on their first
|
|
81
|
+
production deploy (Cloudflare needs Docker running locally and the Workers Paid plan; Fly needs flyctl, and with the
|
|
82
|
+
default `--data volume` the state is on the Fly volume, so sign in through the Studio link it prints); `npx feltkit manage` prints a
|
|
82
83
|
one-time link to production Studio (`/_feltkit/`, on by default for Vercel).
|
|
83
84
|
|
|
84
85
|
## Recover
|