@feltdb/feltkit 0.3.37 → 0.5.0

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 (184) hide show
  1. package/dist/agent-engine.d.ts +93 -0
  2. package/dist/agent-engine.js +40 -0
  3. package/dist/agent-engine.js.map +1 -0
  4. package/dist/app.d.ts +306 -7
  5. package/dist/app.js +289 -28
  6. package/dist/app.js.map +1 -1
  7. package/dist/appboundry/build.d.ts +7 -0
  8. package/dist/appboundry/build.js +25 -1
  9. package/dist/appboundry/build.js.map +1 -1
  10. package/dist/appboundry/guest.js +8 -0
  11. package/dist/appboundry/guest.js.map +1 -1
  12. package/dist/appboundry/host.d.ts +21 -0
  13. package/dist/appboundry/host.js +25 -0
  14. package/dist/appboundry/host.js.map +1 -1
  15. package/dist/appboundry/runtime.js +1 -0
  16. package/dist/appboundry/runtime.js.map +1 -1
  17. package/dist/boards/index.d.ts +1258 -0
  18. package/dist/boards/index.js +1410 -0
  19. package/dist/boards/index.js.map +1 -0
  20. package/dist/boards/model.d.ts +177 -0
  21. package/dist/boards/model.js +177 -0
  22. package/dist/boards/model.js.map +1 -0
  23. package/dist/boards/react.d.ts +18 -0
  24. package/dist/boards/react.js +339 -0
  25. package/dist/boards/react.js.map +1 -0
  26. package/dist/cli/deploy-appboundry-self-hosted.js +2 -2
  27. package/dist/cli/deploy.js +19 -6
  28. package/dist/cli/deploy.js.map +1 -1
  29. package/dist/cli/main.js +70 -5
  30. package/dist/cli/main.js.map +1 -1
  31. package/dist/client/index.d.ts +454 -4
  32. package/dist/client/index.js +371 -3
  33. package/dist/client/index.js.map +1 -1
  34. package/dist/clock.d.ts +24 -0
  35. package/dist/clock.js +49 -0
  36. package/dist/clock.js.map +1 -0
  37. package/dist/cron.d.ts +18 -0
  38. package/dist/cron.js +67 -0
  39. package/dist/cron.js.map +1 -0
  40. package/dist/dashboard/assets/index-iIj7SL77.js +15 -0
  41. package/dist/dashboard/index.html +1 -1
  42. package/dist/docs.d.ts +1 -1
  43. package/dist/docs.js +4 -0
  44. package/dist/docs.js.map +1 -1
  45. package/dist/eve/index.d.ts +77 -0
  46. package/dist/eve/index.js +128 -0
  47. package/dist/eve/index.js.map +1 -0
  48. package/dist/event-stage.js +2 -0
  49. package/dist/event-stage.js.map +1 -1
  50. package/dist/index.d.ts +17 -2
  51. package/dist/index.js +3 -1
  52. package/dist/index.js.map +1 -1
  53. package/dist/native/build.d.ts +112 -0
  54. package/dist/native/build.js +472 -0
  55. package/dist/native/build.js.map +1 -0
  56. package/dist/native/index.d.ts +67 -0
  57. package/dist/native/index.js +113 -0
  58. package/dist/native/index.js.map +1 -0
  59. package/dist/native/instance.d.ts +3 -0
  60. package/dist/native/instance.js +18 -0
  61. package/dist/native/instance.js.map +1 -0
  62. package/dist/policy.d.ts +9 -1
  63. package/dist/policy.js +16 -3
  64. package/dist/policy.js.map +1 -1
  65. package/dist/presence.d.ts +85 -0
  66. package/dist/presence.js +37 -0
  67. package/dist/presence.js.map +1 -0
  68. package/dist/quota.d.ts +72 -0
  69. package/dist/quota.js +143 -0
  70. package/dist/quota.js.map +1 -0
  71. package/dist/react/agent-control.d.ts +191 -0
  72. package/dist/react/agent-control.js +366 -0
  73. package/dist/react/agent-control.js.map +1 -0
  74. package/dist/react/auth.d.ts +15 -1
  75. package/dist/react/auth.js +28 -5
  76. package/dist/react/auth.js.map +1 -1
  77. package/dist/react/hooks.d.ts +88 -0
  78. package/dist/react/hooks.js +188 -0
  79. package/dist/react/hooks.js.map +1 -0
  80. package/dist/react/index.d.ts +5 -75
  81. package/dist/react/index.js +4 -145
  82. package/dist/react/index.js.map +1 -1
  83. package/dist/runtime/activity.d.ts +8 -0
  84. package/dist/runtime/activity.js.map +1 -1
  85. package/dist/runtime/agent-control.d.ts +28 -0
  86. package/dist/runtime/agent-control.js +43 -2
  87. package/dist/runtime/agent-control.js.map +1 -1
  88. package/dist/runtime/agent-run.d.ts +166 -0
  89. package/dist/runtime/agent-run.js +431 -0
  90. package/dist/runtime/agent-run.js.map +1 -0
  91. package/dist/runtime/agent.d.ts +158 -1
  92. package/dist/runtime/agent.js +345 -12
  93. package/dist/runtime/agent.js.map +1 -1
  94. package/dist/runtime/assemble.js +15 -2
  95. package/dist/runtime/assemble.js.map +1 -1
  96. package/dist/runtime/authority.d.ts +47 -0
  97. package/dist/runtime/authority.js +13 -2
  98. package/dist/runtime/authority.js.map +1 -1
  99. package/dist/runtime/capabilities.js +2 -1
  100. package/dist/runtime/capabilities.js.map +1 -1
  101. package/dist/runtime/changes.d.ts +17 -0
  102. package/dist/runtime/changes.js +65 -2
  103. package/dist/runtime/changes.js.map +1 -1
  104. package/dist/runtime/context.d.ts +123 -0
  105. package/dist/runtime/contract.js +9 -3
  106. package/dist/runtime/contract.js.map +1 -1
  107. package/dist/runtime/events.js +17 -1
  108. package/dist/runtime/events.js.map +1 -1
  109. package/dist/runtime/integrations.js +7 -7
  110. package/dist/runtime/integrations.js.map +1 -1
  111. package/dist/runtime/invocations.d.ts +19 -2
  112. package/dist/runtime/invocations.js +16 -3
  113. package/dist/runtime/invocations.js.map +1 -1
  114. package/dist/runtime/policies.d.ts +5 -2
  115. package/dist/runtime/policies.js.map +1 -1
  116. package/dist/runtime/presence-host.d.ts +84 -0
  117. package/dist/runtime/presence-host.js +303 -0
  118. package/dist/runtime/presence-host.js.map +1 -0
  119. package/dist/runtime/providers.d.ts +5 -1
  120. package/dist/runtime/providers.js +11 -5
  121. package/dist/runtime/providers.js.map +1 -1
  122. package/dist/runtime/required-capabilities.d.ts +73 -0
  123. package/dist/runtime/required-capabilities.js +69 -0
  124. package/dist/runtime/required-capabilities.js.map +1 -0
  125. package/dist/runtime/resource-access.d.ts +137 -0
  126. package/dist/runtime/resource-access.js +177 -0
  127. package/dist/runtime/resource-access.js.map +1 -0
  128. package/dist/runtime/runtime.d.ts +143 -1
  129. package/dist/runtime/runtime.js +853 -44
  130. package/dist/runtime/runtime.js.map +1 -1
  131. package/dist/runtime/sessions.d.ts +12 -0
  132. package/dist/runtime/sessions.js +16 -1
  133. package/dist/runtime/sessions.js.map +1 -1
  134. package/dist/runtime/tenancy.d.ts +68 -1
  135. package/dist/runtime/tenancy.js +150 -0
  136. package/dist/runtime/tenancy.js.map +1 -1
  137. package/dist/runtime/transactions.d.ts +3 -1
  138. package/dist/runtime/transactions.js.map +1 -1
  139. package/dist/runtime/workers.d.ts +123 -0
  140. package/dist/runtime/workers.js +291 -0
  141. package/dist/runtime/workers.js.map +1 -0
  142. package/dist/server/eve.d.ts +287 -0
  143. package/dist/server/eve.js +1071 -0
  144. package/dist/server/eve.js.map +1 -0
  145. package/dist/server/index.d.ts +2 -19
  146. package/dist/server/index.js +102 -5
  147. package/dist/server/index.js.map +1 -1
  148. package/dist/server/mcp.d.ts +15 -22
  149. package/dist/server/mcp.js +40 -3
  150. package/dist/server/mcp.js.map +1 -1
  151. package/dist/server/project.js +26 -8
  152. package/dist/server/project.js.map +1 -1
  153. package/dist/server/tenancy.d.ts +9 -0
  154. package/dist/server/tenancy.js +62 -1
  155. package/dist/server/tenancy.js.map +1 -1
  156. package/dist/server/watch.d.ts +10 -0
  157. package/dist/server/watch.js +88 -0
  158. package/dist/server/watch.js.map +1 -0
  159. package/dist/testing/index.d.ts +4 -5
  160. package/dist/testing/index.js +3 -2
  161. package/dist/testing/index.js.map +1 -1
  162. package/docs/AGENT-CONTROL.md +166 -4
  163. package/docs/APPBOUNDRY.md +73 -0
  164. package/docs/ARCHITECTURE.md +6 -2
  165. package/docs/AUTH.md +37 -0
  166. package/docs/COMPONENTS.md +71 -0
  167. package/docs/EVE-COMPOSITION.md +75 -0
  168. package/docs/GUARANTEES.md +4 -4
  169. package/docs/NATIVE-AGENTS.md +353 -0
  170. package/docs/NATIVE.md +137 -0
  171. package/docs/PRESENCE-AND-SIGNALING-PROPOSAL.md +152 -0
  172. package/docs/README.md +6 -2
  173. package/docs/SECURITY.md +71 -3
  174. package/docs/TRANSACTIONS.md +48 -0
  175. package/docs/UPSTREAM-GAPS.md +16 -2
  176. package/package.json +42 -16
  177. package/skills/.claude-plugin/marketplace.json +1 -1
  178. package/skills/.claude-plugin/plugin.json +1 -1
  179. package/skills/feltkit-agent/SKILL.md +1 -1
  180. package/skills/feltkit-build/SKILL.md +11 -1
  181. package/skills/feltkit-data/SKILL.md +1 -1
  182. package/skills/feltkit-operations/SKILL.md +1 -1
  183. package/skills/feltkit-services/SKILL.md +1 -1
  184. package/dist/dashboard/assets/index-BhxrvY37.js +0 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feltdb/feltkit",
3
- "version": "0.3.37",
3
+ "version": "0.5.0",
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",
@@ -10,7 +10,7 @@
10
10
  "directory": "packages/sdk"
11
11
  },
12
12
  "engines": {
13
- "node": ">=20.11"
13
+ "node": ">=26"
14
14
  },
15
15
  "bin": {
16
16
  "feltkit": "bin/feltkit.js"
@@ -32,6 +32,26 @@
32
32
  "types": "./dist/react/index.d.ts",
33
33
  "import": "./dist/react/index.js"
34
34
  },
35
+ "./native": {
36
+ "types": "./dist/native/index.d.ts",
37
+ "import": "./dist/native/index.js"
38
+ },
39
+ "./eve": {
40
+ "types": "./dist/eve/index.d.ts",
41
+ "import": "./dist/eve/index.js"
42
+ },
43
+ "./agent": {
44
+ "types": "./dist/eve/index.d.ts",
45
+ "import": "./dist/eve/index.js"
46
+ },
47
+ "./boards": {
48
+ "types": "./dist/boards/index.d.ts",
49
+ "import": "./dist/boards/index.js"
50
+ },
51
+ "./boards/react": {
52
+ "types": "./dist/boards/react.d.ts",
53
+ "import": "./dist/boards/react.js"
54
+ },
35
55
  "./testing": {
36
56
  "types": "./dist/testing/index.d.ts",
37
57
  "import": "./dist/testing/index.js"
@@ -54,17 +74,17 @@
54
74
  "prepack": "npm run build"
55
75
  },
56
76
  "dependencies": {
57
- "@appport/authorization": "1.2.2",
58
- "@appport/core": "1.11.0",
59
- "@appport/integration": "1.2.7",
60
- "@appport/protocol": "1.7.0",
77
+ "@appport/authorization": "1.4.0",
78
+ "@appport/core": "1.13.0",
79
+ "@appport/integration": "1.2.8",
80
+ "@appport/protocol": "1.8.0",
61
81
  "@appport/resolver-client": "0.3.0",
62
- "@appport/schema": "1.2.1",
63
- "@appport/sdk": "1.11.0",
64
- "@appport/server": "1.3.6",
65
- "@appport/services": ">=0.20.0 <1.0.0",
66
- "@feltdb/core": ">=0.22.0 <1.0.0",
67
- "create-feltkit": "0.3.37",
82
+ "@appport/schema": "1.2.2",
83
+ "@appport/sdk": "1.13.0",
84
+ "@appport/server": "1.5.0",
85
+ "@appport/services": ">=0.21.0 <1.0.0",
86
+ "@feltdb/core": ">=0.25.0 <1.0.0",
87
+ "create-feltkit": "0.5.0",
68
88
  "esbuild": "0.28.2",
69
89
  "express": "4.22.3",
70
90
  "jpeg-js": "0.4.4",
@@ -73,9 +93,10 @@
73
93
  "tsx": "4.23.15"
74
94
  },
75
95
  "peerDependencies": {
96
+ "@authboundry/local": ">=0.1.1",
76
97
  "react": ">=18",
77
98
  "vite": ">=5",
78
- "@authboundry/local": ">=0.1.1"
99
+ "eve": ">=1.1.1"
79
100
  },
80
101
  "peerDependenciesMeta": {
81
102
  "react": {
@@ -86,22 +107,27 @@
86
107
  },
87
108
  "@authboundry/local": {
88
109
  "optional": true
110
+ },
111
+ "eve": {
112
+ "optional": true
89
113
  }
90
114
  },
91
115
  "devDependencies": {
92
- "@appport/testing": "1.4.0",
116
+ "@appport/testing": "1.6.0",
93
117
  "@authboundry/local": "0.1.1",
94
118
  "@mailerport/service": "0.1.0",
95
- "@feltdb/webllm": ">=0.22.0 <1.0.0",
119
+ "@feltdb/webllm": ">=0.25.0 <1.0.0",
96
120
  "@modelcontextprotocol/sdk": "1.32.2",
97
121
  "@stack-ui/core": "0.10.0",
98
122
  "@stack-ui/react": "0.10.0",
99
123
  "@stack-ui/tokens": "0.10.0",
100
- "@types/node": "22.19.1",
124
+ "@types/node": "26.6.6",
101
125
  "@types/pngjs": "6.0.5",
102
126
  "@types/react": "19.3.0",
103
127
  "@types/react-dom": "19.3.0",
104
128
  "@vitejs/plugin-react": "5.1.0",
129
+ "eve": "npm:@appport/eve@1.1.2",
130
+ "@appport/eve-world-feltdb": "0.1.1",
105
131
  "react": "19.3.1",
106
132
  "react-dom": "19.3.1",
107
133
  "typescript": "7.0.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.37"
13
+ "version": "0.5.0"
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.37",
4
+ "version": "0.5.0",
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.22.0 agent state. There is no planner: decisions are yours, a
96
+ `@feltdb/feltkit` 0.5.x, development server. FeltDB 0.25.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.
@@ -92,6 +92,16 @@ validation and the transaction: do not use it unless the user asks and understan
92
92
  - **Approval.** `app.mutation({ access: "payments.send", approval: "required", ... })`: agents, services and API keys
93
93
  holding the permission can only propose it; it runs after a person who may perform it approves, as the proposer.
94
94
  People call it directly. Use it for irreversible effects you would not let an agent take alone.
95
+ - **External effects from an action.** Publish the action (`app.action({ capability: "pr.open", approval?, ... })`) and
96
+ call `await ctx.effect.begin(detail)` right before the effect: it is recorded first, an unknown outcome
97
+ (`OUTCOME_UNKNOWN`) is never repeated by a keyed retry or a retried job, and callers ask what happened with
98
+ `client.invocationStatus` (`appport.invocation.status@1`). From a mutation, dispatch it with
99
+ `ctx.afterCommit.jobs.enqueue`; never make an external call inside a mutation.
100
+ - **Workers and visibility.** A separate runner is a worker (`ctx.grants.registerWorker`, needs
101
+ `feltkit.workers.write`) acting only under a work grant (`ctx.grants.workGrant({ worker, capabilities, workItemId })`,
102
+ named as `x-appport-grant`); a person approves one exact call with `ctx.grants.approve({ capability, input })`.
103
+ `visibility: "internal"` keeps a function off every surface (only `ctx.runMutation`, jobs and hooks call it);
104
+ `"worker"` / `"service"` limit it to those callers.
95
105
  - **Authority first.** A caller without a function's `access` gets `FORBIDDEN` before its arguments are checked. An
96
106
  agent that gets `FORBIDDEN` lacks the authority: hand the step to a person; do not retry with other input.
97
107
  - **Services run as the caller.** Every role that calls a function needs the service permissions the function uses
@@ -216,5 +226,5 @@ a hash or memory router when `location.protocol === "chrome-extension:"` (a `Bro
216
226
 
217
227
  ## Compatibility
218
228
 
219
- Written for `@feltdb/feltkit` 0.3.x (Node 20.11+). Commands: `feltkit create`, `dev`, `build`, `start`, `test`,
229
+ Written for `@feltdb/feltkit` 0.5.x (Node 26+). Commands: `feltkit create`, `dev`, `build`, `start`, `test`,
220
230
  `inspect`, `deploy`, `session`, `operator`, `readiness`, `model`, `credential`, `config`, `codegen`, `doctor`, `skills`, `docs`. Verified in Claude Code only.
@@ -111,4 +111,4 @@ Deleting records, bulk changes, schema changes that drop fields, or anything in
111
111
 
112
112
  ## Compatibility
113
113
 
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.
114
+ `@feltdb/feltkit` 0.5.x on `@feltdb/core` 0.25.0. Details: `npx feltkit docs guarantees` (node_modules/@feltdb/feltkit/docs/GUARANTEES.md). Verified in Claude Code only.
@@ -95,4 +95,4 @@ Anything in production; deleting or restoring state; revoking sessions or keys;
95
95
 
96
96
  ## Compatibility
97
97
 
98
- `@feltdb/feltkit` 0.3.x. Verified in Claude Code only.
98
+ `@feltdb/feltkit` 0.5.x. Verified in Claude Code only.
@@ -156,6 +156,6 @@ affect other systems. Confirm with the user before doing any of them.
156
156
 
157
157
  ## Compatibility
158
158
 
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).
159
+ `@feltdb/feltkit` 0.5.x with `@appport/services` 0.21.0 (shared instance; transactional job and webhook creation; `credential.store` / `credential.status`; `servicesContract` for Managed FeltDB; the inbound event lifecycle and inbound integration management).
160
160
  The console is development-only.
161
161
  Verified in Claude Code only.