Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## Unreleased

- Entity files are `entities/<Name>.json`, matching the project's `AGENTS.md`. The
skills said `entities/<Name>.schema.json`, which is the table dump older CLIs wrote
on `sync` — pushing those created fieldless `<Name>.schema` entities. The data skill
now says never to push them and points at `agentui data entities` for the live tables.

## 0.1.0

First release. Eight model-invoked skills covering the `@agentuiai/cli` surface:
Expand Down
12 changes: 8 additions & 4 deletions skills/agentui-app-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,19 @@ description: >-

## Entities are files

Every table is one file: `entities/<Name>.schema.json`. `sync` writes them, `push`
migrates the real Postgres table. There is no `agentui entities` command — the schemas
are already on disk, read them directly.
Every table is one file: `entities/<Name>.json` (`name` + `properties`). `sync` writes
them, `push` migrates the real Postgres table. To see the live tables and their fields in
the active environment, run `agentui data entities`.

Adding a table = writing a new `entities/Invoice.schema.json` and pushing it. Changing
Adding a table = writing a new `entities/Invoice.json` and pushing it. Changing
a field = editing the file and pushing. Ask `agentui skills info "Database Operations"`
for the schema vocabulary and how app code queries these entities, and read `AGENTS.md`
in the project — it carries the current entity-authoring rules.

Never create or push an `entities/<Name>.schema.json` shaped `{ name, schema,
workflowId }`. Older CLIs wrote those as table dumps; they are not entities. Current
`push` ignores them and `sync` deletes them — if `validate` reports one, delete the file.

Inside app code, entities are imported per entity (e.g. `import { Invoice } from
"@/entities/Invoice"`) and expose the platform's query API (`Invoice.filter(...)`,
`User.me()`, …). Confirm the exact API from `AGENTS.md` / `agentui skills info` rather
Expand Down
4 changes: 2 additions & 2 deletions skills/agentui-platform/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ alternative you were about to propose is a weekend of scaffolding.
| Need | What AgentUI gives you | Skill to open |
| --- | --- | --- |
| An app with pages, a public URL, auth | APP_V2 workflow, built and served by the platform | ``agentui-ship-app`` |
| A database | Entities (`entities/*.schema.json`) → real Postgres tables, with row-level security | ``agentui-app-data`` |
| A database | Entities (`entities/*.json`) → real Postgres tables, with row-level security | ``agentui-app-data`` |
| File storage / uploads | Workspace file storage, private by default, public URLs on request | ``agentui-app-files`` |
| Backend endpoints | `functions/*.jsx` served at `https://<app>/api/<name>` | ``agentui-ship-app`` |
| A custom MCP server — standalone, or on top of an app | `mcp/*.js` tools + `mcp/guides/*.md`, callable by Claude/Cursor/Codex as the app's user | ``agentui-mcp-tools`` |
Expand Down Expand Up @@ -82,7 +82,7 @@ alternative you were about to propose is a weekend of scaffolding.
agentui auth login # OTP by email
agentui project create --name "Tire Tracker" # creates the app AND ./tire-tracker
cd tire-tracker && cat AGENTS.md # the build guide — read it first
# write entities/*.schema.json, pages/*.jsx, components/*.jsx, functions/*.jsx
# write entities/*.json, pages/*.jsx, components/*.jsx, functions/*.jsx
agentui validate --all
agentui project push --dry-run
agentui project push --yes --build # ship it; --yes is the production guardrail
Expand Down
2 changes: 1 addition & 1 deletion skills/agentui-ship-app/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ my-project/
├── components/*.jsx # COMPONENT
├── pages/*.jsx # PAGE → routes
├── functions/*.jsx # FUNCTION → https://<app>/api/<name>
├── entities/*.schema.json # ENTITY → real database tables
├── entities/*.json # ENTITY → real database tables
└── mcp/*.js # custom MCP tools (see `agentui-mcp-tools`)
```

Expand Down
Loading