@weave-kit/engine 0.1.1 → 0.1.2

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 CHANGED
@@ -1,35 +1,58 @@
1
1
  # @weave-kit/engine
2
2
 
3
- > Metadata-driven headless backend engine for PostgreSQL.
3
+ > Let AI agents operate your data — safely.
4
4
 
5
- Author your data model in `schema.json` and the engine compiles it into PostgreSQL tables, a governed
6
- REST API with field- and row-level RBAC, an immutable audit log, an MCP tool surface for AI agents,
7
- and object-level TypeScript types. The engine renders no UI and ships no business logic it turns
8
- metadata into a database schema, a typed API, and agent tools.
5
+ Define your data model once in `schema.json`, and WeaveKit compiles it into PostgreSQL tables, a
6
+ REST API with row- and field-level RBAC, an immutable audit log, and an MCP tool surface that AI
7
+ agents call with typed tools never raw SQL. Self-hosted: your data stays in your database.
9
8
 
10
9
  ```
11
10
  objects/leads/schema.json → PostgreSQL tables + indexes + RLS
12
11
  REST API (CRUD + RBAC)
13
- MCP tools (agent surface + guardrails)
14
- Audit log
12
+ MCP tools (per-identity surface + guardrails)
13
+ Immutable audit log
15
14
  TypeScript types
16
15
  ```
17
16
 
17
+ ## Why WeaveKit
18
+
19
+ - **Safe by construction** — every agent action is authorized by row- and field-level RBAC and
20
+ native PostgreSQL RLS, and recorded in an immutable audit log. Guardrails (and optional
21
+ approvals) sit in front.
22
+ - **One agent, many users** — each MCP call carries the acting user's identity (on-behalf-of), and
23
+ the engine compiles a per-identity tool surface: a salesperson's agent sees only their own leads,
24
+ a finance agent cannot read sales notes. Prompt injection cannot bypass RBAC/RLS.
25
+ - **Bring your existing PostgreSQL** — point the engine at a live database and declare the tables
26
+ you want to expose; existing tables stay read-only unless you explicitly allow additive DDL, and
27
+ `weave introspect` can reverse-model them into `schema.json`.
28
+ - **Typed tools in minutes, not weeks** — hand-writing an MCP server (tools + permissions + audit)
29
+ for a few tables takes days; here it is a few `schema.json` files, and new fields or tables
30
+ extend the tool surface automatically.
31
+ - **More than MCP** — the same schema also drives a REST API and generated TypeScript types, so
32
+ people and agents share one governed contract.
33
+ - **Self-hosted** — the engine runs in your environment; no data leaves your database.
34
+
35
+ ## How it works
36
+
37
+ `weave` reads `objects/<name>/schema.json`, validates it, and syncs it to PostgreSQL (state-diff
38
+ migrations; existing tables stay read-only unless you allow additive DDL). The same metadata drives
39
+ the REST routes and the MCP tool surface, and the data-access layer enforces RBAC and audits every
40
+ write.
41
+
18
42
  ## Features
19
43
 
20
44
  - **Schema as the source of truth** — `objects/<name>/schema.json`, versioned in Git; state-diff
21
- migrations to PostgreSQL (existing tables stay read-only unless explicitly allowed).
45
+ migrations to PostgreSQL.
22
46
  - **Governed REST API** — object CRUD with row-level (`all`/`own`/`team`) and field-level RBAC and a
23
47
  uniform error contract.
24
48
  - **MCP tool surface** — a streamable HTTP endpoint at `/mcp` with a per-identity tool surface and
25
49
  guardrails.
26
- - **Audit log** — an immutable event log for data mutations (optional subsystem).
27
- - **Sandboxed hooks** — `*.server.js` lifecycle hooks running in isolated workers (optional
28
- subsystem).
50
+ - **Audit log** — an immutable event log for data mutations.
51
+ - **Sandboxed hooks** — `*.server.js` lifecycle hooks running in isolated workers.
29
52
  - **Type generation** — object-level TypeScript types derived from the schema.
30
53
  - **Live events** — an SSE stream with replay.
31
- - **Operations** — health / readiness / version endpoints, request rate limiting, CORS and structured
32
- logging.
54
+ - **Operations** — health / readiness / version endpoints, request rate limiting, CORS and
55
+ structured logging.
33
56
 
34
57
  ## Requirements
35
58
 
@@ -63,16 +86,9 @@ weave mcp:config # ready-to-paste config for Claude Code / Cursor / VS
63
86
  ## Documentation
64
87
 
65
88
  - [Getting started](docs/01-getting-started.md) — scaffold, migrate, run, consume
66
- - [Schema guide](docs/02-schema.md) objects, fields, relations, validation
67
- - [RBAC](docs/03-rbac.md) permissions, row scopes, field exclusions
68
- - [Formulas](docs/04-formula.md) computed fields
69
- - [Audit](docs/05-audit.md) — immutable event logging
70
- - [CLI reference](docs/06-weave-cli.md) — every `weave` command
71
- - [MCP](docs/07-mcp.md) — the agent tool surface
72
- - [Script hooks](docs/08-script.md) — sandboxed `*.server.js` lifecycle hooks
73
- - [Public API & dependency budget](docs/10-public-api.md) — entry points and extension points
74
- - [Quotas & usage budgets](docs/11-quota.md) — durable per-period budgets
75
- - [Inbound events](docs/12-ingress.md) — receive external events with app-owned verification
89
+ - [Schema guide](docs/02-schema.md) · [RBAC](docs/03-rbac.md) · [Formulas](docs/04-formula.md) · [Audit](docs/05-audit.md)
90
+ - [CLI reference](docs/06-weave-cli.md) · [MCP](docs/07-mcp.md) · [Script hooks](docs/08-script.md)
91
+ - [Public API & dependency budget](docs/10-public-api.md) · [Quotas](docs/11-quota.md) · [Inbound events](docs/12-ingress.md)
76
92
  - [Practices](docs/practices/01-customer-integration.md) — real integration walkthroughs
77
93
 
78
94
  ## Programmatic use
@@ -142,6 +158,10 @@ npm run lint
142
158
  Issues and pull requests are welcome. See [`AGENTS.md`](AGENTS.md) for architecture notes and
143
159
  contribution invariants.
144
160
 
161
+ ## Support
162
+
163
+ Questions, bug reports and security reports: **support@weavekit.io**.
164
+
145
165
  ## License
146
166
 
147
- [MIT](LICENSE)
167
+ [MIT](LICENSE) · For support, contact **support@weavekit.io**.
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** engine version — single source of truth for CLI, ops routes and MCP metadata */
2
- export declare const version = "0.1.1";
2
+ export declare const version = "0.1.2";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** engine version — single source of truth for CLI, ops routes and MCP metadata */
2
- export const version = '0.1.1';
2
+ export const version = '0.1.2';
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weave-kit/engine",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "WeaveKit engine — metadata-driven headless backend runtime",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -51,6 +51,11 @@
51
51
  "type": "git",
52
52
  "url": "https://github.com/weavekit/engine.git"
53
53
  },
54
+ "homepage": "https://github.com/weavekit/engine",
55
+ "bugs": {
56
+ "url": "https://github.com/weavekit/engine/issues"
57
+ },
58
+ "author": "WeaveKit <support@weavekit.io>",
54
59
  "scripts": {
55
60
  "dev": "node --watch --import tsx src/index.ts",
56
61
  "build": "tsc -p tsconfig.build.json",