create-feltkit 0.2.0 → 0.3.1

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.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Create a FeltKit application: npm create feltkit@latest my-app",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -11,20 +11,27 @@ export const app = feltkit({
11
11
  description: "A small task manager that demonstrates the whole FeltKit platform.",
12
12
  // Roles grant AppPort permissions. "tasks.*" grants every tasks.<x> permission.
13
13
  roles: {
14
- member: ["projects.*", "tasks.*", "files.*"],
15
- viewer: ["projects.read", "tasks.read", "files.read"],
14
+ // Members use the app and Studio's agent (feltkit.agent.*: create, approve, and follow agent tasks).
15
+ member: ["projects.*", "tasks.*", "files.*", "feltkit.agent.*"],
16
+ // Viewers read. They can see agent tasks but not start or approve them.
17
+ viewer: ["projects.read", "tasks.read", "files.read", "feltkit.agent.read"],
16
18
  // Agents can read, complete tasks, and leave notes. They cannot create or delete.
17
19
  agent: ["projects.read", "tasks.read", "tasks.complete", "tasks.note", "files.read", "files.write"],
20
+ // Admins configure the app: choose the model (intelligence.*), store API keys
21
+ // (credential.*), and change configuration. Keys are stored by reference; the value
22
+ // never enters FeltDB.
23
+ admin: ["intelligence.*", "credential.*", "configuration.*"],
18
24
  },
19
25
  // Development-only identities. Sign in as them from the app or the dashboard.
20
26
  dev: {
21
27
  users: [
22
- { id: "ada", name: "Ada Lovelace", roles: ["member"] },
28
+ { id: "ada", name: "Ada Lovelace", roles: ["member", "admin"] },
23
29
  { id: "grace", name: "Grace Hopper", roles: ["viewer"] },
24
30
  ],
25
31
  },
26
- // AppPort Services: Files, stored in this app's FeltDB instance.
27
- services: { files: true },
32
+ // AppPort Services, stored in this app's FeltDB instance: Files, and Intelligence (which
33
+ // model the agent decides with; choose one and enter its API key in Studio → Models).
34
+ services: { files: true, intelligence: true },
28
35
  });
29
36
 
30
37
  export const projects = app.collection("projects", {
@@ -13,7 +13,7 @@
13
13
  "typecheck": "tsc --noEmit"
14
14
  },
15
15
  "dependencies": {
16
- "@feltdb/feltkit": "0.2.0",
16
+ "@feltdb/feltkit": "0.3.1",
17
17
  "react": "19.2.0",
18
18
  "react-dom": "19.2.0"
19
19
  },