@feltdb/feltkit 0.3.8 → 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/app.d.ts +58 -0
- package/dist/app.js +48 -0
- package/dist/app.js.map +1 -1
- package/dist/cli/deploy.d.ts +3 -3
- package/dist/cli/deploy.js +60 -7
- 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 +93 -5
- package/dist/cli/main.js.map +1 -1
- package/dist/cli/vercel.d.ts +1 -1
- package/dist/cli/vercel.js +12 -6
- package/dist/cli/vercel.js.map +1 -1
- package/dist/client/index.d.ts +73 -0
- package/dist/client/index.js +98 -0
- package/dist/client/index.js.map +1 -1
- package/dist/dashboard/assets/{index-dGaQg6ak.css → index-91I1zDK-.css} +1 -1
- package/dist/dashboard/assets/index-BhFOquA7.js +15 -0
- package/dist/dashboard/index.html +2 -2
- package/dist/errors.d.ts +3 -1
- package/dist/errors.js +2 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react/index.d.ts +10 -0
- package/dist/react/index.js +6 -0
- package/dist/react/index.js.map +1 -1
- package/dist/runtime/account-links.d.ts +19 -0
- package/dist/runtime/account-links.js +45 -0
- package/dist/runtime/account-links.js.map +1 -0
- package/dist/runtime/accounts.d.ts +76 -0
- package/dist/runtime/accounts.js +222 -0
- package/dist/runtime/accounts.js.map +1 -0
- package/dist/runtime/agent.d.ts +1 -0
- package/dist/runtime/agent.js +5 -1
- package/dist/runtime/agent.js.map +1 -1
- package/dist/runtime/authority.d.ts +1 -0
- package/dist/runtime/authority.js +3 -0
- package/dist/runtime/authority.js.map +1 -1
- package/dist/runtime/contract.js +3 -0
- package/dist/runtime/contract.js.map +1 -1
- package/dist/runtime/data.js +4 -3
- package/dist/runtime/data.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/mail.d.ts +34 -0
- package/dist/runtime/mail.js +40 -0
- package/dist/runtime/mail.js.map +1 -0
- package/dist/runtime/readiness.js +28 -2
- package/dist/runtime/readiness.js.map +1 -1
- package/dist/runtime/runtime.d.ts +32 -0
- package/dist/runtime/runtime.js +145 -5
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/services.d.ts +16 -1
- package/dist/runtime/services.js +12 -0
- package/dist/runtime/services.js.map +1 -1
- package/dist/runtime/sessions.d.ts +2 -0
- package/dist/runtime/sessions.js +7 -0
- package/dist/runtime/sessions.js.map +1 -1
- package/dist/runtime/targets.d.ts +10 -6
- package/dist/runtime/targets.js +66 -5
- package/dist/runtime/targets.js.map +1 -1
- package/dist/server/admin.js +11 -0
- package/dist/server/admin.js.map +1 -1
- package/dist/server/agent-connect.d.ts +18 -0
- package/dist/server/agent-connect.js +18 -0
- package/dist/server/agent-connect.js.map +1 -0
- package/dist/server/index.d.ts +9 -0
- package/dist/server/index.js +109 -4
- package/dist/server/index.js.map +1 -1
- package/dist/server/oauth.d.ts +37 -0
- package/dist/server/oauth.js +165 -0
- package/dist/server/oauth.js.map +1 -0
- package/dist/server/production.js +1 -1
- package/dist/server/production.js.map +1 -1
- package/dist/server/project.d.ts +13 -0
- package/dist/server/project.js +64 -3
- package/dist/server/project.js.map +1 -1
- package/package.json +6 -5
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/feltkit-agent/SKILL.md +11 -1
- package/skills/feltkit-build/SKILL.md +2 -0
- package/skills/feltkit-operations/SKILL.md +3 -2
- package/dist/dashboard/assets/index-CUgBiFRg.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feltdb/feltkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "FeltKit: one application, one FeltDB instance, one developer experience. SDK, runtime, CLI, and dashboard.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -58,11 +58,12 @@
|
|
|
58
58
|
"@appport/protocol": "1.3.0",
|
|
59
59
|
"@appport/sdk": "1.4.0",
|
|
60
60
|
"@appport/server": "1.1.5",
|
|
61
|
-
"@appport/services": "0.
|
|
62
|
-
"@feltdb/core": "0.
|
|
63
|
-
"create-feltkit": "0.3.
|
|
61
|
+
"@appport/services": ">=0.13.0 <1.0.0",
|
|
62
|
+
"@feltdb/core": ">=0.17.1 <1.0.0",
|
|
63
|
+
"create-feltkit": "0.3.10",
|
|
64
64
|
"esbuild": "0.25.12",
|
|
65
65
|
"express": "4.22.3",
|
|
66
|
+
"mailerport": ">=0.1.0 <1.0.0",
|
|
66
67
|
"tsx": "4.20.6"
|
|
67
68
|
},
|
|
68
69
|
"peerDependencies": {
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
},
|
|
80
81
|
"devDependencies": {
|
|
81
82
|
"@appport/testing": "1.2.0",
|
|
82
|
-
"@feltdb/webllm": "0.
|
|
83
|
+
"@feltdb/webllm": ">=0.17.1 <1.0.0",
|
|
83
84
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
84
85
|
"@stack-ui/core": "file:dashboard/vendor/stack-ui/core",
|
|
85
86
|
"@stack-ui/react": "file:dashboard/vendor/stack-ui/react",
|
|
@@ -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"
|
|
@@ -17,9 +17,19 @@ The user creates an agent session (you never invent one):
|
|
|
17
17
|
npx feltkit session create --id my-agent --role <role> --type agent
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
Or, in development, Studio's Agent screen → **Connect a coding agent** issues one with the chosen person's
|
|
21
|
+
roles and shows the `claude mcp add --transport http --scope local feltkit <url>/mcp --header "Authorization: Bearer …"`
|
|
22
|
+
command and the prompt to give you. Use the token as `Authorization: Bearer <token>` on `/mcp`. An AppPort Services API key also works when
|
|
21
23
|
`services.apiKeys` is enabled. The role must grant `feltkit.agent.read` / `feltkit.agent.write` to use the agent tools.
|
|
22
24
|
|
|
25
|
+
## A handoff that asks for a change to the app
|
|
26
|
+
|
|
27
|
+
Most handoffs from Studio ("make tasks assignable to people") are code changes. Nothing else works on them: you do.
|
|
28
|
+
Claim the handoff, read `next` and the context, make the change in the project's files (`feltkit/` for collections,
|
|
29
|
+
functions and roles; `src/` for the screen; the feltkit-build skill), run `npx feltkit test`, record what you did with
|
|
30
|
+
`feltkit_agent_note`, and finish with `feltkit_agent_complete` and a factual summary. Actions on the running app's
|
|
31
|
+
data or services are proposed instead (below) and wait for a person.
|
|
32
|
+
|
|
23
33
|
## Tools
|
|
24
34
|
|
|
25
35
|
| Tool | What it does |
|
|
@@ -29,6 +29,8 @@ tests/*.test.ts run by `feltkit test`
|
|
|
29
29
|
3. Write functions with `app.query` / `app.mutation`. Give each an `access` permission (or `"public"` / `"authenticated"`).
|
|
30
30
|
4. To expose a function to AppPort clients and agents, add `capability: { name: "<noun>.<verb>" }` **and** a `returns` schema.
|
|
31
31
|
5. Grant the permission to roles in `feltkit({ roles })`. Use `npx feltkit dev`; check the dashboard's Capabilities screen.
|
|
32
|
+
People sign in to a deployed app through built-in accounts, `auth: { accounts: { roles: ["member"] } }` (the starter has it; the frontend calls `useSession().signUp/signIn`), or an identity provider through `auth.authenticate`.
|
|
33
|
+
Password reset and address verification: `auth.accounts.email: { from, verify? }` (Mailerport; `MAILPORT_URL`/`MAILPORT_API_KEY` in production; the client's `requestPasswordReset`, `resetPassword`, `requestVerification`, `handleRedirect`). Google, GitHub, or OIDC sign-in: `auth.providers` with a `clientId` each and the secret as `credential-ref:<id>-client-secret`; never put a client secret in code. Both need `FELTKIT_PUBLIC_URL` and `FELTKIT_AUTH_SECRET` in production (`feltkit vercel env` sets them).
|
|
32
34
|
6. Add or update a test with `createTestApp`; run `npx feltkit test`. Then `npx feltkit build`.
|
|
33
35
|
|
|
34
36
|
```ts
|
|
@@ -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
|