@feltdb/feltkit 0.3.30 → 0.3.32
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 +67 -11
- package/dist/app.js +58 -2
- package/dist/app.js.map +1 -1
- package/dist/appboundry/build.js +2 -0
- package/dist/appboundry/build.js.map +1 -1
- package/dist/appboundry/guest.js +23 -1
- package/dist/appboundry/guest.js.map +1 -1
- package/dist/authorize.d.ts +24 -3
- package/dist/authorize.js.map +1 -1
- package/dist/broker/assertion.d.ts +68 -0
- package/dist/broker/assertion.js +104 -0
- package/dist/broker/assertion.js.map +1 -0
- package/dist/broker/keys.d.ts +9 -0
- package/dist/broker/keys.js +47 -0
- package/dist/broker/keys.js.map +1 -0
- package/dist/broker/server.d.ts +54 -0
- package/dist/broker/server.js +305 -0
- package/dist/broker/server.js.map +1 -0
- package/dist/cli/broker.d.ts +11 -0
- package/dist/cli/broker.js +72 -0
- package/dist/cli/broker.js.map +1 -0
- package/dist/cli/deploy.js +6 -0
- package/dist/cli/deploy.js.map +1 -1
- package/dist/cli/main.js +123 -0
- package/dist/cli/main.js.map +1 -1
- package/dist/client/index.d.ts +8 -2
- package/dist/client/index.js +45 -1
- package/dist/client/index.js.map +1 -1
- package/dist/docs.d.ts +1 -1
- package/dist/docs.js +3 -0
- package/dist/docs.js.map +1 -1
- package/dist/extension/build.d.ts +50 -0
- package/dist/extension/build.js +205 -0
- package/dist/extension/build.js.map +1 -0
- package/dist/extension/client-shim.d.ts +7 -0
- package/dist/extension/client-shim.js +13 -0
- package/dist/extension/client-shim.js.map +1 -0
- package/dist/extension/connect-ui.d.ts +24 -0
- package/dist/extension/connect-ui.js +67 -0
- package/dist/extension/connect-ui.js.map +1 -0
- package/dist/extension/connection.d.ts +109 -0
- package/dist/extension/connection.js +190 -0
- package/dist/extension/connection.js.map +1 -0
- package/dist/extension/host-core.d.ts +36 -0
- package/dist/extension/host-core.js +50 -0
- package/dist/extension/host-core.js.map +1 -0
- package/dist/extension/host.d.ts +1 -0
- package/dist/extension/host.js +8 -0
- package/dist/extension/host.js.map +1 -0
- package/dist/extension/icons.d.ts +13 -0
- package/dist/extension/icons.js +75 -0
- package/dist/extension/icons.js.map +1 -0
- package/dist/extension/identity.d.ts +40 -0
- package/dist/extension/identity.js +110 -0
- package/dist/extension/identity.js.map +1 -0
- package/dist/extension/options.d.ts +1 -0
- package/dist/extension/options.js +57 -0
- package/dist/extension/options.js.map +1 -0
- package/dist/extension/service-worker.d.ts +1 -0
- package/dist/extension/service-worker.js +38 -0
- package/dist/extension/service-worker.js.map +1 -0
- package/dist/extension/validate.d.ts +7 -0
- package/dist/extension/validate.js +143 -0
- package/dist/extension/validate.js.map +1 -0
- package/dist/extension/zip.d.ts +7 -0
- package/dist/extension/zip.js +94 -0
- package/dist/extension/zip.js.map +1 -0
- package/dist/index.d.ts +6 -2
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/policy.d.ts +179 -0
- package/dist/policy.js +311 -0
- package/dist/policy.js.map +1 -0
- package/dist/runtime/activity.d.ts +16 -0
- package/dist/runtime/activity.js.map +1 -1
- package/dist/runtime/application-authority.d.ts +22 -3
- package/dist/runtime/application-authority.js +94 -20
- package/dist/runtime/application-authority.js.map +1 -1
- package/dist/runtime/assemble.d.ts +13 -0
- package/dist/runtime/assemble.js +29 -1
- package/dist/runtime/assemble.js.map +1 -1
- package/dist/runtime/authority-contract.d.ts +55 -0
- package/dist/runtime/authority-contract.js +60 -0
- package/dist/runtime/authority-contract.js.map +1 -0
- package/dist/runtime/content.d.ts +50 -0
- package/dist/runtime/content.js +98 -1
- package/dist/runtime/content.js.map +1 -1
- package/dist/runtime/context.d.ts +86 -11
- package/dist/runtime/contract.js +11 -2
- package/dist/runtime/contract.js.map +1 -1
- package/dist/runtime/data.d.ts +25 -0
- package/dist/runtime/data.js +92 -8
- package/dist/runtime/data.js.map +1 -1
- package/dist/runtime/image-variants.d.ts +48 -0
- package/dist/runtime/image-variants.js +295 -0
- package/dist/runtime/image-variants.js.map +1 -0
- package/dist/runtime/integrations.d.ts +2 -0
- package/dist/runtime/integrations.js +10 -7
- package/dist/runtime/integrations.js.map +1 -1
- package/dist/runtime/invocations.d.ts +3 -0
- package/dist/runtime/invocations.js +1 -1
- package/dist/runtime/invocations.js.map +1 -1
- package/dist/runtime/live.d.ts +10 -7
- package/dist/runtime/live.js +24 -12
- package/dist/runtime/live.js.map +1 -1
- package/dist/runtime/local-authority.d.ts +80 -5
- package/dist/runtime/local-authority.js +259 -14
- package/dist/runtime/local-authority.js.map +1 -1
- package/dist/runtime/policies.d.ts +89 -0
- package/dist/runtime/policies.js +152 -0
- package/dist/runtime/policies.js.map +1 -0
- package/dist/runtime/readiness.js +31 -1
- package/dist/runtime/readiness.js.map +1 -1
- package/dist/runtime/runtime.d.ts +21 -1
- package/dist/runtime/runtime.js +200 -7
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/services-rules.d.ts +9 -0
- package/dist/runtime/services-rules.js +47 -1
- package/dist/runtime/services-rules.js.map +1 -1
- package/dist/runtime/services.d.ts +117 -9
- package/dist/runtime/services.js +154 -13
- package/dist/runtime/services.js.map +1 -1
- package/dist/server/admin.d.ts +21 -0
- package/dist/server/admin.js +114 -0
- package/dist/server/admin.js.map +1 -1
- package/dist/server/index.js +33 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/oauth.d.ts +32 -2
- package/dist/server/oauth.js +130 -23
- package/dist/server/oauth.js.map +1 -1
- package/dist/server/operators.d.ts +1 -0
- package/dist/server/operators.js +1 -1
- package/dist/server/operators.js.map +1 -1
- package/dist/server/project.d.ts +3 -0
- package/dist/server/project.js +2 -2
- package/dist/server/project.js.map +1 -1
- package/dist/testing/index.d.ts +11 -0
- package/dist/testing/index.js +7 -0
- package/dist/testing/index.js.map +1 -1
- package/docs/AGENT-OPERATIONS.md +1 -1
- package/docs/ARCHITECTURE.md +2 -1
- package/docs/CONNECTIONS.md +10 -3
- package/docs/EXTENSION-HOSTS.md +64 -5
- package/docs/GUARANTEES.md +82 -6
- package/docs/LOCAL-AUTHORITY.md +118 -0
- package/docs/POLICIES.md +121 -0
- package/docs/README.md +5 -2
- package/docs/SECURITY.md +69 -0
- package/docs/SIGN-IN-BROKER.md +77 -0
- package/docs/TRANSACTIONS.md +4 -0
- package/package.json +13 -9
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +1 -1
- package/skills/feltkit-agent/SKILL.md +1 -1
- package/skills/feltkit-build/SKILL.md +10 -0
- package/skills/feltkit-data/SKILL.md +13 -1
- package/skills/feltkit-services/SKILL.md +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feltdb/feltkit",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.32",
|
|
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",
|
|
@@ -54,19 +54,21 @@
|
|
|
54
54
|
"prepack": "npm run build"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@appport/authorization": "1.
|
|
57
|
+
"@appport/authorization": "1.2.0",
|
|
58
58
|
"@appport/integration": "1.2.5",
|
|
59
59
|
"@appport/protocol": "1.5.0",
|
|
60
60
|
"@appport/resolver-client": "0.3.0",
|
|
61
61
|
"@appport/schema": "1.1.6",
|
|
62
|
-
"@appport/sdk": "1.
|
|
63
|
-
"@appport/server": "1.3.
|
|
64
|
-
"@appport/services": ">=0.
|
|
65
|
-
"@feltdb/core": ">=0.
|
|
66
|
-
"create-feltkit": "0.3.
|
|
62
|
+
"@appport/sdk": "1.9.0",
|
|
63
|
+
"@appport/server": "1.3.3",
|
|
64
|
+
"@appport/services": ">=0.20.0 <1.0.0",
|
|
65
|
+
"@feltdb/core": ">=0.22.0 <1.0.0",
|
|
66
|
+
"create-feltkit": "0.3.32",
|
|
67
67
|
"esbuild": "0.28.2",
|
|
68
68
|
"express": "4.22.3",
|
|
69
|
+
"jpeg-js": "0.4.4",
|
|
69
70
|
"mailerport": ">=0.1.0 <1.0.0",
|
|
71
|
+
"pngjs": "7.0.0",
|
|
70
72
|
"tsx": "4.23.15"
|
|
71
73
|
},
|
|
72
74
|
"peerDependencies": {
|
|
@@ -86,14 +88,16 @@
|
|
|
86
88
|
}
|
|
87
89
|
},
|
|
88
90
|
"devDependencies": {
|
|
89
|
-
"@appport/testing": "1.2.
|
|
91
|
+
"@appport/testing": "1.2.6",
|
|
92
|
+
"@authboundry/local": "0.1.1",
|
|
90
93
|
"@mailerport/service": "0.1.0",
|
|
91
|
-
"@feltdb/webllm": ">=0.
|
|
94
|
+
"@feltdb/webllm": ">=0.22.0 <1.0.0",
|
|
92
95
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
93
96
|
"@stack-ui/core": "0.9.0",
|
|
94
97
|
"@stack-ui/react": "0.9.0",
|
|
95
98
|
"@stack-ui/tokens": "0.9.0",
|
|
96
99
|
"@types/node": "22.19.1",
|
|
100
|
+
"@types/pngjs": "6.0.5",
|
|
97
101
|
"@types/react": "19.3.0",
|
|
98
102
|
"@types/react-dom": "19.3.0",
|
|
99
103
|
"@vitejs/plugin-react": "5.1.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.32",
|
|
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"
|
|
@@ -93,6 +93,6 @@ the source, run `npx feltkit test`, and let the user review. Record what you cha
|
|
|
93
93
|
|
|
94
94
|
## Compatibility
|
|
95
95
|
|
|
96
|
-
`@feltdb/feltkit` 0.3.x, development server. FeltDB 0.
|
|
96
|
+
`@feltdb/feltkit` 0.3.x, development server. FeltDB 0.22.0 agent state. There is no planner: decisions are yours, a
|
|
97
97
|
playbook's, or the environment's model choosing among options the application built (a `decide` task); a model's
|
|
98
98
|
choice is a proposal like yours. Verified in Claude Code only.
|
|
@@ -198,6 +198,16 @@ these from the start, and test it with `createArtifactTestApp("<name>.app")` fro
|
|
|
198
198
|
`as(who).query/mutation` calls). Serve it with `npx @appport/appboundry run <name>.app` (an app with built-in accounts
|
|
199
199
|
also needs `--accounts operator-sessions`: people then get sessions from the operator).
|
|
200
200
|
|
|
201
|
+
## Browser extension
|
|
202
|
+
|
|
203
|
+
`npx feltkit target:browser-extension` builds the frontend into a Manifest V3 Chrome extension (`dist/extension`, to
|
|
204
|
+
Load unpacked, plus a Web Store ZIP). The same `createClient()` calls run in it against the user's instance with a
|
|
205
|
+
bearer session; nothing of the backend is in it. `--instance <url>` bakes one instance in; `--surface sidepanel|popup|tab`;
|
|
206
|
+
`--check [<dir>]` validates an extension. The extension has a stable ID (its key is in `extension/identity.json`: commit it); `client.signInWith("github")` works in it, with `auth.providers: { github: { broker: true } }` needing no OAuth app of the app's own (`npx feltkit docs sign-in-broker`). It fails when the result is not compliant. If the user wants it, write the
|
|
207
|
+
frontend for it from the start: talk to the instance only through FeltKit's client (no raw same-origin `fetch`), and use
|
|
208
|
+
a hash or memory router when `location.protocol === "chrome-extension:"` (a `BrowserRouter` finds no route there). Read
|
|
209
|
+
`npx feltkit docs extension-hosts` before changing how the app signs in inside it.
|
|
210
|
+
|
|
201
211
|
## When to stop and ask
|
|
202
212
|
|
|
203
213
|
- Changing roles or `access` (it changes who can do what everywhere, including agents and API keys).
|
|
@@ -45,6 +45,18 @@ const page = await ctx.db.query(contacts, { where: [{ field: "stage", eq: "lead"
|
|
|
45
45
|
await ctx.db.search(messages, { text: "deploy café", where: { channelId }, limit: 20 }); // needs { search: ["text"] } on the collection
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
+
**Set membership.** `in` matches a field equal to any of up to 256 values (strings, finite numbers, booleans, null; an
|
|
49
|
+
empty list matches nothing). Declare an ordered index and a feed (`in` plus `orderBy` newest first) reads about one page
|
|
50
|
+
of records, not the collection:
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
// in the collection's declaration: indexes: [{ fields: ["authorId", "createdAt"], directions: ["asc", "desc"] }]
|
|
54
|
+
const feed = await ctx.db.query(posts, { where: [{ field: "authorId", in: followingIds }], orderBy: [{ field: "createdAt", direction: "desc" }], limit: 20, cursor });
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
In a mutation the read is fenced per value: a write to a record in the set conflicts, one outside it does not. A live
|
|
58
|
+
query on an `in` re-runs only when a record in the set changes.
|
|
59
|
+
|
|
48
60
|
`search` returns records whose declared `search` fields contain every word (case- and accent-insensitive),
|
|
49
61
|
newest first, at most `limit` (≤ 100). It scans the records matching `where`, so always narrow it with an
|
|
50
62
|
equality `where` on large collections. For live queries, filter by `id`, indexed, unique, reference or
|
|
@@ -99,4 +111,4 @@ Deleting records, bulk changes, schema changes that drop fields, or anything in
|
|
|
99
111
|
|
|
100
112
|
## Compatibility
|
|
101
113
|
|
|
102
|
-
`@feltdb/feltkit` 0.3.x on `@feltdb/core` 0.
|
|
114
|
+
`@feltdb/feltkit` 0.3.x on `@feltdb/core` 0.22.0. Details: `npx feltkit docs guarantees` (node_modules/@feltdb/feltkit/docs/GUARANTEES.md). Verified in Claude Code only.
|
|
@@ -68,6 +68,19 @@ ctx.afterCommit.jobs.enqueue("invoice.send", { orderId });
|
|
|
68
68
|
```
|
|
69
69
|
|
|
70
70
|
Each is recorded in the mutation's transaction (`_feltkit_outbox`) and performed after the commit, as the caller.
|
|
71
|
+
|
|
72
|
+
**Reading the caller's inbox** pages through the recipient's own notifications, newest first, bounded and index-backed
|
|
73
|
+
(a page reads about `limit` records, never the tenant's history):
|
|
74
|
+
|
|
75
|
+
```ts
|
|
76
|
+
const inbox = await ctx.services.notifications.page({ unread: true, limit: 20, cursor }); // { items, nextCursor? }
|
|
77
|
+
const { count, complete } = await ctx.services.notifications.unreadCount({ max: 100 }); // complete: false means "at least"
|
|
78
|
+
await ctx.services.notifications.markAllRead(); // mutations: { marked, complete }; at most 1,000 per call
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
`limit` is 1 to 100 (default 50). A cursor is opaque and bound to the recipient, filters and limit: another's is
|
|
82
|
+
refused. With `unread`, a page can be short or empty and still carry `nextCursor`; only a page without one is the end.
|
|
83
|
+
`markAllRead` is not atomic across notifications: `complete: false` means call again.
|
|
71
84
|
If the process stops in between, the services worker performs it later. A job or webhook delivery is created in
|
|
72
85
|
the transaction that marks the effect done, so it exists once per committed effect; notifications are deduplicated
|
|
73
86
|
by their idempotency key. Running the job and delivering the webhook are retried by the services (at least once). A failed effect stays `failed` with
|
|
@@ -143,6 +156,6 @@ affect other systems. Confirm with the user before doing any of them.
|
|
|
143
156
|
|
|
144
157
|
## Compatibility
|
|
145
158
|
|
|
146
|
-
`@feltdb/feltkit` 0.3.x with `@appport/services` 0.
|
|
159
|
+
`@feltdb/feltkit` 0.3.x with `@appport/services` 0.20.0 (shared instance; transactional job and webhook creation; `credential.store` / `credential.status`; `servicesContract` for Managed FeltDB; the inbound event lifecycle and inbound integration management).
|
|
147
160
|
The console is development-only.
|
|
148
161
|
Verified in Claude Code only.
|