create-feltkit 0.3.6 → 0.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-feltkit",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Create a FeltKit application: npm create feltkit@latest my-app (add -- --template managed for Managed FeltDB)",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -244,6 +244,17 @@ without their FeltDB settings.
244
244
  docker run --rm -v tasks-data:/data tasks node node_modules/@feltdb/feltkit/bin/feltkit.js session create --env production --type user --id you --role member
245
245
  ```
246
246
 
247
+ **On AppBoundry** (`npx feltkit build --target appboundry`, then `appboundry run tasks.app`),
248
+ `feltkit session create` does not apply: the artifact runs without this project or FeltKit's
249
+ CLI. AppBoundry's operators create users with your app's roles and issue their sessions:
250
+
251
+ ```bash
252
+ appboundry admin users add you --role member --state <installation>
253
+ appboundry admin sessions issue --user you --state <installation>
254
+ ```
255
+
256
+ See AppBoundry's production operations guide for bootstrapping the first operator.
257
+
247
258
  For real users, add `auth.authenticate` to `feltkit({ ... })` to verify requests with your
248
259
  identity provider.
249
260
 
@@ -1,3 +1,4 @@
1
1
  node_modules/
2
2
  dist/
3
3
  .feltkit/
4
+ *.app/
@@ -13,7 +13,7 @@
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "dependencies": {
16
- "@feltdb/feltkit": "0.3.6",
16
+ "@feltdb/feltkit": "0.3.7",
17
17
  "react": "19.2.0",
18
18
  "react-dom": "19.2.0"
19
19
  },
@@ -144,10 +144,12 @@ function TokenSignIn() {
144
144
  return (
145
145
  <form className="stack" onSubmit={submit}>
146
146
  <p className="muted">
147
- Sign in with a session token. <code>npx feltkit vercel deploy</code> prints yours the first time it deploys. To make another, run this in your project's folder (it uses your
148
- deployment's FeltDB settings from <code>.env.local</code>):
147
+ Sign in with a session token from whoever runs this deployment. If FeltKit deployed it, <code>npx feltkit vercel deploy</code> printed yours the first time; to make another, run
148
+ this in your project's folder (it uses your deployment's FeltDB settings from <code>.env.local</code>):
149
149
  </p>
150
150
  <code className="block">npx feltkit session create --env production --type user --id you --role member</code>
151
+ <p className="muted">If AppBoundry runs this app (from its <code>.app</code> artifact), its operator creates your user and issues your session instead:</p>
152
+ <code className="block">appboundry admin sessions issue --user you --state &lt;installation&gt;</code>
151
153
  <input type="password" value={token} onChange={(e) => setToken(e.target.value)} placeholder="Session token (fks_…)" aria-label="Session token" autoComplete="off" />
152
154
  <button type="submit" disabled={!token.trim()}>
153
155
  Sign in
@@ -5,3 +5,4 @@ dist/
5
5
  .env
6
6
  .env.*
7
7
  .feltdb/
8
+ *.app/
@@ -20,7 +20,7 @@
20
20
  "deploy:fly": "node scripts/deploy-fly.mjs"
21
21
  },
22
22
  "dependencies": {
23
- "@feltdb/feltkit": "0.3.6"
23
+ "@feltdb/feltkit": "0.3.7"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@feltdb/core": "0.16.1",