@terreno/agent-plugin 57.21.0 → 58.0.0-beta.3
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/.claude-plugin/plugin.json +1 -1
- package/CHANGELOG.md +136 -0
- package/package.json +1 -1
- package/skills/building-admin-interfaces/SKILL.md +9 -6
- package/skills/building-admin-interfaces/references/nav-and-shell.md +1 -1
- package/skills/building-admin-interfaces/references/patterns-and-tools.md +4 -3
- package/skills/building-terreno-apps/SKILL.md +48 -34
- package/skills/building-terreno-apps/agents/openai.yaml +2 -2
- package/skills/building-terreno-apps/references/navigation.md +20 -14
- package/skills/building-terreno-apps/references/route-structure.md +26 -13
- package/skills/building-terreno-apps/references/screen-patterns.md +37 -54
- package/skills/generate-sdk/SKILL.md +87 -78
- package/skills/terreno-backend-api/references/model-router.md +0 -4
- package/skills/terreno-data-fetching/SKILL.md +83 -71
- package/skills/terreno-data-fetching/agents/openai.yaml +2 -2
- package/skills/terreno-data-fetching/references/auth-and-tokens.md +56 -60
- package/skills/terreno-data-fetching/references/realtime.md +26 -21
- package/skills/terreno-data-fetching/references/sdk-customization.md +31 -60
- package/skills/terreno-ui/SKILL.md +2 -2
- package/skills/terreno-ui/references/data-display.md +2 -0
- package/skills/upgrading-terreno/SKILL.md +13 -6
- package/skills/upgrading-terreno/references/ordering.md +3 -3
|
@@ -32,15 +32,22 @@ Call hosted MCP `terreno_get_upgrade_guide` with `fromVersion` and `toVersion`.
|
|
|
32
32
|
|
|
33
33
|
## Syncdb / RTK platform migration
|
|
34
34
|
|
|
35
|
-
If `
|
|
35
|
+
If `toVersion` is `58.0.0` or later and the app still imports `@terreno/rtk`, `@reduxjs/toolkit`,
|
|
36
|
+
`react-redux`, `redux-persist`, or `@rtk-query/codegen-openapi`, **stop**. Terreno 58 deletes
|
|
37
|
+
`@terreno/rtk` and Redux; this is a platform migration, not a routine bump.
|
|
36
38
|
|
|
37
39
|
Offer exactly two options; do not automate the data-layer migration inside this flow:
|
|
38
40
|
|
|
39
|
-
1.
|
|
40
|
-
2.
|
|
41
|
+
1. Bump to the last 57.x release only (stays on `@terreno/rtk`).
|
|
42
|
+
2. Migrate first with `docs/how-to/migrate-rtk-to-syncdb.md` (every removed export → its
|
|
43
|
+
replacement) and the 58.0.0 upgrade note, then return to this flow.
|
|
41
44
|
|
|
42
45
|
Wait for the user to pick.
|
|
43
46
|
|
|
47
|
+
If `fromVersion` is before `56.0.0-beta.2` and `toVersion` is below 58, the range crosses the
|
|
48
|
+
syncdb introduction; offer the same two options (routine bump, or migrate collection CRUD to
|
|
49
|
+
syncdb with the same guide).
|
|
50
|
+
|
|
44
51
|
## Plan and confirm (no mutations yet)
|
|
45
52
|
|
|
46
53
|
Print, then **stop until the user confirms**:
|
|
@@ -66,8 +73,8 @@ Compile means a **typecheck** (`tsc --noEmit` or `bun run compile` when that scr
|
|
|
66
73
|
4. Bump **backend** packages: `@terreno/api`, `@terreno/test`, `@terreno/admin-backend`, `@terreno/blocks` (when the app lists it; `ai` and `ui` depend on it), `@terreno/ai`, `@terreno/api-health`, `@terreno/comms`, `@terreno/feature-flags`, `@terreno/mcp`. `bun install`.
|
|
67
74
|
5. Backend `bun run compile` and backend tests. Gate: both pass.
|
|
68
75
|
6. Expo SDK — invoke **`upgrading-expo`**. Skip only when Terreno majors do not require a new Expo (same Expo line). Gate: `npx expo-doctor` / install --fix as that skill requires; native rebuild if peers moved.
|
|
69
|
-
7. Bump **frontend** packages: `@terreno/ui`, `@terreno/
|
|
70
|
-
8. Start the **upgraded** backend. Regenerate the typed client (`bun run sdk`
|
|
76
|
+
7. Bump **frontend** packages: `@terreno/ui`, `@terreno/syncdb`, `@terreno/admin-frontend`, `@terreno/admin-spa`. `bun install`. (`@terreno/rtk` stops at 57.x; on 58+ remove it.)
|
|
77
|
+
8. Start the **upgraded** backend. Regenerate the typed client (`bun run sdk`, and `bun run sync-sdk` when the app has synced collections).
|
|
71
78
|
9. `bun run compile`, `bun run lint`, and the app tests. Gate: all pass.
|
|
72
79
|
10. Run the app, log in, exercise changed screens.
|
|
73
80
|
|
|
@@ -83,4 +90,4 @@ On a **multi-version** jump failure: retry **version by version** (`from` → ne
|
|
|
83
90
|
|
|
84
91
|
## Final report
|
|
85
92
|
|
|
86
|
-
Print `fromVersion` → `toVersion`, notes applied, packages bumped, gates that passed, and remaining human follow-ups (native store binaries, RTK migration if deferred).
|
|
93
|
+
Print `fromVersion` → `toVersion`, notes applied, packages bumped, gates that passed, and remaining human follow-ups (native store binaries, the 58 RTK-to-syncdb migration if deferred).
|
|
@@ -7,11 +7,11 @@ Why the `upgrading-terreno` skill bumps packages in a fixed order. Packages belo
|
|
|
7
7
|
| Class | Packages (`publish-on-tag.yml` job) |
|
|
8
8
|
| --- | --- |
|
|
9
9
|
| Backend | `api`, `test`, `admin-backend`, `blocks`, `ai`, `api-health`, `comms`, `feature-flags`, `mcp` |
|
|
10
|
-
| Frontend | `ui`, `
|
|
10
|
+
| Frontend | `ui`, `syncdb`, `admin-frontend`, `admin-spa` |
|
|
11
11
|
|
|
12
12
|
`blocks` holds contracts that both `ai` and `ui` depend on, so it moves with the backend step.
|
|
13
13
|
|
|
14
|
-
`demo` and the example apps are not published.
|
|
14
|
+
`demo` and the example apps are not published. `rtk` was published through 57.x and removed in 58.
|
|
15
15
|
|
|
16
16
|
## Backend before frontend
|
|
17
17
|
|
|
@@ -21,7 +21,7 @@ Bump and compile backend packages first, then start that backend, then regenerat
|
|
|
21
21
|
|
|
22
22
|
## Typed client only after the new backend is up
|
|
23
23
|
|
|
24
|
-
`example-frontend` codegen reads `http://localhost:4000/openapi.json` (or `OPENAPI_URL`). If the process is still the old binary,
|
|
24
|
+
`example-frontend` codegen reads `http://localhost:4000/openapi.json` (or `OPENAPI_URL`). If the process is still the old binary, `store/apiSdk.ts` (and `store/syncDbSdk.ts`) are silently stale. Symptom: runtime 404 on new paths or TypeScript errors after you edit screens to call new endpoints that the SDK never emitted.
|
|
25
25
|
|
|
26
26
|
## Expo before `@terreno/ui`
|
|
27
27
|
|