@feltdb/feltkit 0.3.14 → 0.3.16

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.
Files changed (46) hide show
  1. package/dist/app.d.ts +11 -0
  2. package/dist/app.js.map +1 -1
  3. package/dist/appboundry/build.d.ts +8 -1
  4. package/dist/appboundry/build.js +8 -1
  5. package/dist/appboundry/build.js.map +1 -1
  6. package/dist/appboundry/guest.js +16 -0
  7. package/dist/appboundry/guest.js.map +1 -1
  8. package/dist/appboundry/host.js +8 -1
  9. package/dist/appboundry/host.js.map +1 -1
  10. package/dist/appboundry/runtime.d.ts +5 -0
  11. package/dist/appboundry/runtime.js +5 -0
  12. package/dist/appboundry/runtime.js.map +1 -1
  13. package/dist/authorize.d.ts +63 -0
  14. package/dist/authorize.js +45 -0
  15. package/dist/authorize.js.map +1 -0
  16. package/dist/cli/deploy-appboundry-self-hosted.d.ts +16 -0
  17. package/dist/cli/deploy-appboundry-self-hosted.js +200 -0
  18. package/dist/cli/deploy-appboundry-self-hosted.js.map +1 -0
  19. package/dist/cli/deploy-appboundry.d.ts +142 -0
  20. package/dist/cli/deploy-appboundry.js +263 -0
  21. package/dist/cli/deploy-appboundry.js.map +1 -0
  22. package/dist/cli/main.js +106 -5
  23. package/dist/cli/main.js.map +1 -1
  24. package/dist/docs.d.ts +1 -1
  25. package/dist/docs.js +2 -1
  26. package/dist/docs.js.map +1 -1
  27. package/dist/index.d.ts +2 -0
  28. package/dist/runtime/activity.d.ts +5 -0
  29. package/dist/runtime/activity.js.map +1 -1
  30. package/dist/runtime/context.d.ts +5 -0
  31. package/dist/runtime/crypto-token.d.ts +8 -0
  32. package/dist/runtime/crypto-token.js +17 -0
  33. package/dist/runtime/crypto-token.js.map +1 -0
  34. package/dist/runtime/runtime.d.ts +0 -9
  35. package/dist/runtime/runtime.js +35 -1
  36. package/dist/runtime/runtime.js.map +1 -1
  37. package/dist/server/admin.d.ts +1 -1
  38. package/docs/APPBOUNDRY-DEPLOY-CONTRACT.md +49 -0
  39. package/docs/APPBOUNDRY.md +43 -0
  40. package/docs/GUARANTEES.md +22 -0
  41. package/docs/README.md +4 -3
  42. package/docs/UPSTREAM-GAPS.md +2 -0
  43. package/package.json +2 -2
  44. package/skills/.claude-plugin/marketplace.json +1 -1
  45. package/skills/.claude-plugin/plugin.json +1 -1
  46. package/skills/feltkit-build/SKILL.md +3 -2
@@ -10,7 +10,7 @@
10
10
  "name": "feltkit",
11
11
  "source": "./",
12
12
  "description": "Skills for building and operating FeltKit applications.",
13
- "version": "0.3.14"
13
+ "version": "0.3.16"
14
14
  }
15
15
  ]
16
16
  }
@@ -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.14",
4
+ "version": "0.3.16",
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"
@@ -33,10 +33,11 @@ tests/*.test.ts run by `feltkit test`
33
33
  (`exceptions.add-evidence` fails at load; write `exceptions.addevidence` or `evidence.add`). The `returns` schema is
34
34
  the published contract and rejects undeclared fields: derive it from the collection with `s.doc(tasks)`, and project
35
35
  with `.pick(...)`, `.omit(...)`, `.extend({...})`; never restate a collection's fields in a second schema.
36
- 5. Grant the permission to roles in `feltkit({ roles })`. Use `npx feltkit dev`; check the dashboard's Capabilities screen.
36
+ 5. Per-record rules ("only members of this workspace") go in one `feltkit({ authorize })` hook, not in each handler: it gets `{ function, args, principal, db }` after roles and validation and returns `true` or `{ allowed: false, reason }`.
37
+ 6. Grant the permission to roles in `feltkit({ roles })`. Use `npx feltkit dev`; check the dashboard's Capabilities screen.
37
38
  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`.
38
39
  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).
39
- 6. Add or update a test with `createTestApp`; run `npx feltkit test`. Then `npx feltkit build`.
40
+ 7. Add or update a test with `createTestApp`; run `npx feltkit test`. Then `npx feltkit build`.
40
41
 
41
42
  ```ts
42
43
  // feltkit/app.ts