Repository navigation
Expand file tree
/
Copy pathconfig-plugins-ops.json
More file actions
75 lines (75 loc) · 5.69 KB
/
Copy pathconfig-plugins-ops.json
File metadata and controls
75 lines (75 loc) · 5.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"skill_name": "objectstack-platform",
"evals": [
{
"id": 1,
"prompt": "Write `objectstack.config.ts` for our CRM app: objects, views and flows live under src/, the package namespace is `crm`, and it targets protocol 18.",
"expected_output": "A `defineStack` whose `manifest` carries `id`, `version`, `type: 'app'`, `name`, `namespace: 'crm'` and `engines: { protocol: '^18' }`, with barrel imports and `objects: Object.values(objects)` (same for `views` / `flows`). Object names carry the prefix in `name` (`crm_account`) — no object-level `namespace`, no `tableName`. No driver in `plugins:` (the CLI resolves it from the DB URL) and no `workflows` / `approvals` top-level keys (refused at load).",
"files": [],
"assertions": {
"must_contain": ["defineStack", "manifest", "engines", "Object.values("],
"must_not_contain": ["workflows:", "approvals:", "tableName"]
}
},
{
"id": 2,
"prompt": "Build a plugin that registers an `audit` service and records every metadata reload; it should also record every `task` insert.",
"expected_output": "A `Plugin` object with `name`, `init(ctx)` calling `ctx.registerService('audit', ...)` and `ctx.hook('metadata:reloaded', ...)`, `start(ctx)`, `destroy()`. Record-level events are NOT kernel hooks — `ctx.hook('data:beforeInsert')` registers and silently never fires — so the task insert is a data hook (`hooks:` collection / `ql.on('beforeInsert', 'task', ...)`, objectstack-data). No `onInstall` / `onEnable` / `onDisable` plugin hooks exist.",
"files": [],
"assertions": {
"must_contain": ["registerService", "ctx.hook(", "metadata:reloaded", "init(", "destroy"],
"must_not_contain": ["data:beforeInsert", "onInstall"]
}
},
{
"id": 3,
"prompt": "Our scheduled flows never launch, and a `notify` step reports success but nobody receives anything.",
"expected_output": "Both are missing capability tokens: `requires: ['automation', 'triggers', 'job', 'messaging']` on the stack root — `triggers` alone arms record-change triggers, schedule and time-relative triggers run on the `job` service, and without `messaging` notify returns success with `skipped: true`. Declaring is a demand (a missing provider is a hard boot error); an unknown token is rejected by `defineStack` at authoring time.",
"files": [],
"assertions": {
"must_contain": ["requires", "job", "messaging", "triggers"],
"must_not_contain": ["plugins: [new ServiceJobPlugin", "@objectstack/adapter-"]
}
},
{
"id": 4,
"prompt": "We deploy on Vercel serverless functions inside our own Hono app. Mount the ObjectStack API under /api.",
"expected_output": "`createHonoApp({ kernel })` from `@objectstack/hono` (prefix defaults to `/api`) mounted into the host app — `HonoServerPlugin` is for when ObjectStack owns the server. Uses `LiteKernel` for the cold-start-sensitive host, warns that `/auth/*` follows the auth `basePath`, not `prefix`, and that there are no `@objectstack/adapter-*` packages.",
"files": [],
"assertions": {
"must_contain": ["createHonoApp", "@objectstack/hono", "LiteKernel"],
"must_not_contain": ["@objectstack/adapter-", "HonoServerPlugin("]
}
},
{
"id": 5,
"prompt": "I changed field types on an object that already has production data. Show me what the database needs, verify the metadata, and give me a quality score.",
"expected_output": "`os migrate plan` to preview the metadata↔DB drift, `os migrate apply` (with `--allow-destructive` for type changes / drops) to reconcile, then `os validate` (schema + CEL + widget bindings) and `os lint --score`. Does not report the change done until `os validate` passes; `os lint` does not replace it.",
"files": [],
"assertions": {
"must_contain": ["os migrate plan", "os migrate apply", "os validate", "os lint"],
"must_not_contain": ["os rollback", "os data seed"]
}
},
{
"id": 6,
"prompt": "Plan the production deployment: Docker on Kubernetes behind nginx, PostgreSQL.",
"expected_output": "`os start` as the container entrypoint with `PORT` pinned explicitly (production fails loudly on a busy port; only dev auto-hops), `driver-sql` selected by the database URL (no `DriverPlugin` in `plugins:`), TLS terminated on the proxy with the app on an internal port, and `OS_AUTH_URL` / `OS_TRUSTED_ORIGINS` / the app `hostname` kept in sync with the proxy. Health via `GET /health` and `GET /ready`.",
"files": [],
"assertions": {
"must_contain": ["os start", "PORT", "OS_TRUSTED_ORIGINS", "driver-sql"],
"must_not_contain": ["new DriverPlugin", "@objectstack/plugin-prometheus"]
}
},
{
"id": 7,
"prompt": "Prepare a demo of our contracts app: the seed data assigns matters to 'Legal Counsel 1' and 'Paralegal 1', and the demo should open signed in as Legal Counsel 1.",
"expected_output": "Both people go in `demoStaff` — `name` exactly as the seed references them, `email`, and a `position` / `permissionSets` the stack itself declares — and `os dev` creates the accounts with the seed password (`admin123` by default): no `password` key, no `role:` alias, no platform set such as `admin_full_access`, and no hand-written `sys_user` seed row (refused). `devLogins` creates nothing: at most one entry naming Legal Counsel 1's address so the boot banner prints it. Notes that `os build` drops `demoStaff` and a production boot creates no demo account.",
"files": [],
"assertions": {
"must_contain": ["demoStaff", "position", "permissionSets", "os dev"],
"must_not_contain": ["role:", "admin_full_access"]
}
}
]
}