Skip to content
Merged
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
2 changes: 1 addition & 1 deletion content/docs/ai/skills-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ Use when the user is adding `*.endpoint.ts`, configuring auth providers, definin

Do not use for: consuming an ObjectStack API from a client (that is just standard HTTP — no skill needed); the auto-generated CRUD endpoints (those follow from objectstack-data); request-side query syntax (see objectstack-query). CEL expressions in route guards or auth predicates: load objectstack-formula alongside.

**Tags:** `rest`, `graphql`, `endpoint`, `auth`, `realtime`, `server`
**Tags:** `rest`, `endpoint`, `auth`, `realtime`, `server`

---

Expand Down
265 changes: 200 additions & 65 deletions packages/lint/scripts/check-doc-security-posture.mjs

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions scripts/check-skills-token-ratchet.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,19 @@ export const CEILINGS = new Map([
['skills/objectstack-api/SKILL.md', 6348],
['skills/objectstack-automation/SKILL.md', 12543],
// basis 7228d6c25 (PR #10402 head), not main — see CEILING_BASIS.
['skills/objectstack-data/SKILL.md', 13797],
// +20 (13797→13817): maintainer ruling 2026-08-23 on PR #11141 — the three
// SECURITY_OWD_UNSET-required sharingModel keys. Ruling quoted in that PR's body.
['skills/objectstack-data/SKILL.md', 13817],
['skills/objectstack-formula/SKILL.md', 6055],
['skills/objectstack-i18n/SKILL.md', 6349],
// basis 7228d6c25 (PR #10402 head), not main — see CEILING_BASIS.
['skills/objectstack-platform/SKILL.md', 12716],
['skills/objectstack-pm-dispatch/SKILL.md', 14239],
['skills/objectstack-query/SKILL.md', 5569],
['skills/objectstack-ui/SKILL.md', 25154],
['skills/objectstack-upgrade/SKILL.md', 8325],
// +10 (8325→8335): same 2026-08-23 ruling — crm_lead's SECURITY_OWD_UNSET-required
// sharingModel key (value mirrored from examples/app-crm per the same ruling).
['skills/objectstack-upgrade/SKILL.md', 8335],
]);

/**
Expand Down
2 changes: 1 addition & 1 deletion skills/objectstack-api/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ metadata:
author: objectstack-ai
version: "1.4"
domain: api
tags: rest, graphql, endpoint, auth, realtime, server
tags: rest, endpoint, auth, realtime, server
---

# API Design — ObjectStack API Protocol
Expand Down
5 changes: 4 additions & 1 deletion skills/objectstack-data/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Toggle system behaviours per object:
|:-----|:--------|:--------|
| `trackHistory` | `false` | Field-level audit trail |
| `searchable` | `true` | Index records for global search |
| `apiEnabled` | `true` | Expose via automatic REST / GraphQL APIs |
| `apiEnabled` | `true` | Expose via automatic REST + MCP APIs |
| `apiMethods` | all | Whitelist over the six primitives (`get`, `list`, `create`, `update`, `delete`, `bulk`); derived verbs (search/export/upsert/…) follow automatically |
| `files` | `false` | Attachments & document management |
| `feeds` | `true` | Social feed, comments, mentions — **opt-out**: explicit `false` hides the feed UI and rejects new comments |
Expand Down Expand Up @@ -214,6 +214,7 @@ import { ObjectSchema } from '@objectstack/spec/data';
export default ObjectSchema.create({
name: 'account',
label: 'Account',
sharingModel: 'private',

fieldGroups: [
{ key: 'contact_info', label: 'Contact Information', icon: 'user' },
Expand Down Expand Up @@ -253,6 +254,7 @@ import { ObjectSchema, Field } from '@objectstack/spec/data';

export const Invoice = ObjectSchema.create({
name: 'invoice',
sharingModel: 'private',
fields: {
status: Field.select({
options: [
Expand Down Expand Up @@ -321,6 +323,7 @@ import { ObjectSchema } from '@objectstack/spec/data';
export default ObjectSchema.create({
name: 'support_case',
label: 'Support Case',
sharingModel: 'private',
enable: {
trackHistory: true,
feeds: true,
Expand Down
2 changes: 0 additions & 2 deletions skills/objectstack-formula/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,6 @@ to the envelope.
| `Hook` | `condition` | cel |
| `SharingRule` | `condition` | cel |
| `Flow.decision` | `expression` / edge `condition` | cel (use `vars.<step>.<key>`) |
| `GraphQL.ComputedField` | `expression` | cel |
| `Dataset.records[*]` | any value | cel (via `cel\`\``) |
| `audit` / `metrics` / `tracing` | `condition` / `successCriteria` | structured \| cel |

Expand Down Expand Up @@ -476,7 +475,6 @@ tmpl`Deal {{ record.name }} — {{ record.amount | currency }} closes {{ record.
| `system/notification` | email subject + body, SMS message, push body + message (5 fields) |
| `ai/model-registry` | `promptTemplate.system`, `promptTemplate.user` |
| `integration/connector/github` | titleTemplate, bodyTemplate (PR + release) |
| `api/graphql` | cache key |

There is no JS expression surface: procedural JS is the L2
`ScriptBody { language: 'js' }` surface (hook bodies), not an expression
Expand Down
2 changes: 1 addition & 1 deletion skills/objectstack-platform/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export default app; // Deploy to Cloudflare Workers, Deno, Bun, Node

1. Accept a `kernel` (ObjectKernel) instance
2. Create an `HttpDispatcher` internally
3. Mount explicit routes for auth, GraphQL, storage, discovery
3. Mount explicit routes for auth and discovery
4. Delegate everything else to the dispatcher

This means **new routes added to HttpDispatcher work automatically**
Expand Down
1 change: 1 addition & 0 deletions skills/objectstack-upgrade/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ import { defineAgent } from '@objectstack/spec/ai';
// physical constraint explicitly via `storage.notNull`.
export const Lead = ObjectSchema.create({
name: 'crm_lead',
sharingModel: 'public_read_write',
label: 'Lead',
fields: {
name: { type: 'text', required: true, storage: { notNull: true } },
Expand Down
Loading