@feltdb/feltkit 0.3.12 → 0.3.14
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/README.md +4 -3
- package/dist/app.d.ts +27 -1
- package/dist/app.js +22 -0
- package/dist/app.js.map +1 -1
- package/dist/appboundry/build.js +10 -2
- package/dist/appboundry/build.js.map +1 -1
- package/dist/appboundry/host.js +2 -2
- package/dist/appboundry/host.js.map +1 -1
- package/dist/cli/deploy.js +9 -3
- package/dist/cli/deploy.js.map +1 -1
- package/dist/cli/main.d.ts +5 -0
- package/dist/cli/main.js +141 -40
- package/dist/cli/main.js.map +1 -1
- package/dist/client/index.d.ts +3 -0
- package/dist/client/index.js +3 -0
- package/dist/client/index.js.map +1 -1
- package/dist/dashboard/assets/{index-91I1zDK-.css → index-BXTNQAg1.css} +1 -1
- package/dist/dashboard/assets/index-DnIOVGF-.js +15 -0
- package/dist/dashboard/index.html +3 -3
- package/dist/docs.d.ts +12 -0
- package/dist/docs.js +43 -0
- package/dist/docs.js.map +1 -0
- package/dist/errors.d.ts +15 -0
- package/dist/errors.js +9 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/platform/changes.js +4 -2
- package/dist/platform/changes.js.map +1 -1
- package/dist/platform/deployments.js +8 -6
- package/dist/platform/deployments.js.map +1 -1
- package/dist/runtime/activity.d.ts +25 -0
- package/dist/runtime/activity.js +38 -12
- package/dist/runtime/activity.js.map +1 -1
- package/dist/runtime/agent.d.ts +16 -0
- package/dist/runtime/agent.js +97 -30
- package/dist/runtime/agent.js.map +1 -1
- package/dist/runtime/backup-environment.d.ts +8 -1
- package/dist/runtime/backup-environment.js +44 -12
- package/dist/runtime/backup-environment.js.map +1 -1
- package/dist/runtime/backup.d.ts +45 -3
- package/dist/runtime/backup.js +237 -68
- package/dist/runtime/backup.js.map +1 -1
- package/dist/runtime/capabilities.js +4 -2
- package/dist/runtime/capabilities.js.map +1 -1
- package/dist/runtime/changes.js +2 -2
- package/dist/runtime/changes.js.map +1 -1
- package/dist/runtime/contract.d.ts +10 -0
- package/dist/runtime/contract.js +37 -15
- package/dist/runtime/contract.js.map +1 -1
- package/dist/runtime/data.d.ts +30 -3
- package/dist/runtime/data.js +136 -32
- package/dist/runtime/data.js.map +1 -1
- package/dist/runtime/decisions.d.ts +41 -3
- package/dist/runtime/decisions.js +159 -1
- package/dist/runtime/decisions.js.map +1 -1
- package/dist/runtime/integrations.js +14 -6
- package/dist/runtime/integrations.js.map +1 -1
- package/dist/runtime/loader.js +22 -2
- package/dist/runtime/loader.js.map +1 -1
- package/dist/runtime/readiness.js +6 -1
- package/dist/runtime/readiness.js.map +1 -1
- package/dist/runtime/runtime.d.ts +24 -6
- package/dist/runtime/runtime.js +77 -20
- package/dist/runtime/runtime.js.map +1 -1
- package/dist/runtime/services.d.ts +19 -5
- package/dist/runtime/services.js +14 -4
- package/dist/runtime/services.js.map +1 -1
- package/dist/runtime/sessions.js +4 -3
- package/dist/runtime/sessions.js.map +1 -1
- package/dist/runtime/state-contract.js +3 -3
- package/dist/runtime/state-contract.js.map +1 -1
- package/dist/runtime/targets.d.ts +6 -1
- package/dist/runtime/targets.js +8 -0
- package/dist/runtime/targets.js.map +1 -1
- package/dist/server/admin.d.ts +2 -2
- package/dist/server/admin.js +37 -12
- package/dist/server/admin.js.map +1 -1
- package/dist/server/index.d.ts +2 -1
- package/dist/server/index.js +45 -8
- package/dist/server/index.js.map +1 -1
- package/dist/server/mcp.js +1 -1
- package/dist/server/mcp.js.map +1 -1
- package/dist/testing/index.d.ts +6 -2
- package/dist/testing/index.js +28 -4
- package/dist/testing/index.js.map +1 -1
- package/docs/AGENT-OPERATIONS.md +515 -0
- package/docs/APPBOUNDRY.md +240 -0
- package/docs/ARCHITECTURE.md +126 -0
- package/docs/BACKUP.md +115 -0
- package/docs/GUARANTEES.md +460 -0
- package/docs/PATH-TO-PRODUCTION.md +117 -0
- package/docs/README.md +16 -0
- package/docs/RESOLVER.md +167 -0
- package/docs/SECURITY.md +182 -0
- package/docs/TRANSACTIONS.md +216 -0
- package/docs/UPSTREAM-GAPS.md +270 -0
- package/docs/WHY-FELTKIT.md +64 -0
- package/docs/assets/feltkit-logo-dark.png +0 -0
- package/docs/assets/feltkit-logo.png +0 -0
- package/package.json +11 -8
- package/skills/.claude-plugin/marketplace.json +1 -1
- package/skills/.claude-plugin/plugin.json +3 -3
- package/skills/feltkit-agent/SKILL.md +9 -5
- package/skills/feltkit-build/SKILL.md +10 -1
- package/skills/feltkit-data/SKILL.md +9 -3
- package/skills/feltkit-services/SKILL.md +8 -4
- package/dist/dashboard/assets/index-BhFOquA7.js +0 -15
- package/dist/dashboard/theme.js +0 -11
|
@@ -39,15 +39,19 @@ export const checkout = app.mutation({
|
|
|
39
39
|
access: "orders.write",
|
|
40
40
|
args: { orderId: s.string() },
|
|
41
41
|
handler: async (ctx, { orderId }) => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
ctx.afterCommit.jobs.enqueue("invoice.send", { orderId }); // runs later, as this caller, if this commits
|
|
43
|
+
ctx.afterCommit.webhooks.emit("order.paid", { orderId }); // to subscribed endpoints, if this commits
|
|
44
|
+
ctx.afterCommit.notifications.send({ recipient: "ada", type: "order", title: "Paid" });
|
|
45
45
|
const region = await ctx.services.configuration.get("REGION");
|
|
46
46
|
return { region };
|
|
47
47
|
},
|
|
48
48
|
});
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
**Jobs run as whoever queued them, re-authorized each attempt:** that principal needs `jobs.create` to queue and
|
|
52
|
+
`jobs.execute` for the run, plus the job mutation's own `access`. In tests, `t.as(...)` callers are signed in like
|
|
53
|
+
production callers; `runServices()` returns `failed: { jobs, deliveries }` beside the attempt counts.
|
|
54
|
+
|
|
51
55
|
**Service calls inside functions run as the caller.** Every role that can reach a function needs the service
|
|
52
56
|
permissions that function uses: if `checkout` reads `configuration.get`, every role that calls `checkout` needs
|
|
53
57
|
`configuration.read`. A refusal says so: `orders:checkout called configuration.get as grace (roles: clerk), which does
|
|
@@ -139,6 +143,6 @@ affect other systems. Confirm with the user before doing any of them.
|
|
|
139
143
|
|
|
140
144
|
## Compatibility
|
|
141
145
|
|
|
142
|
-
`@feltdb/feltkit` 0.3.x with `@appport/services` 0.
|
|
146
|
+
`@feltdb/feltkit` 0.3.x with `@appport/services` 0.15.0 (shared instance; transactional job and webhook creation; `credential.store` / `credential.status`; `servicesContract` for Managed FeltDB).
|
|
143
147
|
The console is development-only.
|
|
144
148
|
Verified in Claude Code only.
|