Skip to content

Commit 99f5d52

Browse files
committed
versioning, prettier fixes
1 parent f3492b8 commit 99f5d52

4 files changed

Lines changed: 23 additions & 18 deletions

File tree

.cursor/agents/reviewer-complexity.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ For each flagged file:
6161
**`<path>`** — <severity emoji> <severity> (<N> triggers)
6262

6363
Triggers:
64+
6465
- <signal>: <observed value> (threshold <X>)
6566
- <signal>: <observed value> (threshold <X>)
6667

.cursor/skills/create-api-endpoint/SKILL.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ Add a REST endpoint end-to-end. Touches `common/`, `service/`, possibly `fronten
1111
1212
## Step 0 — Decide branch
1313

14-
| Branch | When |
15-
|---|---|
16-
| **Custom action** | Bespoke logic, projection, search, command-style endpoint |
14+
| Branch | When |
15+
| ----------------------- | ------------------------------------------------------------- |
16+
| **Custom action** | Bespoke logic, projection, search, command-style endpoint |
1717
| **DataSet-backed CRUD** | Standard create / list / get / update / delete over an entity |
1818

1919
If unsure, ask the user. The branches share Steps 1–3 then diverge.
@@ -51,11 +51,11 @@ This refreshes `common/schemas/*.json`. Verify the new endpoint type appears as
5151

5252
## Step 3 — Decide validation + auth
5353

54-
| Wrapper | Purpose | Layering |
55-
|---|---|---|
56-
| `Validate({ schema, schemaName })(...)` | JSON-schema-validate `query`, `url`, `body` before the handler runs | innermost |
57-
| `Authenticate()(...)` | reject unauthenticated requests | outer |
58-
| Built-in framework action (`GetCurrentUser`, `LogoutAction`, etc.) | no wrapper needed; built-in handles its own validation/auth | use directly |
54+
| Wrapper | Purpose | Layering |
55+
| ------------------------------------------------------------------ | ------------------------------------------------------------------- | ------------ |
56+
| `Validate({ schema, schemaName })(...)` | JSON-schema-validate `query`, `url`, `body` before the handler runs | innermost |
57+
| `Authenticate()(...)` | reject unauthenticated requests | outer |
58+
| Built-in framework action (`GetCurrentUser`, `LogoutAction`, etc.) | no wrapper needed; built-in handles its own validation/auth | use directly |
5959

6060
The `furystack/rest-action-validate-wrapper` lint rule requires `Validate(...)` for any custom action that consumes `query`, `url`, or `body`. Skipping it requires an `eslint-disable` comment with a justification.
6161

.cursor/skills/setup-data-layer/SKILL.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Re-export from `common/src/models/index.ts` and `common/src/index.ts`.
2525

2626
## Step 2 — Pick a backend
2727

28-
| Backend | Use case | Helper |
29-
|---|---|---|
30-
| `InMemoryStore` | Tests, ephemeral data, sessions | `defineStore` + `new InMemoryStore({...})` |
31-
| `defineFileSystemStore` | Local persistence (small datasets, dev) | one-liner |
32-
| `defineMongoDbStore` | Document data, larger scale | one-liner with `client`, `db`, `collection` |
33-
| `defineSequelizeStore` | Relational | one-liner with `sequelizeModel`, `initModel?` |
34-
| `defineRedisStore` | Cache-shaped persistence | one-liner with `client` |
28+
| Backend | Use case | Helper |
29+
| ----------------------- | --------------------------------------- | --------------------------------------------- |
30+
| `InMemoryStore` | Tests, ephemeral data, sessions | `defineStore` + `new InMemoryStore({...})` |
31+
| `defineFileSystemStore` | Local persistence (small datasets, dev) | one-liner |
32+
| `defineMongoDbStore` | Document data, larger scale | one-liner with `client`, `db`, `collection` |
33+
| `defineSequelizeStore` | Relational | one-liner with `sequelizeModel`, `initModel?` |
34+
| `defineRedisStore` | Cache-shaped persistence | one-liner with `client` |
3535

3636
If the backend needs to be authored from scratch, run the `implement-store-adapter` skill first (or read `LIBRARY_DEVELOPMENT.mdc` Stores section).
3737

@@ -80,10 +80,12 @@ import { authorizedDataSet } from './authorization/authorized-only.js'
8080

8181
export const UserDataSet: DataSetToken<User, 'username'> = defineDataSet({
8282
name: 'app/UserDataSet',
83-
store: UserStore, // can be a framework token or a local store token
83+
store: UserStore, // can be a framework token or a local store token
8484
settings: {
85-
...authorizedDataSet, // role checks
86-
onEntityAdded: ({ injector, entity }) => { /* side effects */ },
85+
...authorizedDataSet, // role checks
86+
onEntityAdded: ({ injector, entity }) => {
87+
/* side effects */
88+
},
8789
authorizeUpdate: async ({ entity, injector }) => ({
8890
isAllowed: entity.username !== 'system',
8991
message: 'Cannot update the system user',

.yarn/versions/3767dac7.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declined:
2+
- stack-craft

0 commit comments

Comments
 (0)